Revert EINA_(TRUE|FALSE) as requested by vincent.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 27 Feb 2010 16:45:20 +0000 (16:45 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 27 Feb 2010 16:45:20 +0000 (16:45 +0000)
windows have TRUE/FALSE and he wants it to be like that, if required
he will replace the efl-specific places later.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@46586 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_file/ecore_file_monitor_win32.c
src/lib/ecore_win32/ecore_win32.c
src/lib/ecore_win32/ecore_win32_window.c
src/lib/ecore_wince/ecore_wince.c
src/lib/ecore_wince/ecore_wince_window.c

index 364f534..c9992c5 100644 (file)
@@ -68,7 +68,7 @@ _ecore_file_monitor_win32_data_new(Ecore_File_Monitor *monitor, int type)
    if (md->handle == INVALID_HANDLE_VALUE)\r
      goto free_md;\r
 \r
-   md->event = CreateEvent(NULL, EINA_FALSE, EINA_FALSE, NULL);\r
+   md->event = CreateEvent(NULL, FALSE, FALSE, NULL);\r
    if (!md->event)\r
      goto close_handle;\r
 \r
@@ -87,7 +87,7 @@ _ecore_file_monitor_win32_data_new(Ecore_File_Monitor *monitor, int type)
    if (!ReadDirectoryChangesW(md->handle,\r
                               md->buffer,\r
                               ECORE_FILE_MONITOR_WIN32_BUFFER_SIZE,\r
-                              EINA_FALSE,\r
+                              FALSE,\r
                               filter,\r
                               &md->buf_length,\r
                               &md->overlapped,\r
@@ -140,7 +140,7 @@ _ecore_file_monitor_win32_cb(void *data, Ecore_Win32_Handler *wh)
 \r
    md = (Ecore_File_Monitor_Win32_Data *)data;\r
 \r
-   if (!GetOverlappedResult (md->handle, &md->overlapped, &buf_length, EINA_TRUE))\r
+   if (!GetOverlappedResult (md->handle, &md->overlapped, &buf_length, TRUE))\r
      return 1;\r
 \r
    fni = (PFILE_NOTIFY_INFORMATION)md->buffer;\r
@@ -216,7 +216,7 @@ _ecore_file_monitor_win32_cb(void *data, Ecore_Win32_Handler *wh)
     ReadDirectoryChangesW(md->handle,\r
                           md->buffer,\r
                           ECORE_FILE_MONITOR_WIN32_BUFFER_SIZE,\r
-                          EINA_FALSE,\r
+                          FALSE,\r
                           filter,\r
                           &md->buf_length,\r
                           &md->overlapped,\r
index 3c250ca..eb70763 100644 (file)
@@ -381,7 +381,7 @@ _ecore_win32_window_procedure(HWND   window,
        return 0;
      case WM_MOVING:
        printf (" * ecore message : moving\n");
-       return EINA_TRUE;
+       return TRUE;
      case WM_MOVE:
        printf (" * ecore message : moved\n");
        return 0;
@@ -389,7 +389,7 @@ _ecore_win32_window_procedure(HWND   window,
        printf (" * ecore message : sizing\n");
        _ecore_win32_event_handle_resize(data);
        _ecore_win32_event_handle_configure_notify(data);
-       return EINA_TRUE;
+       return TRUE;
      case WM_SIZE:
        printf (" * ecore message : sized\n");
        return 0;
@@ -416,7 +416,7 @@ _ecore_win32_window_procedure(HWND   window,
        {
          RECT rect;
 
-         if (GetUpdateRect(window, &rect, EINA_FALSE))
+         if (GetUpdateRect(window, &rect, FALSE))
            {
               PAINTSTRUCT ps;
               HDC         hdc;
index b7f0c35..618b516 100644 (file)
@@ -152,7 +152,7 @@ ecore_win32_window_move(Ecore_Win32_Window *window,
    if (!MoveWindow(w, x, y,
                    rect.right - rect.left,
                    rect.bottom - rect.top,
-                   EINA_TRUE))
+                   TRUE))
      {
         ERR("MoveWindow() failed");
      }
@@ -198,7 +198,7 @@ ecore_win32_window_resize(Ecore_Win32_Window *window,
         ERR("GetWindowLong() failed");
         return;
      }
-   if (!AdjustWindowRect(&rect, style, EINA_FALSE))
+   if (!AdjustWindowRect(&rect, style, FALSE))
      {
         ERR("AdjustWindowRect() failed");
         return;
@@ -207,7 +207,7 @@ ecore_win32_window_resize(Ecore_Win32_Window *window,
    if (!MoveWindow(w->window, x, y,
                    rect.right - rect.left,
                    rect.bottom - rect.top,
-                   EINA_TRUE))
+                   TRUE))
      {
         ERR("MoveWindow() failed");
      }
@@ -242,7 +242,7 @@ ecore_win32_window_move_resize(Ecore_Win32_Window *window,
         ERR("GetWindowLong() failed");
         return;
      }
-   if (!AdjustWindowRect(&rect, style, EINA_FALSE))
+   if (!AdjustWindowRect(&rect, style, FALSE))
      {
         ERR("AdjustWindowRect() failed");
         return;
@@ -251,7 +251,7 @@ ecore_win32_window_move_resize(Ecore_Win32_Window *window,
    if (!MoveWindow(w->window, x, y,
                    rect.right - rect.left,
                    rect.bottom - rect.top,
-                   EINA_TRUE))
+                   TRUE))
      {
         ERR("MoveWindow() failed");
      }
@@ -506,7 +506,7 @@ ecore_win32_window_shape_set(Ecore_Win32_Window *window,
 #endif
           }
         else
-          if (!SetWindowRgn(wnd->window, NULL, EINA_TRUE))
+          if (!SetWindowRgn(wnd->window, NULL, TRUE))
             {
                ERR("SetWindowRgn() failed");
             }
@@ -535,7 +535,7 @@ ecore_win32_window_shape_set(Ecore_Win32_Window *window,
 
 #if defined(WS_EX_LAYERED)
    version_info.dwOSVersionInfoSize = sizeof(version_info);
-   if (GetVersionEx(&version_info) == EINA_TRUE && version_info.dwMajorVersion == 5)
+   if (GetVersionEx(&version_info) == TRUE && version_info.dwMajorVersion == 5)
      {
        SetLastError(0);
        if (!SetWindowLongPtr(wnd->window, GWL_EXSTYLE,
@@ -596,7 +596,7 @@ ecore_win32_window_shape_set(Ecore_Win32_Window *window,
              return;
           }
      }
-   if (!SetWindowRgn(wnd->window, rgn, EINA_TRUE))
+   if (!SetWindowRgn(wnd->window, rgn, TRUE))
      {
         ERR("SetWindowRgn() failed");
      }
@@ -748,7 +748,7 @@ ecore_win32_window_borderless_set(Ecore_Win32_Window *window,
              return;
           }
         style |= WS_CAPTION | WS_THICKFRAME;
-        if (!AdjustWindowRect (&rect, style, EINA_FALSE))
+        if (!AdjustWindowRect (&rect, style, FALSE))
           {
              ERR("AdjustWindowRect() failed");
              return;
@@ -978,7 +978,7 @@ ecore_win32_window_state_request_send(Ecore_Win32_Window      *window,
               if (!MoveWindow(w, rect.left, y,
                               rect.right - rect.left,
                               height,
-                              EINA_TRUE))
+                              TRUE))
                 {
                    ERR("MoveWindow() failed");
                 }
@@ -998,7 +998,7 @@ ecore_win32_window_state_request_send(Ecore_Win32_Window      *window,
               if (!MoveWindow(w, 0, rect.top,
                               GetSystemMetrics(SM_CXSCREEN),
                               rect.bottom - rect.top,
-                              EINA_TRUE))
+                              TRUE))
                 {
                    ERR("MoveWindow() failed");
                 }
@@ -1019,7 +1019,7 @@ ecore_win32_window_state_request_send(Ecore_Win32_Window      *window,
               if (!MoveWindow(w, 0, 0,
                               GetSystemMetrics(SM_CXSCREEN),
                               rect.bottom - rect.top,
-                              EINA_TRUE))
+                              TRUE))
                 {
                    ERR("MoveWindow() failed");
                 }
@@ -1132,7 +1132,7 @@ ecore_win32_window_internal_new(Ecore_Win32_Window *parent,
    rect.top = 0;
    rect.right = width;
    rect.bottom = height;
-   if (!AdjustWindowRect(&rect, style, EINA_FALSE))
+   if (!AdjustWindowRect(&rect, style, FALSE))
      {
         ERR("AdjustWindowRect() failed");
         free(w);
index 903c045..c507471 100644 (file)
@@ -154,7 +154,7 @@ ecore_wince_shutdown()
    if (task_bar)
      {
         ShowWindow(task_bar, SW_SHOW);
-        EnableWindow(task_bar, EINA_TRUE);
+        EnableWindow(task_bar, TRUE);
      }
 
    if (!UnregisterClass(ECORE_WINCE_WINDOW_CLASS, _ecore_wince_instance))
index 5b95f7f..cf6b23f 100644 (file)
@@ -50,7 +50,7 @@ ecore_wince_window_new(Ecore_WinCE_Window *parent,
    rect.top = 0;
    rect.right = width;
    rect.bottom = height;
-   if (!AdjustWindowRectEx(&rect, WS_CAPTION | WS_SYSMENU | WS_VISIBLE, EINA_FALSE, WS_EX_TOPMOST))
+   if (!AdjustWindowRectEx(&rect, WS_CAPTION | WS_SYSMENU | WS_VISIBLE, FALSE, WS_EX_TOPMOST))
      {
         ERR("AdjustWindowRectEx() failed");
         free(w);
@@ -139,7 +139,7 @@ ecore_wince_window_move(Ecore_WinCE_Window *window,
    if (!MoveWindow(w, x, y,
                    rect.right - rect.left,
                    rect.bottom - rect.top,
-                   EINA_TRUE))
+                   TRUE))
      {
         ERR("MoveWindow() failed");
      }
@@ -185,7 +185,7 @@ ecore_wince_window_resize(Ecore_WinCE_Window *window,
         ERR("GetWindowLong() failed");
         return;
      }
-   if (!AdjustWindowRectEx(&rect, style, EINA_FALSE, exstyle))
+   if (!AdjustWindowRectEx(&rect, style, FALSE, exstyle))
      {
         ERR("AdjustWindowRectEx() failed");
         return;
@@ -194,7 +194,7 @@ ecore_wince_window_resize(Ecore_WinCE_Window *window,
    if (!MoveWindow(w->window, x, y,
                    rect.right - rect.left,
                    rect.bottom - rect.top,
-                   EINA_FALSE))
+                   FALSE))
      {
         ERR("MoveWindow() failed");
      }
@@ -232,7 +232,7 @@ ecore_wince_window_move_resize(Ecore_WinCE_Window *window,
         ERR("GetWindowLong() failed");
         return;
      }
-   if (!AdjustWindowRectEx(&rect, style, EINA_FALSE, exstyle))
+   if (!AdjustWindowRectEx(&rect, style, FALSE, exstyle))
      {
         ERR("AdjustWindowRectEx() failed");
         return;
@@ -241,7 +241,7 @@ ecore_wince_window_move_resize(Ecore_WinCE_Window *window,
    if (!MoveWindow(w->window, x, y,
               rect.right - rect.left,
               rect.bottom - rect.top,
-              EINA_TRUE))
+              TRUE))
      {
         ERR("MoveWindow() failed");
      }
@@ -478,7 +478,7 @@ ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
           {
              INF("ShowWindow(): task bar already hidden");
           }
-        if (!EnableWindow(task_bar, EINA_FALSE))
+        if (!EnableWindow(task_bar, FALSE))
           {
              INF("EnableWindow(): input already disabled");
           }
@@ -505,7 +505,7 @@ ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
         if (!MoveWindow(w,
                         0, 0,
                         GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN),
-                        EINA_TRUE))
+                        TRUE))
           {
              INF("MoveWindow() failed");
           }
@@ -522,7 +522,7 @@ ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
           {
              INF("ShowWindow(): task bar already visible");
           }
-        if (!EnableWindow(task_bar, EINA_TRUE))
+        if (!EnableWindow(task_bar, TRUE))
           {
              INF("EnableWindow():  input already enabled");
           }
@@ -552,7 +552,7 @@ ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
                         ew->rect.top,
                         ew->rect.right - ew->rect.left,
                         ew->rect.bottom - ew->rect.top,
-                        EINA_TRUE))
+                        TRUE))
           {
              INF("MoveWindow() failed");
           }