Mercurial > projects > dwt-mac
diff dwt/internal/c/callback.d @ 10:30a762abda2a
Revert automatic changes from dwt/internal and dwt/dwthelper. Excluded dwt/internal/image and theme.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 28 Aug 2008 12:31:10 +0200 |
parents | e831403a80a9 |
children | 5b53d338c709 |
line wrap: on
line diff
--- a/dwt/internal/c/callback.d Wed Aug 27 14:36:41 2008 +0200 +++ b/dwt/internal/c/callback.d Thu Aug 28 12:31:10 2008 +0200 @@ -21,13 +21,13 @@ /* Header */ -version cast(Win32) +version (Win32) { import tango.sys.win32.UserGdi; import tango.sys.win32.Types; } -else version cast(Win32_WCE) +else version (Win32_WCE) { import tango.sys.win32.UserGdi; import tango.sys.win32.Types; @@ -53,7 +53,7 @@ bool USE_ASSEMBLER = false; -version cast(X86) +version (X86) bool USE_ASSEMBLER = true; private @@ -68,8 +68,8 @@ static if (USE_ASSEMBLER) { - version cast(Win32){} - else version cast(Win32_WCE){} + version (Win32){} + else version (Win32_WCE){} else import tango.stdc.posix.sys.mman; @@ -147,14 +147,14 @@ if (callbackCode == null) { - version cast(Win32) + version (Win32) { callbackCode = VirtualAlloc(null, CALLBACK_THUNK_SIZE * MAX_CALLBACKS, MEM_COMMIT, PAGE_EXECUTE_READWRITE); if (callbackCode == null) return 0; } - else version cast(Win32_WCE) + else version (Win32_WCE) { callbackCode = VirtualAlloc(null, CALLBACK_THUNK_SIZE * MAX_CALLBACKS, MEM_COMMIT, PAGE_EXECUTE_READWRITE); if (callbackCode == null) @@ -237,7 +237,7 @@ //POP EBP - 1 byte code[j++] = 0x5d; - version cast(Win32) + version (Win32) { // RETN argCount * SWT_PTR.sizeof - 3 bytes code[j++] = 0xc2; @@ -245,7 +245,7 @@ code[j++] = 0x00; } - else version cast(Win32_WCE) + else version (Win32_WCE) { // RETN argCount * SWT_PTR.sizeof - 3 bytes code[j++] = 0xc2;