Changeset 21916 for trunk/include
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 34 deleted
- 59 edited
- 7 copied
-
. (modified) (2 props)
-
include/HandleManager.h (modified) (4 diffs)
-
include/Makefile (deleted)
-
include/OS2WIN.H (deleted)
-
include/_ras.h (modified) (23 diffs)
-
include/auxthread.h (modified) (2 diffs)
-
include/cpuhlp.h (modified) (1 diff)
-
include/custombuild.h (modified) (6 diffs)
-
include/dbglog.h (modified) (3 diffs)
-
include/exceptions.h (modified) (6 diffs)
-
include/heapshared.h (modified) (1 diff)
-
include/heapstring.h (modified) (5 diffs)
-
include/incl_gcc (copied) (copied from branches/gcc-kmk/include/incl_gcc )
-
include/incl_gcc/exe386.h (copied) (copied from branches/gcc-kmk/include/incl_gcc/exe386.h )
-
include/incl_vac/MALLOC.H (deleted)
-
include/incl_vac/STDIO.H (deleted)
-
include/incl_vac/STDLIB.H (deleted)
-
include/incl_vac/UMALLOC.H (deleted)
-
include/incl_vac/malloc.h (copied) (copied from branches/gcc-kmk/include/incl_vac/malloc.h )
-
include/incl_vac/stdio.h (copied) (copied from branches/gcc-kmk/include/incl_vac/stdio.h )
-
include/incl_vac/stdlib.h (copied) (copied from branches/gcc-kmk/include/incl_vac/stdlib.h )
-
include/incl_vac/umalloc.h (copied) (copied from branches/gcc-kmk/include/incl_vac/umalloc.h )
-
include/initdll.h (modified) (3 diffs)
-
include/kbdhook.h (modified) (2 diffs)
-
include/memmap.h (modified) (2 diffs)
-
include/objhandle.h (modified) (2 diffs)
-
include/odin.h (modified) (3 diffs)
-
include/odin32.dbg.emx.mk (deleted)
-
include/odin32.dbg.vac3.mk (deleted)
-
include/odin32.dbg.vac36.mk (deleted)
-
include/odin32.dbg.wat.mk (deleted)
-
include/odin32.dbg.watn.mk (deleted)
-
include/odin32.mk (deleted)
-
include/odin32.post.emx.mk (deleted)
-
include/odin32.post.mk (deleted)
-
include/odin32.post.vac3.mk (deleted)
-
include/odin32.post.vac36.mk (deleted)
-
include/odin32.post.wat.mk (deleted)
-
include/odin32.post.watn.mk (deleted)
-
include/odin32.profile.emx.mk (deleted)
-
include/odin32.profile.vac3.mk (deleted)
-
include/odin32.profile.vac36.mk (deleted)
-
include/odin32.profile.wat.mk (deleted)
-
include/odin32.profile.watn.mk (deleted)
-
include/odin32.rel.emx.mk (deleted)
-
include/odin32.rel.vac3.mk (deleted)
-
include/odin32.rel.vac36.mk (deleted)
-
include/odin32.rel.wat.mk (deleted)
-
include/odin32.rel.watn.mk (deleted)
-
include/odin32.tools.emx.mk (deleted)
-
include/odin32.tools.mk (deleted)
-
include/odin32.tools.vac3.mk (deleted)
-
include/odin32.tools.vac36.mk (deleted)
-
include/odin32.tools.wat.mk (deleted)
-
include/odin32.tools.watn.mk (deleted)
-
include/odinapi.h (modified) (2 diffs)
-
include/odinbuild.h (modified) (2 diffs)
-
include/odincrt.h (modified) (2 diffs)
-
include/odinlx.h (modified) (1 diff)
-
include/odinwrap.h (modified) (4 diffs)
-
include/os2newapi.h (modified) (3 diffs)
-
include/os2sel.h (modified) (4 diffs)
-
include/os2win.h (copied) (copied from branches/gcc-kmk/include/os2win.h )
-
include/os2wrap.h (modified) (105 diffs)
-
include/os2wrap2.h (modified) (2 diffs)
-
include/os2wrap2_gen.sh (modified) (2 diffs)
-
include/overlappedio.h (modified) (1 diff)
-
include/stats.h (modified) (2 diffs)
-
include/vmutex.h (modified) (1 diff)
-
include/win/commdlg.h (modified) (1 diff)
-
include/win/dde.h (modified) (2 diffs)
-
include/win/debugtools.h (modified) (3 diffs)
-
include/win/dsound.h (modified) (1 diff)
-
include/win/global.h (modified) (2 diffs)
-
include/win/guiddef.h (modified) (1 diff)
-
include/win/minivcrt.h (modified) (1 diff)
-
include/win/monitor.h (modified) (2 diffs)
-
include/win/ntddk.h (modified) (1 diff)
-
include/win/ntdef.h (modified) (3 diffs)
-
include/win/pe_image.h (modified) (2 diffs)
-
include/win/setupapi.h (modified) (1 diff)
-
include/win/shellapi.h (modified) (3 diffs)
-
include/win/task.h (modified) (2 diffs)
-
include/win/vfw.h (modified) (1 diff)
-
include/win/virtual.h (modified) (2 diffs)
-
include/win/wine/debug.h (modified) (1 diff)
-
include/win/wine/obj_base.h (modified) (1 diff)
-
include/win/wine/obj_surrogate.h (modified) (1 diff)
-
include/win/wine/winbase16.h (modified) (2 diffs)
-
include/win/winnls.h (modified) (2 diffs)
-
include/win/winprocess.h (modified) (2 diffs)
-
include/win/winreg.h (modified) (4 diffs)
-
include/win/winuser.h (modified) (1 diff)
-
include/win32api.h (modified) (4 diffs)
-
include/wingdi32.h (modified) (1 diff)
-
include/winkeyboard.h (modified) (2 diffs)
-
include/winos2def.h (modified) (4 diffs)
-
include/winres.h (modified) (2 diffs)
-
include/winuser32.h (modified) (3 diffs)
-
include/wprocess.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/include/HandleManager.h
r21301 r21916 67 67 *****************************************************************************/ 68 68 69 #ifdef __cplusplus 70 extern "C" { 71 #endif 69 72 70 73 /***************************************************************************** … … 120 123 *****************************************************************************/ 121 124 122 // enable C linkage to avoid parameter mangling123 #ifdef __cplusplus__124 extern "C" {125 #endif126 127 125 HANDLE HMCreateEvent (LPSECURITY_ATTRIBUTES lpsa, 128 126 BOOL bManualReset, … … 154 152 LPCSTR lpName); 155 153 156 BOOL HMSetHandleInformation (HANDLE hObject, 154 BOOL HMSetHandleInformation (HANDLE hObject, 157 155 DWORD dwMask, 158 156 DWORD dwFlags); … … 349 347 BOOL HMGetFileNameFromHandle(HANDLE hFile, LPSTR lpszFileName, DWORD cbFileName); 350 348 351 #ifdef __cplusplus __352 } 349 #ifdef __cplusplus 350 } // extern "C" 353 351 #endif 354 352 -
trunk/include/_ras.h
r21301 r21916 15 15 #ifdef RAS 16 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 17 21 /* The RAS subsystem initialization/deinitialization */ 18 22 … … 20 24 HMODULE hmod /* the custom dll handle */ 21 25 ); 22 26 23 27 void WIN32API RasUninitialize ( 24 28 void … … 33 37 ULONG cb /* size of event specific data */ 34 38 ); 35 39 36 40 /* RAS events */ 37 41 #define RAS_EVENT_Kernel32InitComplete (1) … … 43 47 typedef void WIN32API FNCLF (ULONG h); 44 48 typedef void WIN32API FNWL (ULONG h, char *buf, ULONG buflen); 45 49 46 50 /* Tracked objects logging functions typedefs */ 47 typedef void WIN32API FNRASLOG_EXTERNAL (char *fmt, ...);51 typedef void WIN32API_VA FNRASLOG_EXTERNAL (const char *fmt, ...); 48 52 49 53 typedef ULONG WIN32API FNLOC (ULONG objident, ULONG objhandle, void *objdata, ULONG cbobjdata, FNRASLOG_EXTERNAL *pRasLog); … … 62 66 void WIN32API RasRegisterObjectTracking ( 63 67 RAS_TRACK_HANDLE *ph, /* returned handle */ 64 c har *objname,/* arbitrary distinguishable object name */68 const char *objname, /* arbitrary distinguishable object name */ 65 69 ULONG cbuserdata, /* extra data size */ 66 70 ULONG flags, /* object tracking flags */ … … 68 72 FNCOC *pfnCompareObjectContent /* custom function to compare two objects */ 69 73 ); 70 74 71 75 void WIN32API RasDeregisterObjectTracking ( 72 76 RAS_TRACK_HANDLE h /* handle previously returned by RasRegisterObjectTracking */ 73 77 ); 74 78 75 79 ULONG WIN32API RasAddObject ( /* returns unique object ident */ 76 80 RAS_TRACK_HANDLE h, /* handle previously returned by RasRegisterObjectTracking */ … … 79 83 ULONG cbobjdata /* size of object */ 80 84 ); 81 85 82 86 void WIN32API RasTrackMemAlloc ( 83 87 RAS_TRACK_HANDLE h, /* handle previously returned by RasRegisterObjectTracking */ 84 88 ULONG size 85 89 ); 86 90 87 91 void WIN32API RasTrackMemRealloc ( 88 92 RAS_TRACK_HANDLE h, /* handle previously returned by RasRegisterObjectTracking */ … … 90 94 ULONG newsize 91 95 ); 92 96 93 97 void WIN32API RasTrackMemFree ( 94 98 RAS_TRACK_HANDLE h, /* handle previously returned by RasRegisterObjectTracking */ 95 99 ULONG size 96 100 ); 97 101 98 102 void WIN32API RasRemoveObject ( 99 103 RAS_TRACK_HANDLE h, /* handle previously returned by RasRegisterObjectTracking */ 100 104 ULONG objhandle /* distinctive handle of the object */ 101 105 ); 102 106 103 107 void WIN32API RasSetObjectUserData ( 104 108 RAS_TRACK_HANDLE h, /* handle previously returned by RasRegisterObjectTracking */ … … 108 112 ULONG *pcbdataret /* returned size of data actually saved */ 109 113 ); 110 114 111 115 void WIN32API RasQueryObjectUserData ( 112 116 RAS_TRACK_HANDLE h, /* handle previously returned by RasRegisterObjectTracking */ … … 127 131 128 132 /* RAS logging channels */ 129 typedef struct _RAS_LOG_CHANNEL;130 133 typedef struct _RAS_LOG_CHANNEL *RAS_LOG_CHANNEL_H; 131 134 … … 135 138 const char *filename /* file name to log to */ 136 139 ); 137 140 138 141 void WIN32API RasWriteLogChannel ( 139 142 RAS_LOG_CHANNEL_H hchannel, /* log channel handle returned by RasOpenLogChannel */ … … 147 150 148 151 /* RAS logging functions */ 149 void WIN32API RasLog (150 c har *fmt,/* 'printf' style format string */151 ... 152 ); 153 154 void WIN32API RasLogNoEOL (155 c har *fmt, /* 'printf' style format string */152 void WIN32API_VA RasLog ( 153 const char *fmt, /* 'printf' style format string */ 154 ... 155 ); 156 157 void WIN32API_VA RasLogNoEOL ( 158 const char *fmt, /* 'printf' style format string */ 156 159 ... 157 160 ); … … 162 165 ULONG parm2 /* message parameter 2 */ 163 166 ); 164 167 165 168 #define RAS_FLAG_LOG_OBJECTS (0x1) 166 169 … … 170 173 ); 171 174 172 void WIN32API RasLog2 (175 void WIN32API_VA RasLog2 ( 173 176 RAS_LOG_CHANNEL_H hchannel, /* log channel to log to */ 174 177 char *fmt, /* 'printf' style format string */ … … 176 179 ); 177 180 178 void WIN32API RasLogNoEOL2 (181 void WIN32API_VA RasLogNoEOL2 ( 179 182 RAS_LOG_CHANNEL_H hchannel, /* log channel to log to */ 180 char *fmt, /* 'printf' style format string */ 183 char *fmt, /* 'printf' style format string */ 181 184 ... 182 185 ); … … 188 191 ULONG parm2 /* message parameter 2 */ 189 192 ); 190 193 191 194 /* RAS replacement for C runtime sprintf function */ 195 #ifdef __GNUC__ 196 int WIN32API_VA ras_snprintf ( 197 #else 192 198 int WIN32API snprintf ( 199 #endif 193 200 char *buf, /* memory buffer for formatted string */ 194 201 int n, /* length of memeory buffer */ 195 const char *fmt, /* 'printf' style format string */ 202 const char *fmt, /* 'printf' style format string */ 196 203 ... 197 204 ); 198 205 199 206 /* Tracked object counting function */ 200 207 void WIN32API RasCountObjects ( … … 215 222 * any external API (OS/2 and or C runtime functions). 216 223 */ 217 224 218 225 typedef struct _RASCONTEXT 219 226 { … … 238 245 ); 239 246 247 #ifdef __cplusplus 248 } // extern "C" 249 #endif 240 250 241 251 /* RAS entries that are passed to plugin to use … … 245 255 ULONG cb; 246 256 247 void (* WIN32API RasRegisterObjectTracking) (RAS_TRACK_HANDLE *ph, c har *objname, ULONG cbuserdata, ULONG flags, FNLOC *pfnLogObjectContent, FNCOC *pfnCompareObjectContent);257 void (* WIN32API RasRegisterObjectTracking) (RAS_TRACK_HANDLE *ph, const char *objname, ULONG cbuserdata, ULONG flags, FNLOC *pfnLogObjectContent, FNCOC *pfnCompareObjectContent); 248 258 void (* WIN32API RasDeregisterObjectTracking) (RAS_TRACK_HANDLE h); 249 259 ULONG (* WIN32API RasAddObject) (RAS_TRACK_HANDLE h, ULONG objhandle, void *objdata, ULONG cbobjdata); … … 256 266 void (* WIN32API RasWriteLogChannel) (RAS_LOG_CHANNEL_H hchannel, const char *msg, ULONG length); 257 267 void (* WIN32API RasCloseLogChannel) (RAS_LOG_CHANNEL_H hchannel); 258 void (* WIN32API RasLog) (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...);259 void (* WIN32API RasLogNoEOL) (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...);268 void (* WIN32API_VA RasLog) (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...); 269 void (* WIN32API_VA RasLogNoEOL) (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...); 260 270 void (* WIN32API RasLogMsg) (RAS_LOG_CHANNEL_H hchannel, ULONG msg, ULONG parm1, ULONG parm2); 261 int (* WIN32API snprintf) (char *buf, int n, const char *fmt, ...);271 int (* WIN32API_VA snprintf) (char *buf, int n, const char *fmt, ...); 262 272 void (* WIN32API RasSaveContext) (RASCONTEXT *pcontext); 263 273 void (* WIN32API RasRestoreContext) (RASCONTEXT *pcontext); … … 269 279 void (* WIN32API RasTrackMemFree) (RAS_TRACK_HANDLE h, ULONG size); 270 280 RAS_TRACK_HANDLE (* WIN32API RasGetTrackHandle) (const char *objname); 271 281 272 282 } RasEntryTable; 273 283 … … 286 296 287 297 /* RAS breakpoint support */ 298 #if defined(__GNUC__) 299 #include <sys/builtin.h> 300 #else 288 301 #include <builtin.h> 302 #endif 289 303 290 304 #ifdef __cplusplus … … 299 313 #define RasDebugInt3_x(a, b, c) RasBreakPoint(__FILE__, __FUNCTION__, __LINE__, a, b, c) 300 314 301 void __INLINE RasBreakPoint (c har *szFile,char *szFunction, int iLine, ULONG msg, ULONG parm1, ULONG parm2)315 void __INLINE RasBreakPoint (const char *szFile, const char *szFunction, int iLine, ULONG msg, ULONG parm1, ULONG parm2) 302 316 { 303 317 RasLog ("BreakPoint at %s(%d)::%s", szFile, iLine, szFunction); -
trunk/include/auxthread.h
r21596 r21916 15 15 #endif 16 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 17 21 typedef PVOID (* PAUXTHREADFN)(PVOID arg1, PVOID arg2, PVOID arg3, PVOID arg4); 18 22 … … 25 29 VOID StopAuxThread(); 26 30 31 #ifdef __cplusplus 32 } // extern "C" 33 #endif 34 27 35 #endif //__AUXTHREAD_H__ -
trunk/include/cpuhlp.h
r8991 r21916 39 39 #if (__IBMC__ >= 360) || (__IBMCPP__ >= 360) 40 40 #define CONTROL87(a,b) __control87(a, b) 41 #else 42 #if (__IBMCPP__ == 300) || (__IBMC__ == 300) 41 #elif (__IBMCPP__ == 300) || (__IBMC__ == 300) 43 42 #define CONTROL87(a,b) _control87(a, b) 44 #else 45 #ifdef __WATCOMC__ 43 #elif defined(__WATCOMC__) || defined(__GNUC__) 46 44 #define CONTROL87(a,b) _control87(a, b) 47 45 #else 48 46 #error CONTROL87 undefined 49 #endif50 #endif51 47 #endif 52 48 -
trunk/include/custombuild.h
r21327 r21916 2 2 #define __CUSTOMBUILD_H__ 3 3 4 #include <win \peexe.h>4 #include <win/peexe.h> 5 5 #include <initdll.h> 6 6 … … 34 34 typedef BOOL (WIN32API *PFN_ENDCUSTOMIZE)(); 35 35 typedef BOOL (WIN32API *PFN_ISPESTUBLOADER)(char *pszProgram); 36 37 typedef ULONG (APIENTRY *PFN_INITDLL)(ULONG hModule, ULONG ulFlag); 38 typedef void (APIENTRY *PFN_CLEANUPDLL)(ULONG ulReason); 36 39 37 40 typedef struct { … … 139 142 140 143 } CUSTOMBUILD_COMMON; 144 145 #ifdef __cplusplus 146 extern "C" { 147 #endif 141 148 142 149 BOOL WIN32API LoadCustomEnvironment(CUSTOMBUILD_COMMON *CustomBuild); … … 251 258 //Override std class names used in Odin 252 259 void WIN32API SetCustomStdClassName(LPSTR pszStdClassName); 253 c har *WIN32API QueryCustomStdClassName();260 const char *WIN32API QueryCustomStdClassName(); 254 261 255 262 //Turn off ASPI … … 509 516 510 517 //PE headers of system dlls 511 #ifdef __cplusplus512 extern "C" {513 #endif514 518 extern IMAGE_FILE_HEADER nt_ntdll_header; 515 519 extern IMAGE_FILE_HEADER nt_gdi32_header; … … 552 556 extern IMAGE_FILE_HEADER nt_winscard_header; 553 557 extern IMAGE_FILE_HEADER nt_shdocvw_header; 558 554 559 #ifdef __cplusplus 555 } 560 } // extern "C" 556 561 #endif 557 562 -
trunk/include/dbglog.h
r21601 r21916 78 78 79 79 80 int SYSTEM WriteLog(c har *tekst, ...);81 int SYSTEM WriteLogNoEOL(c har *tekst, ...);82 int SYSTEM WritePrivateLog(void *logfile, c har *tekst, ...);80 int SYSTEM WriteLog(const char *tekst, ...); 81 int SYSTEM WriteLogNoEOL(const char *tekst, ...); 82 int SYSTEM WritePrivateLog(void *logfile, const char *tekst, ...); 83 83 84 84 void SYSTEM DecreaseLogCount(); … … 99 99 100 100 /* enable support for the _interrupt() statement */ 101 #if (defined(__IBMCPP__) || defined(__IBMC__)) 101 #if defined(__IBMCPP__) || defined(__IBMC__) || defined(__GNUC__) 102 103 #ifndef __GNUC__ 102 104 # include <builtin.h> 105 #endif 106 103 107 #ifdef DEBUG 108 104 109 #ifdef __cplusplus 105 110 106 #define DebugInt3() BreakPoint(__FILE__, __FUNCTION__, __LINE__) 111 #ifdef PRIVATE_LOGGING 112 #define DebugInt3() do { \ 113 dprintf((LOG, "BREAKPOINT %s %s %d", __FILE__, __FUNCTION__, __LINE__)); \ 114 _interrupt(3); \ 115 } while (0) 116 #else 117 #define DebugInt3() do { \ 118 dprintf(("BREAKPOINT %s %s %d", __FILE__, __FUNCTION__, __LINE__)); \ 119 _interrupt(3); \ 120 } while (0) 121 #endif 107 122 108 void inline BreakPoint(char *szFile, char *szFunction, int iLine) 109 { 110 dprintf(("BREAKPOINT %s %s %d", szFile, szFunction, iLine)); 111 _interrupt(3); 112 } 113 114 #else 123 #else /* __cplusplus */ 115 124 #define DebugInt3() _interrupt(3) 116 125 #endif 117 #else 126 127 #else /* DEBUG */ 118 128 #define DebugInt3() 119 129 #endif 120 130 121 #else 131 #else /* defined(__IBMCPP__) || defined(__IBMC__) || defined(__GNUC__) */ 132 122 133 #ifdef DEBUG 123 134 #define DebugInt3() _asm int 3; … … 126 137 #endif 127 138 128 #endif 139 #endif /* defined(__IBMCPP__) || defined(__IBMC__) || defined(__GNUC__) */ 129 140 130 141 #ifdef __cplusplus -
trunk/include/exceptions.h
r3124 r21916 18 18 * Exception codes 19 19 */ 20 20 21 21 #define STATUS_SUCCESS 0x00000000 22 22 #define STATUS_WAIT_0 0x00000000 … … 25 25 #define STATUS_TIMEOUT 0x00000102 26 26 #define STATUS_PENDING 0x00000103 27 #define STATUS_GUARD_PAGE_VIOLATION 0x80000001 27 #define STATUS_GUARD_PAGE_VIOLATION 0x80000001 28 28 #define STATUS_DATATYPE_MISALIGNMENT 0x80000002 29 29 #define STATUS_BREAKPOINT 0x80000003 … … 89 89 #define WINCONTEXT_i386 0x00010000 90 90 #define WINCONTEXT_i486 WINCONTEXT_i386 91 #define WINCONTEXT_CONTROL (WINCONTEXT_i386 | 0x0001) 92 #define WINCONTEXT_INTEGER (WINCONTEXT_i386 | 0x0002) 93 #define WINCONTEXT_SEGMENTS (WINCONTEXT_i386 | 0x0004) 94 #define WINCONTEXT_FLOATING_POINT (WINCONTEXT_i386 | 0x0008L) 95 #define WINCONTEXT_DEBUG_REGISTERS (WINCONTEXT_i386 | 0x0010L) 91 #define WINCONTEXT_CONTROL (WINCONTEXT_i386 | 0x0001) 92 #define WINCONTEXT_INTEGER (WINCONTEXT_i386 | 0x0002) 93 #define WINCONTEXT_SEGMENTS (WINCONTEXT_i386 | 0x0004) 94 #define WINCONTEXT_FLOATING_POINT (WINCONTEXT_i386 | 0x0008L) 95 #define WINCONTEXT_DEBUG_REGISTERS (WINCONTEXT_i386 | 0x0010L) 96 96 #define WINCONTEXT_FULL (WINCONTEXT_CONTROL | WINCONTEXT_INTEGER | WINCONTEXT_SEGMENTS) 97 97 … … 145 145 146 146 147 #define WINEXCEPTION_NONCONTINUABLE 0x1 148 #define WINEXCEPTION_MAXIMUM_PARAMETERS 15 147 #define WINEXCEPTION_NONCONTINUABLE 0x1 148 #define WINEXCEPTION_MAXIMUM_PARAMETERS 15 149 149 150 150 typedef struct _WINEXCEPTION_RECORD { … … 197 197 * Return values from filters in except() and from UnhandledExceptionFilter 198 198 */ 199 199 200 200 #define WINEXCEPTION_EXECUTE_HANDLER 1 201 201 #define WINEXCEPTION_CONTINUE_SEARCH 0 … … 206 206 #pragma pack() 207 207 208 #ifdef __cplusplus 209 extern "C" { 210 #endif 211 208 212 DWORD RtlDispatchException(WINEXCEPTION_RECORD *pRecord, WINCONTEXT *pContext); 209 213 214 #ifdef __cplusplus 215 } // extern "C" 210 216 #endif 217 218 #endif -
trunk/include/heapshared.h
r21301 r21916 18 18 19 19 #ifdef DEBUG 20 void * _System _debug_smalloc(int size, c har *pszFile, int linenr);21 void * _System _debug_smallocfill(int size, int filler, c har *pszFile, int linenr);22 void _System _debug_sfree(void *chunk, c har *pszFile, int linenr);20 void * _System _debug_smalloc(int size, const char *pszFile, int linenr); 21 void * _System _debug_smallocfill(int size, int filler, const char *pszFile, int linenr); 22 void _System _debug_sfree(void *chunk, const char *pszFile, int linenr); 23 23 24 24 #define _smalloc(a) _debug_smalloc((a),__FILE__,__LINE__) -
trunk/include/heapstring.h
r10192 r21916 9 9 #include <odin.h> 10 10 11 #include <wine \unicode.h>11 #include <wine/unicode.h> 12 12 //SvL: strcase -> case insensitive! 13 13 #define strncasecmp lstrncmpiA … … 88 88 { \ 89 89 int len = MultiByteToWideChar( CP_ACP, 0, strA, -1, NULL, 0); \ 90 strW = (LPWSTR) _alloca( len*sizeof(WCHAR) );\90 strW = (LPWSTR)alloca( len*sizeof(WCHAR) ); \ 91 91 MultiByteToWideChar(CP_ACP, 0, strA, -1, strW, len); \ 92 92 } … … 97 97 { \ 98 98 int len = WideCharToMultiByte( CP_ACP, 0, strW, -1, NULL, 0, 0, NULL);\ 99 strA = (LPSTR) _alloca(len);\99 strA = (LPSTR)alloca(len); \ 100 100 WideCharToMultiByte(CP_ACP, 0, strW, -1, strA, len, 0, NULL ); \ 101 101 } … … 104 104 { \ 105 105 int iLength = lstrlenA(strSrc) + 1; \ 106 strDest = (LPSTR) _alloca( iLength );\106 strDest = (LPSTR)alloca( iLength ); \ 107 107 memcpy( strDest, strSrc, iLength); \ 108 108 } … … 111 111 { \ 112 112 int iLength = lstrlenW(strSrc) + 1; \ 113 strDest = (LPWSTR) _alloca( iLength * sizeof(WCHAR) );\113 strDest = (LPWSTR)alloca( iLength * sizeof(WCHAR) ); \ 114 114 memcpy( strDest, strSrc, iLength * sizeof(WCHAR) ); \ 115 115 } -
trunk/include/initdll.h
r21654 r21916 1 /** @file 2 * 3 * INITDLL library interface. 4 * 5 * Project Odin Software License can be found in LICENSE.TXT 6 */ 7 1 8 #ifndef __INITDLL_H__ 2 9 #define __INITDLL_H__ 3 10 4 #if (defined(__IBMCPP__) || defined(__IBMC__) || defined(__INNOTEK_LIBC__)) 11 #include <odin.h> 12 #include <win32type.h> 5 13 6 #define DLLENTRYPOINT_CCONV SYSTEM 7 #define DLLENTRYPOINT_NAME _DLL_InitTerm 14 #ifndef MAYBE_WEAK 15 #define MAYBE_WEAK 16 #endif 17 18 /** 19 * Called to initialize resources of the DLL module when it is loaded. 20 * 21 * This callback function is implemented by modules that link to initldll.lib 22 * and want to override the default DLL initialization procedure called when the 23 * DLL is loaded by the system (according to the INIT/TERM policy specified in 24 * the LIBRARY statement in the .DEF file). See DLL_InitDefault() for more 25 * information about the default initialization procedure. 26 * 27 * On success, the returned value must be the DosExitList() order code (high 28 * byte of the low word) that defines the order in which DLL_Term() will be 29 * called WRT other uninitialization routines and exit list handlers. Returning 30 * 0 will cause DLL_Term() to be called first. Note that if several handlers 31 * use the same order code they are called in LIFO order. For DLLs, this means 32 * that DLL_Term() will be called in the order opposite to DLL_Init(). 33 * 34 * @param hModule DLL module handle. 35 * @return Exit list order on success or -1 to indicate a failure. 36 */ 37 ULONG SYSTEM DLL_Init(ULONG hModule) MAYBE_WEAK; 38 39 /** 40 * Called to free resources of the DLL module when it is unloaded. 41 * 42 * This callback function is implemented by modules that link to initldll.lib 43 * and want to override the default DLL uninitialization procedure called when 44 * the DLL is unloaded by the system (according to the INIT/TERM policy 45 * specified in the LIBRARY statement in the .DEF file). See DLL_TermDefault() 46 * for more information about the default uninitialization procedure. 47 * 48 * @param hModule DLL module handle. 49 */ 50 void SYSTEM DLL_Term(ULONG hModule) MAYBE_WEAK; 51 52 /** 53 * Default DLL initialization procedure. 54 * 55 * This procedure is called if your module does not implement the DLL_Init() 56 * callback function. It performs steps necessary to initializes the C/C++ 57 * runtime. 58 * 59 * You may call this procedure from your DLL_Init() implementation to perform 60 * the standard initialization steps described above. 61 * 62 * @param hModule DLL module handle. 63 * @return 0 on success or -1 to indicate a failure. 64 */ 65 ULONG SYSTEM DLL_InitDefault(ULONG hModule); 66 67 /** 68 * Default DLL uninitialization procedure. 69 * 70 * This procedure is called if your module does not implement the DLL_Term() 71 * callback function. It performs steps necessary to terminate the C/C++ 72 * runtime. 73 * 74 * You may call this procedure from your DLL_Uniit() implementation to perform 75 * the standard initialization steps described above. 76 * 77 * @param hModule DLL module handle. 78 */ 79 void SYSTEM DLL_TermDefault(ULONG hModule); 8 80 9 81 #ifdef __cplusplus … … 11 83 #endif 12 84 85 #if defined(__IBMCPP__) || defined(__IBMC__) 86 87 /** 88 * C run-time environment initialization function. 89 * Returns 0 to indicate success and -1 to indicate failure. 90 */ 91 int _Optlink _CRT_init(void); 92 93 /** 94 * C run-time environment termination function. 95 * It only needs to be called when the C run-time functions are statically 96 * linked. 97 */ 98 void _Optlink _CRT_term(void); 99 13 100 #if (__IBMCPP__ == 300) || (__IBMC__ == 300) 14 void _Optlink __ctordtorInit( void );15 #define ctordtorInit() __ctordtorInit()16 101 17 void _Optlink __ctordtor Term( void);18 #define ctordtorTerm() __ctordtorTerm() 102 void _Optlink __ctordtorInit(void); 103 void _Optlink __ctordtorTerm(void); 19 104 20 105 #elif (__IBMCPP__ == 360) || (__IBMC__ == 360) || (__IBMC__ == 430) 21 void _Optlink __ctordtorInit( int flag );22 #define ctordtorInit() __ctordtorInit(0)23 106 24 void _Optlink __ctordtor Term( int flag);25 #define ctordtorTerm() __ctordtorTerm(0)107 void _Optlink __ctordtorInit(int flag); 108 #define __ctordtorInit() __ctordtorInit(0) 26 109 27 #elif defined(__INNOTEK_LIBC__) 110 void _Optlink __ctordtorTerm(int flag); 111 #define __ctordtorTerm() __ctordtorTerm(0) 28 112 29 extern void __ctordtorInit(void); 30 extern void __ctordtorTerm(void); 113 #else 114 #error "Unknown VAC compiler version!" 115 #endif 116 117 #elif defined(__EMX__) 118 119 int _CRT_init(void); 120 void _CRT_term(void); 121 122 void __ctordtorInit(void); 123 void __ctordtorTerm(void); 124 125 #elif defined(__WATCOMC__) 126 127 #define _DLL_InitTerm LibMain 128 129 int _Optlink _CRT_init(void); 130 void _Optlink _CRT_term(void); 131 132 #define __ctordtorInit() 133 #define __ctordtorTerm() 134 135 //prevent Watcom from mucking with this name 136 extern DWORD _Resource_PEResTab; 137 #pragma aux _Resource_PEResTab "*"; 31 138 32 139 #else … … 34 141 #endif 35 142 36 #ifndef __INNOTEK_LIBC__ 37 38 /*-------------------------------------------------------------------*/ 39 /* _CRT_init is the C run-time environment initialization function. */ 40 /* It will return 0 to indicate success and -1 to indicate failure. */ 41 /*-------------------------------------------------------------------*/ 42 int _Optlink _CRT_init(void); 43 44 /*-------------------------------------------------------------------*/ 45 /* _CRT_term is the C run-time environment termination function. */ 46 /* It only needs to be called when the C run-time functions are */ 47 /* statically linked. */ 48 /*-------------------------------------------------------------------*/ 49 void _Optlink _CRT_term(void); 50 #endif // __INNOTEK_LIBC__ 51 143 BOOL APIENTRY InitializeKernel32(); 144 VOID APIENTRY ReportFatalDllInitError(LPCSTR pszModName); 52 145 53 146 #ifdef __cplusplus 54 } 55 #endif 56 57 #elif defined(__WATCOMC__) 58 59 #define DLLENTRYPOINT_CCONV APIENTRY 60 #define DLLENTRYPOINT_NAME LibMain 61 62 #define ctordtorInit() 63 #define ctordtorTerm() 64 65 #ifdef __cplusplus 66 extern "C" { 67 //prevent Watcom from mucking with this name 68 extern DWORD _Resource_PEResTab; 69 #pragma aux _Resource_PEResTab "*"; 70 } 71 #endif 72 73 #endif /* IBM CPP Compiler */ 74 75 #ifdef __cplusplus 76 extern "C" { 77 #endif 78 79 typedef ULONG (APIENTRY *PFN_INITDLL)(ULONG hModule, ULONG ulFlag); 80 typedef void (APIENTRY *PFN_CLEANUPDLL)(ULONG ulReason); 81 82 ULONG APIENTRY inittermKernel32(ULONG hModule, ULONG ulFlag); 83 void APIENTRY cleanupKernel32(ULONG ulReason); 84 85 ULONG APIENTRY inittermUser32(ULONG hModule, ULONG ulFlag); 86 void APIENTRY cleanupUser32(ULONG ulReason); 87 ULONG APIENTRY inittermOdinCtrl(ULONG hModule, ULONG ulFlag); 88 89 //NOTE!!!!!!!!!!!!!!!!! 90 //if this list is extended, then update our custombuild code!!!! 91 //NOTE!!!!!!!!!!!!!!!!! 92 ULONG APIENTRY inittermWinmm(ULONG hModule, ULONG ulFlag); 93 ULONG APIENTRY inittermShell32(ULONG hModule, ULONG ulFlag); 94 ULONG APIENTRY inittermOle32(ULONG hModule, ULONG ulFlag); 95 ULONG APIENTRY inittermComdlg32(ULONG hModule, ULONG ulFlag); 96 ULONG APIENTRY inittermComctl32(ULONG hModule, ULONG ulFlag); 97 ULONG APIENTRY inittermGdi32(ULONG hModule, ULONG ulFlag); 98 ULONG APIENTRY inittermNTDLL(ULONG hModule, ULONG ulFlag); 99 ULONG APIENTRY inittermWsock32(ULONG hModule, ULONG ulFlag); 100 ULONG APIENTRY inittermWininet(ULONG hModule, ULONG ulFlag); 101 ULONG APIENTRY inittermRpcrt4(ULONG hModule, ULONG ulFlag); 102 ULONG APIENTRY inittermAvifil32(ULONG hModule, ULONG ulFlag); 103 ULONG APIENTRY inittermQuartz(ULONG hModule, ULONG ulFlag); 104 ULONG APIENTRY inittermRiched32(ULONG hModule, ULONG ulFlag); 105 ULONG APIENTRY inittermWnaspi32(ULONG hModule, ULONG ulFlag); 106 ULONG APIENTRY inittermUxTheme(ULONG hModule, ULONG ulFlag); 107 ULONG APIENTRY inittermDInput(ULONG hModule, ULONG ulFlag); 108 ULONG APIENTRY inittermDSound(ULONG hModule, ULONG ulFlag); 109 ULONG APIENTRY inittermWinSpool(ULONG hModule, ULONG ulFlag); 110 ULONG APIENTRY inittermDDraw(ULONG hModule, ULONG ulFlag); 111 ULONG APIENTRY inittermNTDLL(ULONG hModule, ULONG ulFlag); 112 ULONG APIENTRY inittermMSVCRT(ULONG hModule, ULONG ulFlag); 113 ULONG APIENTRY inittermImm32(ULONG hModule, ULONG ulFlag); 114 ULONG APIENTRY inittermCrypt32(ULONG hModule, ULONG ulFlag); 115 ULONG APIENTRY inittermOleacc(ULONG hModule, ULONG ulFlag); 116 ULONG APIENTRY inittermmscms(ULONG hModule, ULONG ulFlag); 117 ULONG APIENTRY inittermRsaenh(ULONG hModule, ULONG ulFlag); 118 ULONG APIENTRY inittermSecur32(ULONG hModule, ULONG ulFlag); 119 120 ULONG APIENTRY InitializeKernel32(); 121 122 VOID APIENTRY ReportFatalDllInitError(CHAR *pszModName); 123 124 #ifdef __cplusplus 125 } 147 } // extern "C" 126 148 #endif 127 149 -
trunk/include/kbdhook.h
r10383 r21916 29 29 #define PMKBDHK_HOOK_TERM "_hookKill@0" 30 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 31 34 32 35 typedef BOOL (* WIN32API PFN_HOOKINIT)(ULONG hab, char *lpszWindowClass); … … 36 39 BOOL WIN32API hookKill(ULONG hab); 37 40 41 #ifdef __cplusplus 42 } // extern "C" 43 #endif 44 38 45 #endif // __KBDHOOK_H 39 46 -
trunk/include/memmap.h
r10376 r21916 1 1 #ifndef __MEMMAP_H 2 2 #define __MEMMAP_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 3 7 4 8 #ifndef _DEF_PFNEXCEPTIONNOTIFY … … 10 14 BOOL WIN32API MMAP_UnregisterMemoryRange(LPVOID lpViewAddr); 11 15 16 #ifdef __cplusplus 17 } // extern "C" 18 #endif 19 12 20 #endif /*__MEMMAP_H */ 13 21 -
trunk/include/objhandle.h
r10338 r21916 46 46 //... 47 47 48 #ifdef __cplusplus 49 extern "C" { 50 #endif 51 48 52 typedef ULONG OBJHANDLE; 49 53 … … 64 68 #define ObjWinToOS2Region(a) ObjQueryHandleData(a, HNDL_REGION) 65 69 70 #ifdef __cplusplus 71 } // extern "C" 72 #endif 73 66 74 #endif //__OBJHANDLE_H__ -
trunk/include/odin.h
r21597 r21916 81 81 #endif 82 82 #define CDECL _cdecl 83 #define EXPORT _ export83 #define EXPORT __attribute__ ((dllexport)) 84 84 #define WIN32API __stdcall 85 85 #define WINAPI __stdcall … … 93 93 #ifdef __INNOTEK_LIBC__ 94 94 #define SYSTEM _System 95 #define _LNK_CONV 95 96 #else 96 97 #define SYSTEM CDECL 97 98 #endif 99 100 #define min(a,b) \ 101 ({ __typeof__ (a) _a = (a); \ 102 __typeof__ (b) _b = (b); \ 103 _a < _b ? _a : _b; }) 104 #define max(a,b) \ 105 ({ __typeof__ (a) _a = (a); \ 106 __typeof__ (b) _b = (b); \ 107 _a > _b ? _a : _b; }) 108 109 #define _interrupt(n) __asm__ __volatile__ ("int" #n "\n\tnop") 98 110 99 111 #else … … 160 172 #endif 161 173 162 174 #ifdef __GNUC__ 175 // __stdcall in GCC for OS/2 incorrectly mangles vararg functions; according to 176 // MSDN, they should be equal to __cdecl instead of getting the @N suffix 177 #define WIN32API_VA __cdecl 178 #else 179 #define WIN32API_VA WIN32API 180 #endif 163 181 164 182 #endif /* _ODIN_H_*/ -
trunk/include/odinapi.h
r21301 r21916 28 28 #endif 29 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 30 34 /** 31 35 * Gets the type of an object. … … 37 41 unsigned WIN32API HMQueryObjectType(HANDLE hObject); 38 42 43 #ifdef __cplusplus 44 } // extern "C" 45 #endif 46 39 47 /** @} */ 40 48 -
trunk/include/odinbuild.h
r21685 r21916 12 12 #define _ODINBUILD_H_ 13 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 14 18 /* 15 19 * API for querying the build number of Odin32. Well.. Kernel32 really... … … 17 21 #ifdef WIN32API 18 22 int WIN32API Odin32GetBuildNumber(void); 23 #endif 24 25 #ifdef __cplusplus 26 } // extern "C" 19 27 #endif 20 28 -
trunk/include/odincrt.h
r21425 r21916 17 17 } CRITICAL_SECTION_OS2, *PCRITICAL_SECTION_OS2; 18 18 19 #ifndef OS2_INCLUDED 20 typedef const char *PCSZ; 21 #endif 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 19 27 ULONG WIN32API DosValidateCriticalSection (CRITICAL_SECTION_OS2 *crit); 20 28 ULONG WIN32API DosDeleteCriticalSection(CRITICAL_SECTION_OS2 *); 21 29 ULONG WIN32API DosEnterCriticalSection(CRITICAL_SECTION_OS2 *, ULONG ulTimeout = SEM_INDEFINITE_WAIT); 22 ULONG WIN32API DosInitializeCriticalSection(CRITICAL_SECTION_OS2 *, char *pszSemName, BOOL fShared = FALSE);23 ULONG WIN32API DosAccessCriticalSection(CRITICAL_SECTION_OS2 *, char *pszSemName);30 ULONG WIN32API DosInitializeCriticalSection(CRITICAL_SECTION_OS2 *, PCSZ pszSemName, BOOL fShared = FALSE); 31 ULONG WIN32API DosAccessCriticalSection(CRITICAL_SECTION_OS2 *, PCSZ pszSemName); 24 32 ULONG WIN32API DosLeaveCriticalSection(CRITICAL_SECTION_OS2 *); 25 33 … … 34 42 #endif 35 43 44 #ifdef __cplusplus 45 } // extern "C" 46 #endif 47 36 48 #endif //__ODINCRT_H__ -
trunk/include/odinlx.h
r21393 r21916 14 14 #define _ODINLX_H 15 15 16 #include <win \peexe.h>16 #include <win/peexe.h> 17 17 #include <versionos2.h> 18 18 -
trunk/include/odinwrap.h
r7357 r21916 37 37 38 38 #ifdef DEBUG 39 # define ODINDEBUGCHANNEL(a) static c har* pszOdinDebugChannel=#a;40 # define ODINDEBUGCHANNEL1(a) static c har* pszOdinDebugChannel1=#a;39 # define ODINDEBUGCHANNEL(a) static const char *pszOdinDebugChannel = #a; 40 # define ODINDEBUGCHANNEL1(a) static const char *pszOdinDebugChannel1 = #a; 41 41 #else 42 42 # define ODINDEBUGCHANNEL(a) … … 61 61 #include <odin.h> 62 62 63 #ifdef __cplusplus 64 extern "C" { 65 #endif 66 63 67 // --------------------------------------------------------------------------- 64 68 #ifdef __WATCOMC__ … … 71 75 extern void WIN32API dbg_IncThreadCallDepth(void); // kernel32 72 76 extern void WIN32API dbg_DecThreadCallDepth(void); // kernel32 73 extern void WIN32API dbg_ThreadPushCall(c har *pszCaller);77 extern void WIN32API dbg_ThreadPushCall(const char *pszCaller); 74 78 extern void WIN32API dbg_ThreadPopCall(); 75 79 extern char* WIN32API dbg_GetLastCallerName(); 76 80 77 81 #ifdef __cplusplus 82 } // extern "C" 83 #endif 78 84 79 85 // --------------------------------------------------------------------------- … … 1345 1351 #define ODINPROCEDURE14(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11,t12,a12,t13,a13,t14,a14) \ 1346 1352 void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12,t13 a13,t14 a14) \ 1347 1353 1348 1354 #define ODINFUNCTIONNODBG0 ODINFUNCTION0 1349 1355 #define ODINFUNCTIONNODBG1 ODINFUNCTION1 -
trunk/include/os2newapi.h
r21380 r21916 7 7 #ifndef __OS2NEWAPI_H__ 8 8 #define __OS2NEWAPI_H__ 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 9 13 10 14 #ifdef INCL_WIN … … 42 46 USHORT APIENTRY16 DosSizeSeg(SEL sel, PULONG pcbSize); 43 47 48 #ifndef __EMX__ 44 49 #define DosSelToFlat Dos32SelToFlat 50 #endif 45 51 ULONG _Optlink DosSelToFlat(ULONG seladdr); 46 52 53 #ifndef __EMX__ 47 54 #define DosFlatToSel Dos32FlatToSel 55 #endif 48 56 ULONG _Optlink DosFlatToSel(ULONG lin); 49 57 … … 67 75 ULONG ulSubFunction); 68 76 77 #ifdef __cplusplus 78 } // extern "C" 79 #endif 80 69 81 #endif //__OS2SEL_H__ -
trunk/include/os2sel.h
r21350 r21916 36 36 37 37 #ifndef __WATCOMC__ 38 #ifdef __EMX__ 38 #if defined(__GNUC__) 39 // note that we also define the exported variants of these in asmutil.asm 39 40 static inline unsigned short GetFS(void) 40 41 { … … 49 50 } 50 51 51 static inline int RestoreOS2FS(void)52 static inline short RestoreOS2FS(void) 52 53 { 53 54 int __res, xx = 0x0150b; … … 60 61 } 61 62 63 static inline short SetReturnFS(unsigned short sel) 64 { 65 int __res; 66 67 __asm__ __volatile__( 68 "mov %%fs,%0 \n\t" 69 "mov %%eax,%%fs \n\t" 70 : "=&r" (__res) : "a" (sel)); 71 return(__res); 72 } 62 73 63 74 #else … … 67 78 void _System SetFS (unsigned short selector); 68 79 unsigned short _System SetReturnFS (unsigned short selector); 69 //SvL: Checks if thread FS & exception structure are valid70 int _System CheckCurFS(void);71 80 #endif 72 81 #endif 73 82 74 75 83 //SvL: Checks if thread FS & exception structure are valid 84 int _System CheckCurFS(void); 85 86 76 87 #ifdef __cplusplus 77 88 } -
trunk/include/os2wrap.h
r21597 r21916 4 4 5 5 #ifdef __EMX__ 6 #define OS2EMX_PLAIN_CHAR 7 #endif 6 7 #ifndef USE_OS2_TOOLKIT_HEADERS 8 9 // be compatible with the toolkit 10 #define OS2_INCLUDED 11 #define OS2DEF_INCLUDED 12 #define WIN_INCLUDED 13 #define __OS2_H__ 14 15 // add missing declarations 16 typedef unsigned short APIRET16; 17 #define APIENTRY16 _Far16 _Pascal 18 19 #define INCL_LONGLONG_STRUCTS 20 21 #else // ifndef USE_OS2_TOOLKIT_HEADERS 22 23 #undef _Pascal 24 #define _Pascal _System // For Vio/Kbd/Mou 25 26 #endif // ifndef USE_OS2_TOOLKIT_HEADERS 27 28 #endif // ifdef __EMX__ 8 29 9 30 #include <os2.h> … … 18 39 #endif 19 40 41 #ifdef __cplusplus 42 extern "C" { 43 #endif 44 20 45 #ifdef INCL_DOSMEMMGR 21 46 … … 4782 4807 USHORT sel = RestoreOS2FS(); 4783 4808 4784 yyrc = V IO16ASSOCIATE(a, b);4785 SetFS(sel); 4786 4787 return yyrc; 4788 } 4809 yyrc = VioAssociate(a, b); 4810 SetFS(sel); 4811 4812 return yyrc; 4813 } 4789 4814 4790 4815 #undef VioAssociate … … 4796 4821 USHORT sel = RestoreOS2FS(); 4797 4822 4798 yyrc = V IO16CREATELOGFONT(a, b, c, d);4799 SetFS(sel); 4800 4801 return yyrc; 4802 } 4823 yyrc = VioCreateLogFont(a, b, c, d); 4824 SetFS(sel); 4825 4826 return yyrc; 4827 } 4803 4828 4804 4829 #undef VioCreateLogFont … … 4810 4835 USHORT sel = RestoreOS2FS(); 4811 4836 4812 yyrc = V IO16CREATEPS(a, b, c, d, e, f);4813 SetFS(sel); 4814 4815 return yyrc; 4816 } 4837 yyrc = VioCreatePS(a, b, c, d, e, f); 4838 SetFS(sel); 4839 4840 return yyrc; 4841 } 4817 4842 4818 4843 #undef VioCreatePS … … 4824 4849 USHORT sel = RestoreOS2FS(); 4825 4850 4826 yyrc = V IO16DELETESETID(a, b);4827 SetFS(sel); 4828 4829 return yyrc; 4830 } 4851 yyrc = VioDeleteSetId(a, b); 4852 SetFS(sel); 4853 4854 return yyrc; 4855 } 4831 4856 4832 4857 #undef VioDeleteSetId … … 4838 4863 USHORT sel = RestoreOS2FS(); 4839 4864 4840 yyrc = V IO16DESTROYPS(a);4841 SetFS(sel); 4842 4843 return yyrc; 4844 } 4865 yyrc = VioDestroyPS(a); 4866 SetFS(sel); 4867 4868 return yyrc; 4869 } 4845 4870 4846 4871 #undef VioDestroyPS … … 4852 4877 USHORT sel = RestoreOS2FS(); 4853 4878 4854 yyrc = V IO16GETDEVICECELLSIZE(a, b, c);4855 SetFS(sel); 4856 4857 return yyrc; 4858 } 4879 yyrc = VioGetDeviceCellSize(a, b, c); 4880 SetFS(sel); 4881 4882 return yyrc; 4883 } 4859 4884 4860 4885 #undef VioGetDeviceCellSize … … 4866 4891 USHORT sel = RestoreOS2FS(); 4867 4892 4868 yyrc = V IO16GETORG(a, b, c);4869 SetFS(sel); 4870 4871 return yyrc; 4872 } 4893 yyrc = VioGetOrg(a, b, c); 4894 SetFS(sel); 4895 4896 return yyrc; 4897 } 4873 4898 4874 4899 #undef VioGetOrg … … 4880 4905 USHORT sel = RestoreOS2FS(); 4881 4906 4882 yyrc = V IO16QUERYFONTS(a, b, c, d, e, f, g);4883 SetFS(sel); 4884 4885 return yyrc; 4886 } 4907 yyrc = VioQueryFonts(a, b, c, d, e, f, g); 4908 SetFS(sel); 4909 4910 return yyrc; 4911 } 4887 4912 4888 4913 #undef VioQueryFonts … … 4894 4919 USHORT sel = RestoreOS2FS(); 4895 4920 4896 yyrc = V IO16QUERYSETIDS(a, b, c, d, e);4897 SetFS(sel); 4898 4899 return yyrc; 4900 } 4921 yyrc = VioQuerySetIds(a, b, c, d, e); 4922 SetFS(sel); 4923 4924 return yyrc; 4925 } 4901 4926 4902 4927 #undef VioQuerySetIds … … 4908 4933 USHORT sel = RestoreOS2FS(); 4909 4934 4910 yyrc = V IO16SETDEVICECELLSIZE(a, b, c);4911 SetFS(sel); 4912 4913 return yyrc; 4914 } 4935 yyrc = VioSetDeviceCellSize(a, b, c); 4936 SetFS(sel); 4937 4938 return yyrc; 4939 } 4915 4940 4916 4941 #undef VioSetDeviceCellSize … … 4922 4947 USHORT sel = RestoreOS2FS(); 4923 4948 4924 yyrc = V IO16SETORG(a, b, c);4925 SetFS(sel); 4926 4927 return yyrc; 4928 } 4949 yyrc = VioSetOrg(a, b, c); 4950 SetFS(sel); 4951 4952 return yyrc; 4953 } 4929 4954 4930 4955 #undef VioSetOrg … … 4936 4961 USHORT sel = RestoreOS2FS(); 4937 4962 4938 yyrc = V IO16SHOWPS(a, b, c, d);4939 SetFS(sel); 4940 4941 return yyrc; 4942 } 4963 yyrc = VioShowPS(a, b, c, d); 4964 SetFS(sel); 4965 4966 return yyrc; 4967 } 4943 4968 4944 4969 #undef VioShowPS … … 4954 4979 4955 4980 return yyrc; 4956 } 4981 } 4957 4982 4958 4983 #undef WinDefAVioWindowProc … … 4970 4995 4971 4996 return yyrc; 4972 } 4997 } 4973 4998 4974 4999 #undef KbdCharIn … … 4984 5009 4985 5010 return yyrc; 4986 } 5011 } 4987 5012 4988 5013 #undef KbdClose … … 4998 5023 4999 5024 return yyrc; 5000 } 5025 } 5001 5026 5002 5027 #undef KbdDeRegister … … 5012 5037 5013 5038 return yyrc; 5014 } 5039 } 5015 5040 5016 5041 #undef KbdFlushBuffer … … 5026 5051 5027 5052 return yyrc; 5028 } 5053 } 5029 5054 5030 5055 #undef KbdFreeFocus … … 5040 5065 5041 5066 return yyrc; 5042 } 5067 } 5043 5068 5044 5069 #undef KbdGetCp … … 5054 5079 5055 5080 return yyrc; 5056 } 5081 } 5057 5082 5058 5083 #undef KbdGetFocus … … 5068 5093 5069 5094 return yyrc; 5070 } 5095 } 5071 5096 5072 5097 #undef KbdGetHWID … … 5082 5107 5083 5108 return yyrc; 5084 } 5109 } 5085 5110 5086 5111 #undef KbdGetStatus … … 5096 5121 5097 5122 return yyrc; 5098 } 5123 } 5099 5124 5100 5125 #undef KbdOpen … … 5110 5135 5111 5136 return yyrc; 5112 } 5137 } 5113 5138 5114 5139 #undef KbdPeek … … 5124 5149 5125 5150 return yyrc; 5126 } 5151 } 5127 5152 5128 5153 #undef KbdRegister … … 5138 5163 5139 5164 return yyrc; 5140 } 5165 } 5141 5166 5142 5167 #undef KbdSetCp … … 5152 5177 5153 5178 return yyrc; 5154 } 5179 } 5155 5180 5156 5181 #undef KbdSetCustXt … … 5166 5191 5167 5192 return yyrc; 5168 } 5193 } 5169 5194 5170 5195 #undef KbdSetFgnd … … 5180 5205 5181 5206 return yyrc; 5182 } 5207 } 5183 5208 5184 5209 #undef KbdSetHWID … … 5194 5219 5195 5220 return yyrc; 5196 } 5221 } 5197 5222 5198 5223 #undef KbdSetStatus … … 5208 5233 5209 5234 return yyrc; 5210 } 5235 } 5211 5236 5212 5237 #undef KbdStringIn … … 5222 5247 5223 5248 return yyrc; 5224 } 5249 } 5225 5250 5226 5251 #undef KbdSynch … … 5236 5261 5237 5262 return yyrc; 5238 } 5263 } 5239 5264 5240 5265 #undef KbdXlate … … 5248 5273 USHORT sel = RestoreOS2FS(); 5249 5274 5250 yyrc = V IO16CHECKCHARTYPE(a, b, c, d);5251 SetFS(sel); 5252 5253 return yyrc; 5254 } 5275 yyrc = VioCheckCharType(a, b, c, d); 5276 SetFS(sel); 5277 5278 return yyrc; 5279 } 5255 5280 5256 5281 #undef VioCheckCharType … … 5262 5287 USHORT sel = RestoreOS2FS(); 5263 5288 5264 yyrc = V IO16DEREGISTER();5265 SetFS(sel); 5266 5267 return yyrc; 5268 } 5289 yyrc = VioDeRegister(); 5290 SetFS(sel); 5291 5292 return yyrc; 5293 } 5269 5294 5270 5295 #undef VioDeRegister … … 5276 5301 USHORT sel = RestoreOS2FS(); 5277 5302 5278 yyrc = V IO16ENDPOPUP(a);5279 SetFS(sel); 5280 5281 return yyrc; 5282 } 5303 yyrc = VioEndPopUp(a); 5304 SetFS(sel); 5305 5306 return yyrc; 5307 } 5283 5308 5284 5309 #undef VioEndPopUp … … 5290 5315 USHORT sel = RestoreOS2FS(); 5291 5316 5292 yyrc = V IO16GETANSI(a, b);5293 SetFS(sel); 5294 5295 return yyrc; 5296 } 5317 yyrc = VioGetAnsi(a, b); 5318 SetFS(sel); 5319 5320 return yyrc; 5321 } 5297 5322 5298 5323 #undef VioGetAnsi … … 5304 5329 USHORT sel = RestoreOS2FS(); 5305 5330 5306 yyrc = V IO16GETBUF(a, b, c);5307 SetFS(sel); 5308 5309 return yyrc; 5310 } 5331 yyrc = VioGetBuf(a, b, c); 5332 SetFS(sel); 5333 5334 return yyrc; 5335 } 5311 5336 5312 5337 #undef VioGetBuf … … 5318 5343 USHORT sel = RestoreOS2FS(); 5319 5344 5320 yyrc = V IO16GETCONFIG(a, b, c);5321 SetFS(sel); 5322 5323 return yyrc; 5324 } 5345 yyrc = VioGetConfig(a, b, c); 5346 SetFS(sel); 5347 5348 return yyrc; 5349 } 5325 5350 5326 5351 #undef VioGetConfig … … 5332 5357 USHORT sel = RestoreOS2FS(); 5333 5358 5334 yyrc = V IO16GETCP(a, b, c);5335 SetFS(sel); 5336 5337 return yyrc; 5338 } 5359 yyrc = VioGetCp(a, b, c); 5360 SetFS(sel); 5361 5362 return yyrc; 5363 } 5339 5364 5340 5365 #undef VioGetCp … … 5346 5371 USHORT sel = RestoreOS2FS(); 5347 5372 5348 yyrc = V IO16GETCURPOS(a, b, c);5349 SetFS(sel); 5350 5351 return yyrc; 5352 } 5373 yyrc = VioGetCurPos(a, b, c); 5374 SetFS(sel); 5375 5376 return yyrc; 5377 } 5353 5378 5354 5379 #undef VioGetCurPos … … 5360 5385 USHORT sel = RestoreOS2FS(); 5361 5386 5362 yyrc = V IO16GETCURTYPE(a, b);5363 SetFS(sel); 5364 5365 return yyrc; 5366 } 5387 yyrc = VioGetCurType(a, b); 5388 SetFS(sel); 5389 5390 return yyrc; 5391 } 5367 5392 5368 5393 #undef VioGetCurType … … 5374 5399 USHORT sel = RestoreOS2FS(); 5375 5400 5376 yyrc = V IO16GETFONT(a, b);5377 SetFS(sel); 5378 5379 return yyrc; 5380 } 5401 yyrc = VioGetFont(a, b); 5402 SetFS(sel); 5403 5404 return yyrc; 5405 } 5381 5406 5382 5407 #undef VioGetFont … … 5388 5413 USHORT sel = RestoreOS2FS(); 5389 5414 5390 yyrc = V IO16GETMODE(a, b);5391 SetFS(sel); 5392 5393 return yyrc; 5394 } 5415 yyrc = VioGetMode(a, b); 5416 SetFS(sel); 5417 5418 return yyrc; 5419 } 5395 5420 5396 5421 #undef VioGetMode … … 5402 5427 USHORT sel = RestoreOS2FS(); 5403 5428 5404 yyrc = V IO16GETPHYSBUF(a, b);5405 SetFS(sel); 5406 5407 return yyrc; 5408 } 5429 yyrc = VioGetPhysBuf(a, b); 5430 SetFS(sel); 5431 5432 return yyrc; 5433 } 5409 5434 5410 5435 #undef VioGetPhysBuf … … 5416 5441 USHORT sel = RestoreOS2FS(); 5417 5442 5418 yyrc = V IO16GETSTATE(a, b);5419 SetFS(sel); 5420 5421 return yyrc; 5422 } 5443 yyrc = VioGetState(a, b); 5444 SetFS(sel); 5445 5446 return yyrc; 5447 } 5423 5448 5424 5449 #undef VioGetState … … 5430 5455 USHORT sel = RestoreOS2FS(); 5431 5456 5432 yyrc = V IO16MODEUNDO(a, b, c);5433 SetFS(sel); 5434 5435 return yyrc; 5436 } 5457 yyrc = VioModeUndo(a, b, c); 5458 SetFS(sel); 5459 5460 return yyrc; 5461 } 5437 5462 5438 5463 #undef VioModeUndo … … 5444 5469 USHORT sel = RestoreOS2FS(); 5445 5470 5446 yyrc = V IO16MODEWAIT(a, b, c);5447 SetFS(sel); 5448 5449 return yyrc; 5450 } 5471 yyrc = VioModeWait(a, b, c); 5472 SetFS(sel); 5473 5474 return yyrc; 5475 } 5451 5476 5452 5477 #undef VioModeWait … … 5458 5483 USHORT sel = RestoreOS2FS(); 5459 5484 5460 yyrc = V IO16POPUP(a, b);5461 SetFS(sel); 5462 5463 return yyrc; 5464 } 5485 yyrc = VioPopUp(a, b); 5486 SetFS(sel); 5487 5488 return yyrc; 5489 } 5465 5490 5466 5491 #undef VioPopUp … … 5472 5497 USHORT sel = RestoreOS2FS(); 5473 5498 5474 yyrc = V IO16PRTSC(a);5475 SetFS(sel); 5476 5477 return yyrc; 5478 } 5499 yyrc = VioPrtSc(a); 5500 SetFS(sel); 5501 5502 return yyrc; 5503 } 5479 5504 5480 5505 #undef VioPrtSc … … 5486 5511 USHORT sel = RestoreOS2FS(); 5487 5512 5488 yyrc = V IO16PRTSCTOGGLE(a);5489 SetFS(sel); 5490 5491 return yyrc; 5492 } 5513 yyrc = VioPrtScToggle(a); 5514 SetFS(sel); 5515 5516 return yyrc; 5517 } 5493 5518 5494 5519 #undef VioPrtScToggle … … 5500 5525 USHORT sel = RestoreOS2FS(); 5501 5526 5502 yyrc = V IO16READCELLSTR(a, b, c, d, e);5503 SetFS(sel); 5504 5505 return yyrc; 5506 } 5527 yyrc = VioReadCellStr(a, b, c, d, e); 5528 SetFS(sel); 5529 5530 return yyrc; 5531 } 5507 5532 5508 5533 #undef VioReadCellStr … … 5514 5539 USHORT sel = RestoreOS2FS(); 5515 5540 5516 yyrc = V IO16READCHARSTR(a, b, c, d, e);5517 SetFS(sel); 5518 5519 return yyrc; 5520 } 5541 yyrc = VioReadCharStr(a, b, c, d, e); 5542 SetFS(sel); 5543 5544 return yyrc; 5545 } 5521 5546 5522 5547 #undef VioReadCharStr … … 5528 5553 USHORT sel = RestoreOS2FS(); 5529 5554 5530 yyrc = V IO16REGISTER(a, b, c, d);5531 SetFS(sel); 5532 5533 return yyrc; 5534 } 5555 yyrc = VioRegister(a, b, c, d); 5556 SetFS(sel); 5557 5558 return yyrc; 5559 } 5535 5560 5536 5561 #undef VioRegister … … 5542 5567 USHORT sel = RestoreOS2FS(); 5543 5568 5544 yyrc = V IO16SAVREDRAWUNDO(a, b, c);5545 SetFS(sel); 5546 5547 return yyrc; 5548 } 5569 yyrc = VioSavRedrawUndo(a, b, c); 5570 SetFS(sel); 5571 5572 return yyrc; 5573 } 5549 5574 5550 5575 #undef VioSavRedrawUndo … … 5556 5581 USHORT sel = RestoreOS2FS(); 5557 5582 5558 yyrc = V IO16SAVREDRAWWAIT(a, b, c);5559 SetFS(sel); 5560 5561 return yyrc; 5562 } 5583 yyrc = VioSavRedrawWait(a, b, c); 5584 SetFS(sel); 5585 5586 return yyrc; 5587 } 5563 5588 5564 5589 #undef VioSavRedrawWait … … 5570 5595 USHORT sel = RestoreOS2FS(); 5571 5596 5572 yyrc = V IO16SCRLOCK(a, b, c);5573 SetFS(sel); 5574 5575 return yyrc; 5576 } 5597 yyrc = VioScrLock(a, b, c); 5598 SetFS(sel); 5599 5600 return yyrc; 5601 } 5577 5602 5578 5603 #undef VioScrLock … … 5584 5609 USHORT sel = RestoreOS2FS(); 5585 5610 5586 yyrc = V IO16SCROLLDN(a, b, c, d, e, f, g);5587 SetFS(sel); 5588 5589 return yyrc; 5590 } 5611 yyrc = VioScrollDn(a, b, c, d, e, f, g); 5612 SetFS(sel); 5613 5614 return yyrc; 5615 } 5591 5616 5592 5617 #undef VioScrollDn … … 5598 5623 USHORT sel = RestoreOS2FS(); 5599 5624 5600 yyrc = V IO16SCROLLLF(a, b, c, d, e, f, g);5601 SetFS(sel); 5602 5603 return yyrc; 5604 } 5625 yyrc = VioScrollLf(a, b, c, d, e, f, g); 5626 SetFS(sel); 5627 5628 return yyrc; 5629 } 5605 5630 5606 5631 #undef VioScrollLf … … 5612 5637 USHORT sel = RestoreOS2FS(); 5613 5638 5614 yyrc = V IO16SCROLLRT(a, b, c, d, e, f, g);5615 SetFS(sel); 5616 5617 return yyrc; 5618 } 5639 yyrc = VioScrollRt(a, b, c, d, e, f, g); 5640 SetFS(sel); 5641 5642 return yyrc; 5643 } 5619 5644 5620 5645 #undef VioScrollRt … … 5626 5651 USHORT sel = RestoreOS2FS(); 5627 5652 5628 yyrc = V IO16SCROLLUP(a, b, c, d, e, f, g);5629 SetFS(sel); 5630 5631 return yyrc; 5632 } 5653 yyrc = VioScrollUp(a, b, c, d, e, f, g); 5654 SetFS(sel); 5655 5656 return yyrc; 5657 } 5633 5658 5634 5659 #undef VioScrollUp … … 5640 5665 USHORT sel = RestoreOS2FS(); 5641 5666 5642 yyrc = V IO16SCRUNLOCK(a);5643 SetFS(sel); 5644 5645 return yyrc; 5646 } 5667 yyrc = VioScrUnLock(a); 5668 SetFS(sel); 5669 5670 return yyrc; 5671 } 5647 5672 5648 5673 #undef VioScrUnLock … … 5654 5679 USHORT sel = RestoreOS2FS(); 5655 5680 5656 yyrc = V IO16SETANSI(a, b);5657 SetFS(sel); 5658 5659 return yyrc; 5660 } 5681 yyrc = VioSetAnsi(a, b); 5682 SetFS(sel); 5683 5684 return yyrc; 5685 } 5661 5686 5662 5687 #undef VioSetAnsi … … 5668 5693 USHORT sel = RestoreOS2FS(); 5669 5694 5670 yyrc = V IO16SETCP(a, b, c);5671 SetFS(sel); 5672 5673 return yyrc; 5674 } 5695 yyrc = VioSetCp(a, b, c); 5696 SetFS(sel); 5697 5698 return yyrc; 5699 } 5675 5700 5676 5701 #undef VioSetCp … … 5682 5707 USHORT sel = RestoreOS2FS(); 5683 5708 5684 yyrc = V IO16SETCURPOS(a, b, c);5685 SetFS(sel); 5686 5687 return yyrc; 5688 } 5709 yyrc = VioSetCurPos(a, b, c); 5710 SetFS(sel); 5711 5712 return yyrc; 5713 } 5689 5714 5690 5715 #undef VioSetCurPos … … 5696 5721 USHORT sel = RestoreOS2FS(); 5697 5722 5698 yyrc = V IO16SETCURTYPE(a, b);5699 SetFS(sel); 5700 5701 return yyrc; 5702 } 5723 yyrc = VioSetCurType(a, b); 5724 SetFS(sel); 5725 5726 return yyrc; 5727 } 5703 5728 5704 5729 #undef VioSetCurType … … 5710 5735 USHORT sel = RestoreOS2FS(); 5711 5736 5712 yyrc = V IO16SETFONT(a, b);5713 SetFS(sel); 5714 5715 return yyrc; 5716 } 5737 yyrc = VioSetFont(a, b); 5738 SetFS(sel); 5739 5740 return yyrc; 5741 } 5717 5742 5718 5743 #undef VioSetFont … … 5724 5749 USHORT sel = RestoreOS2FS(); 5725 5750 5726 yyrc = V IO16SETMODE(a, b);5727 SetFS(sel); 5728 5729 return yyrc; 5730 } 5751 yyrc = VioSetMode(a, b); 5752 SetFS(sel); 5753 5754 return yyrc; 5755 } 5731 5756 5732 5757 #undef VioSetMode … … 5738 5763 USHORT sel = RestoreOS2FS(); 5739 5764 5740 yyrc = V IO16SETSTATE(a, b);5741 SetFS(sel); 5742 5743 return yyrc; 5744 } 5765 yyrc = VioSetState(a, b); 5766 SetFS(sel); 5767 5768 return yyrc; 5769 } 5745 5770 5746 5771 #undef VioSetState … … 5752 5777 USHORT sel = RestoreOS2FS(); 5753 5778 5754 yyrc = V IO16SHOWBUF(a, b, c);5755 SetFS(sel); 5756 5757 return yyrc; 5758 } 5779 yyrc = VioShowBuf(a, b, c); 5780 SetFS(sel); 5781 5782 return yyrc; 5783 } 5759 5784 5760 5785 #undef VioShowBuf … … 5766 5791 USHORT sel = RestoreOS2FS(); 5767 5792 5768 yyrc = V IO16WRTCELLSTR(a, b, c, d, e);5769 SetFS(sel); 5770 5771 return yyrc; 5772 } 5793 yyrc = VioWrtCellStr(a, b, c, d, e); 5794 SetFS(sel); 5795 5796 return yyrc; 5797 } 5773 5798 5774 5799 #undef VioWrtCellStr … … 5780 5805 USHORT sel = RestoreOS2FS(); 5781 5806 5782 yyrc = V IO16WRTCHARSTR(a, b, c, d, e);5783 SetFS(sel); 5784 5785 return yyrc; 5786 } 5807 yyrc = VioWrtCharStr(a, b, c, d, e); 5808 SetFS(sel); 5809 5810 return yyrc; 5811 } 5787 5812 5788 5813 #undef VioWrtCharStr … … 5794 5819 USHORT sel = RestoreOS2FS(); 5795 5820 5796 yyrc = V IO16WRTCHARSTRATT(a, b, c, d, e, f);5797 SetFS(sel); 5798 5799 return yyrc; 5800 } 5821 yyrc = VioWrtCharStrAtt(a, b, c, d, e, f); 5822 SetFS(sel); 5823 5824 return yyrc; 5825 } 5801 5826 5802 5827 #undef VioWrtCharStrAtt … … 5808 5833 USHORT sel = RestoreOS2FS(); 5809 5834 5810 yyrc = V IO16WRTNATTR(a, b, c, d, e);5811 SetFS(sel); 5812 5813 return yyrc; 5814 } 5835 yyrc = VioWrtNAttr(a, b, c, d, e); 5836 SetFS(sel); 5837 5838 return yyrc; 5839 } 5815 5840 5816 5841 #undef VioWrtNAttr … … 5822 5847 USHORT sel = RestoreOS2FS(); 5823 5848 5824 yyrc = V IO16WRTNCELL(a, b, c, d, e);5825 SetFS(sel); 5826 5827 return yyrc; 5828 } 5849 yyrc = VioWrtNCell(a, b, c, d, e); 5850 SetFS(sel); 5851 5852 return yyrc; 5853 } 5829 5854 5830 5855 #undef VioWrtNCell … … 5836 5861 USHORT sel = RestoreOS2FS(); 5837 5862 5838 yyrc = V IO16WRTNCHAR(a, b, c, d, e);5839 SetFS(sel); 5840 5841 return yyrc; 5842 } 5863 yyrc = VioWrtNChar(a, b, c, d, e); 5864 SetFS(sel); 5865 5866 return yyrc; 5867 } 5843 5868 5844 5869 #undef VioWrtNChar … … 5850 5875 USHORT sel = RestoreOS2FS(); 5851 5876 5852 yyrc = V IO16WRTTTY(a, b, c);5853 SetFS(sel); 5854 5855 return yyrc; 5856 } 5877 yyrc = VioWrtTTY(a, b, c); 5878 SetFS(sel); 5879 5880 return yyrc; 5881 } 5857 5882 5858 5883 #undef VioWrtTTY … … 5866 5891 USHORT sel = RestoreOS2FS(); 5867 5892 5868 yyrc = M OU16CLOSE(a);5869 SetFS(sel); 5870 5871 return yyrc; 5872 } 5893 yyrc = MouClose(a); 5894 SetFS(sel); 5895 5896 return yyrc; 5897 } 5873 5898 5874 5899 #undef MouClose … … 5880 5905 USHORT sel = RestoreOS2FS(); 5881 5906 5882 yyrc = M OU16DEREGISTER();5883 SetFS(sel); 5884 5885 return yyrc; 5886 } 5907 yyrc = MouDeRegister(); 5908 SetFS(sel); 5909 5910 return yyrc; 5911 } 5887 5912 5888 5913 #undef MouDeRegister … … 5894 5919 USHORT sel = RestoreOS2FS(); 5895 5920 5896 yyrc = M OU16DRAWPTR(a);5897 SetFS(sel); 5898 5899 return yyrc; 5900 } 5921 yyrc = MouDrawPtr(a); 5922 SetFS(sel); 5923 5924 return yyrc; 5925 } 5901 5926 5902 5927 #undef MouDrawPtr … … 5908 5933 USHORT sel = RestoreOS2FS(); 5909 5934 5910 yyrc = M OU16FLUSHQUE(a);5911 SetFS(sel); 5912 5913 return yyrc; 5914 } 5935 yyrc = MouFlushQue(a); 5936 SetFS(sel); 5937 5938 return yyrc; 5939 } 5915 5940 5916 5941 #undef MouFlushQue … … 5922 5947 USHORT sel = RestoreOS2FS(); 5923 5948 5924 yyrc = M OU16GETDEVSTATUS(a, b);5925 SetFS(sel); 5926 5927 return yyrc; 5928 } 5949 yyrc = MouGetDevStatus(a, b); 5950 SetFS(sel); 5951 5952 return yyrc; 5953 } 5929 5954 5930 5955 #undef MouGetDevStatus … … 5936 5961 USHORT sel = RestoreOS2FS(); 5937 5962 5938 yyrc = M OU16GETEVENTMASK(a, b);5939 SetFS(sel); 5940 5941 return yyrc; 5942 } 5963 yyrc = MouGetEventMask(a, b); 5964 SetFS(sel); 5965 5966 return yyrc; 5967 } 5943 5968 5944 5969 #undef MouGetEventMask … … 5950 5975 USHORT sel = RestoreOS2FS(); 5951 5976 5952 yyrc = M OU16GETNUMBUTTONS(a, b);5953 SetFS(sel); 5954 5955 return yyrc; 5956 } 5977 yyrc = MouGetNumButtons(a, b); 5978 SetFS(sel); 5979 5980 return yyrc; 5981 } 5957 5982 5958 5983 #undef MouGetNumButtons … … 5964 5989 USHORT sel = RestoreOS2FS(); 5965 5990 5966 yyrc = M OU16GETNUMMICKEYS(a, b);5967 SetFS(sel); 5968 5969 return yyrc; 5970 } 5991 yyrc = MouGetNumMickeys(a, b); 5992 SetFS(sel); 5993 5994 return yyrc; 5995 } 5971 5996 5972 5997 #undef MouGetNumMickeys … … 5978 6003 USHORT sel = RestoreOS2FS(); 5979 6004 5980 yyrc = M OU16GETNUMQUEEL(a, b);5981 SetFS(sel); 5982 5983 return yyrc; 5984 } 6005 yyrc = MouGetNumQueEl(a, b); 6006 SetFS(sel); 6007 6008 return yyrc; 6009 } 5985 6010 5986 6011 #undef MouGetNumQueEl … … 5992 6017 USHORT sel = RestoreOS2FS(); 5993 6018 5994 yyrc = M OU16GETPTRPOS(a, b);5995 SetFS(sel); 5996 5997 return yyrc; 5998 } 6019 yyrc = MouGetPtrPos(a, b); 6020 SetFS(sel); 6021 6022 return yyrc; 6023 } 5999 6024 6000 6025 #undef MouGetPtrPos … … 6006 6031 USHORT sel = RestoreOS2FS(); 6007 6032 6008 yyrc = M OU16GETPTRSHAPE(a, b, c);6009 SetFS(sel); 6010 6011 return yyrc; 6012 } 6033 yyrc = MouGetPtrShape(a, b, c); 6034 SetFS(sel); 6035 6036 return yyrc; 6037 } 6013 6038 6014 6039 #undef MouGetPtrShape … … 6020 6045 USHORT sel = RestoreOS2FS(); 6021 6046 6022 yyrc = M OU16GETSCALEFACT(a, b);6023 SetFS(sel); 6024 6025 return yyrc; 6026 } 6047 yyrc = MouGetScaleFact(a, b); 6048 SetFS(sel); 6049 6050 return yyrc; 6051 } 6027 6052 6028 6053 #undef MouGetScaleFact … … 6034 6059 USHORT sel = RestoreOS2FS(); 6035 6060 6036 yyrc = M OU16GETTHRESHOLD(a, b);6037 SetFS(sel); 6038 6039 return yyrc; 6040 } 6061 yyrc = MouGetThreshold(a, b); 6062 SetFS(sel); 6063 6064 return yyrc; 6065 } 6041 6066 6042 6067 #undef MouGetThreshold … … 6048 6073 USHORT sel = RestoreOS2FS(); 6049 6074 6050 yyrc = M OU16INITREAL(a);6051 SetFS(sel); 6052 6053 return yyrc; 6054 } 6075 yyrc = MouInitReal(a); 6076 SetFS(sel); 6077 6078 return yyrc; 6079 } 6055 6080 6056 6081 #undef MouInitReal … … 6062 6087 USHORT sel = RestoreOS2FS(); 6063 6088 6064 yyrc = M OU16OPEN(a, b);6065 SetFS(sel); 6066 6067 return yyrc; 6068 } 6089 yyrc = MouOpen(a, b); 6090 SetFS(sel); 6091 6092 return yyrc; 6093 } 6069 6094 6070 6095 #undef MouOpen … … 6076 6101 USHORT sel = RestoreOS2FS(); 6077 6102 6078 yyrc = M OU16READEVENTQUE(a, b, c);6079 SetFS(sel); 6080 6081 return yyrc; 6082 } 6103 yyrc = MouReadEventQue(a, b, c); 6104 SetFS(sel); 6105 6106 return yyrc; 6107 } 6083 6108 6084 6109 #undef MouReadEventQue … … 6090 6115 USHORT sel = RestoreOS2FS(); 6091 6116 6092 yyrc = M OU16REGISTER(a, b, c);6093 SetFS(sel); 6094 6095 return yyrc; 6096 } 6117 yyrc = MouRegister(a, b, c); 6118 SetFS(sel); 6119 6120 return yyrc; 6121 } 6097 6122 6098 6123 #undef MouRegister … … 6104 6129 USHORT sel = RestoreOS2FS(); 6105 6130 6106 yyrc = M OU16REMOVEPTR(a, b);6107 SetFS(sel); 6108 6109 return yyrc; 6110 } 6131 yyrc = MouRemovePtr(a, b); 6132 SetFS(sel); 6133 6134 return yyrc; 6135 } 6111 6136 6112 6137 #undef MouRemovePtr … … 6118 6143 USHORT sel = RestoreOS2FS(); 6119 6144 6120 yyrc = M OU16SETDEVSTATUS(a, b);6121 SetFS(sel); 6122 6123 return yyrc; 6124 } 6145 yyrc = MouSetDevStatus(a, b); 6146 SetFS(sel); 6147 6148 return yyrc; 6149 } 6125 6150 6126 6151 #undef MouSetDevStatus … … 6132 6157 USHORT sel = RestoreOS2FS(); 6133 6158 6134 yyrc = M OU16SETEVENTMASK(a, b);6135 SetFS(sel); 6136 6137 return yyrc; 6138 } 6159 yyrc = MouSetEventMask(a, b); 6160 SetFS(sel); 6161 6162 return yyrc; 6163 } 6139 6164 6140 6165 #undef MouSetEventMask … … 6146 6171 USHORT sel = RestoreOS2FS(); 6147 6172 6148 yyrc = M OU16SETPTRPOS(a, b);6149 SetFS(sel); 6150 6151 return yyrc; 6152 } 6173 yyrc = MouSetPtrPos(a, b); 6174 SetFS(sel); 6175 6176 return yyrc; 6177 } 6153 6178 6154 6179 #undef MouSetPtrPos … … 6160 6185 USHORT sel = RestoreOS2FS(); 6161 6186 6162 yyrc = M OU16SETPTRSHAPE(a, b, c);6163 SetFS(sel); 6164 6165 return yyrc; 6166 } 6187 yyrc = MouSetPtrShape(a, b, c); 6188 SetFS(sel); 6189 6190 return yyrc; 6191 } 6167 6192 6168 6193 #undef MouSetPtrShape … … 6174 6199 USHORT sel = RestoreOS2FS(); 6175 6200 6176 yyrc = M OU16SETSCALEFACT(a, b);6177 SetFS(sel); 6178 6179 return yyrc; 6180 } 6201 yyrc = MouSetScaleFact(a, b); 6202 SetFS(sel); 6203 6204 return yyrc; 6205 } 6181 6206 6182 6207 #undef MouSetScaleFact … … 6188 6213 USHORT sel = RestoreOS2FS(); 6189 6214 6190 yyrc = M OU16SETTHRESHOLD(a, b);6191 SetFS(sel); 6192 6193 return yyrc; 6194 } 6215 yyrc = MouSetThreshold(a, b); 6216 SetFS(sel); 6217 6218 return yyrc; 6219 } 6195 6220 6196 6221 #undef MouSetThreshold … … 6202 6227 USHORT sel = RestoreOS2FS(); 6203 6228 6204 yyrc = M OU16SYNCH(a);6205 SetFS(sel); 6206 6207 return yyrc; 6208 } 6229 yyrc = MouSynch(a); 6230 SetFS(sel); 6231 6232 return yyrc; 6233 } 6209 6234 6210 6235 #undef MouSynch … … 6213 6238 #endif 6214 6239 6215 #endif 6240 #ifdef __cplusplus 6241 } // extern "C" 6242 #endif 6243 6244 #endif -
trunk/include/os2wrap2.h
r21635 r21916 791 791 #define os2_CCHMAXPATH 260 792 792 #define os2_CCHMAXPATHCOMP 256 793 #define os2_FILE_BEGIN 0 794 #define os2_FILE_CURRENT 1 795 #define os2_FILE_END 2 796 #define os2_FILE_SECTOR 0x8000 797 #define os2_FILE_NORMAL 0x0000 798 #define os2_FILE_READONLY 0x0001 799 #define os2_FILE_HIDDEN 0x0002 800 #define os2_FILE_SYSTEM 0x0004 801 #define os2_FILE_DIRECTORY 0x0010 802 #define os2_FILE_ARCHIVED 0x0020 803 #define os2_FILE_IGNORE 0x10000 804 #define os2_FILE_EXISTED 0x0001 805 #define os2_FILE_CREATED 0x0002 806 #define os2_FILE_TRUNCATED 0x0003 807 #define os2_FILE_OPEN 0x0001 808 #define os2_FILE_TRUNCATE 0x0002 809 #define os2_FILE_CREATE 0x0010 810 #define os2_MUST_HAVE_READONLY (os2_FILE_READONLY | (os2_FILE_READONLY << 8)) 811 #define os2_MUST_HAVE_HIDDEN (os2_FILE_HIDDEN | (os2_FILE_HIDDEN << 8)) 812 #define os2_MUST_HAVE_SYSTEM (os2_FILE_SYSTEM | (os2_FILE_SYSTEM << 8)) 813 #define os2_MUST_HAVE_DIRECTORY (os2_FILE_DIRECTORY | (os2_FILE_DIRECTORY << 8)) 814 #define os2_MUST_HAVE_ARCHIVED (os2_FILE_ARCHIVED | (os2_FILE_ARCHIVED << 8)) 793 815 #define HFILE os2_HFILE 794 816 #define PHFILE os2_PHFILE … … 3358 3380 #undef CCHMAXPATH 3359 3381 #undef CCHMAXPATHCOMP 3382 #undef FILE_BEGIN 3383 #undef FILE_CURRENT 3384 #undef FILE_END 3385 #undef FILE_SECTOR 3386 #undef FILE_NORMAL 3387 #undef FILE_READONLY 3388 #undef FILE_HIDDEN 3389 #undef FILE_SYSTEM 3390 #undef FILE_DIRECTORY 3391 #undef FILE_ARCHIVED 3392 #undef FILE_IGNORE 3393 #undef FILE_EXISTED 3394 #undef FILE_CREATED 3395 #undef FILE_TRUNCATED 3396 #undef FILE_OPEN 3397 #undef FILE_TRUNCATE 3398 #undef FILE_CREATE 3399 #undef MUST_HAVE_READONLY 3400 #undef MUST_HAVE_HIDDEN 3401 #undef MUST_HAVE_SYSTEM 3402 #undef MUST_HAVE_DIRECTORY 3403 #undef MUST_HAVE_ARCHIVED 3360 3404 #undef HFILE 3361 3405 #undef PHFILE -
trunk/include/os2wrap2_gen.sh
r21635 r21916 52 52 :a;/\\$/{N;ba} 53 53 s/([^A-Za-z0-9_])(MAKE[A-Z0-9]+)([^A-Za-z0-9_])/\1 \2 \3/g 54 s/([^A-Za-z0-9_])(((BM|CLR|CONTEXT|CREATE|CS|DM|DT|EH|ERROR|EXCEPTION|EXLST|F DM|FNTM|HWND|LM|MB|MIA|MM|NP|OBJ|PAG|QS|QSV|RGN|RT|SEM|SEVERITY|SIS|SV|SWP|TA|WC|WM|WS|XCPT|(WIN|GPI|DEV|SPL)ERR)_([A-Z0-9_]+))|((P?VOID|(API|EXP)ENTRY|P(CMD|CHR|MSE)MSG|ERRORID|NO_ERROR|PCMDMSG|SEL|HWND|MPARAM|MRESULT|LHANDLE|SHANDLE|BOOL|(LO|HI|P)?U?(LONG|SHORT|CHAR|BYTE)|(CCH|MPFROM|MAKE)[A-Z0-9]+)([^A-Za-z0-9_])))/\1os2_\2/g54 s/([^A-Za-z0-9_])(((BM|CLR|CONTEXT|CREATE|CS|DM|DT|EH|ERROR|EXCEPTION|EXLST|FILE|FDM|FNTM|HWND|LM|MB|MIA|MM|NP|OBJ|PAG|QS|QSV|RGN|RT|SEM|SEVERITY|SIS|SV|SWP|TA|WC|WM|WS|XCPT|(WIN|GPI|DEV|SPL)ERR)_([A-Z0-9_]+))|((P?VOID|(API|EXP)ENTRY|P(CMD|CHR|MSE)MSG|ERRORID|NO_ERROR|PCMDMSG|SEL|HWND|MPARAM|MRESULT|LHANDLE|SHANDLE|BOOL|(LO|HI|P)?U?(LONG|SHORT|CHAR|BYTE)|(CCH|MPFROM|MAKE)[A-Z0-9]+)([^A-Za-z0-9_])))/\1os2_\2/g 55 55 tb;bd 56 56 :b … … 95 95 :a;/\\$/{N;ba} 96 96 s/([^A-Za-z0-9_])(MAKE[A-Z0-9]+)([^A-Za-z0-9_])/\1 \2 \3/g 97 s/([^A-Za-z0-9_])(((BM|CLR|CONTEXT|CREATE|CS|DM|DT|EH|ERROR|EXCEPTION|EXLST|F DM|FNTM|HWND|LM|MB|MIA|MM|NP|OBJ|PAG|QS|QSV|RGN|RT|SEM|SEVERITY|SIS|SV|SWP|TA|WC|WM|WS|XCPT|(WIN|GPI|DEV|SPL)ERR)_([A-Z0-9_]+))|((P?VOID|(API|EXP)ENTRY|P(CMD|CHR|MSE)MSG|ERRORID|NO_ERROR|PCMDMSG|SEL|HWND|MPARAM|MRESULT|LHANDLE|SHANDLE|BOOL|(LO|HI|P)?U?(LONG|SHORT|CHAR|BYTE)|(CCH|MPFROM|MAKE)[A-Z0-9]+)([^A-Za-z0-9_])))/\1os2_\2/g97 s/([^A-Za-z0-9_])(((BM|CLR|CONTEXT|CREATE|CS|DM|DT|EH|ERROR|EXCEPTION|EXLST|FILE|FDM|FNTM|HWND|LM|MB|MIA|MM|NP|OBJ|PAG|QS|QSV|RGN|RT|SEM|SEVERITY|SIS|SV|SWP|TA|WC|WM|WS|XCPT|(WIN|GPI|DEV|SPL)ERR)_([A-Z0-9_]+))|((P?VOID|(API|EXP)ENTRY|P(CMD|CHR|MSE)MSG|ERRORID|NO_ERROR|PCMDMSG|SEL|HWND|MPARAM|MRESULT|LHANDLE|SHANDLE|BOOL|(LO|HI|P)?U?(LONG|SHORT|CHAR|BYTE)|(CCH|MPFROM|MAKE)[A-Z0-9]+)([^A-Za-z0-9_])))/\1os2_\2/g 98 98 tb;bd 99 99 :b -
trunk/include/overlappedio.h
r8838 r21916 146 146 LPASYNCIOREQUEST pending[NR_ASYNC_OPERATIONS]; 147 147 148 friendDWORD CALLBACK OverlappedIOThread(LPVOID lpThreadParam);148 static DWORD CALLBACK OverlappedIOThread(LPVOID lpThreadParam); 149 149 }; 150 150 -
trunk/include/stats.h
r21301 r21916 5 5 6 6 //Get memory statistics from odincrt 7 void _LNK_CONV getcrtstat(unsigned long *pnrcalls_malloc, 8 unsigned long *pnrcalls_free, 9 unsigned long *ptotalmemalloc); 7 void SYSTEM getcrtstat(unsigned long *pnrcalls_malloc, 8 unsigned long *pnrcalls_free, 9 unsigned long *ptotalmemalloc); 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 10 13 11 14 #ifdef OS2_INCLUDED … … 99 102 #endif 100 103 104 #ifdef __cplusplus 105 } // extern "C" 101 106 #endif 107 108 #endif -
trunk/include/vmutex.h
r8200 r21916 11 11 #include <odincrt.h> 12 12 13 class VMutex13 class __declspec(dllexport) VMutex 14 14 { 15 15 public: -
trunk/include/win/commdlg.h
r21497 r21916 182 182 HWND hInstance; 183 183 DWORD rgbResult; 184 LPDWORD *lpCustColors;184 LPDWORD lpCustColors; 185 185 DWORD Flags; 186 186 DWORD lCustData; -
trunk/include/win/dde.h
r7869 r21916 28 28 #define WM_DDE_LAST WM_DDE_EXECUTE 29 29 #define WM_DDE_FIRST WM_DDE_INITIATE 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 30 34 31 35 /* DDEACK: wStatus in WM_DDE_ACK message */ … … 75 79 LPARAM WINAPI ReuseDDElParam(LPARAM,UINT,UINT,UINT,UINT); 76 80 81 #ifdef __cplusplus 82 } // extern "C" 83 #endif 84 77 85 #endif /* __WINE_DDE_H */ -
trunk/include/win/debugtools.h
r21352 r21916 9 9 10 10 #ifndef __MISC_H__ 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 11 15 12 16 #ifdef DEBUG … … 47 51 #endif 48 52 49 int SYSTEM WriteLog(c har *tekst, ...);50 int SYSTEM WritePrivateLog(void *logfile, c har *tekst, ...);53 int SYSTEM WriteLog(const char *tekst, ...); 54 int SYSTEM WritePrivateLog(void *logfile, const char *tekst, ...); 51 55 52 56 void SYSTEM DecreaseLogCount(); 53 57 void SYSTEM IncreaseLogCount(); 58 59 #ifdef __cplusplus 60 } // extern "C" 61 #endif 54 62 55 63 #endif //__MISC_H__ … … 169 177 # define MESSAGE WriteLog 170 178 #else 171 # define TRACE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL) 172 # define TRACE_(ch) 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL) 173 # define FIXME 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL) 174 # define FIXME_(ch) 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL) 175 # define WARN 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL) 176 # define WARN_(ch) 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL) 177 # define ERR_(ch) 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL) 178 # define ERR 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL) 179 # define DPRINTF 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL) 180 # define MESSAGE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL) 179 #ifdef __GNUC__ 180 # define TRACE 1 ? (void) 0 : (void) 181 # define TRACE_(ch) 1 ? (void) 0 : (void) 182 # define FIXME 1 ? (void) 0 : (void) 183 # define FIXME_(ch) 1 ? (void) 0 : (void) 184 # define WARN 1 ? (void) 0 : (void) 185 # define WARN_(ch) 1 ? (void) 0 : (void) 186 # define ERR_(ch) 1 ? (void) 0 : (void) 187 # define ERR 1 ? (void) 0 : (void) 188 # define DPRINTF 1 ? (void) 0 : (void) 189 # define MESSAGE 1 ? (void) 0 : (void) 190 #else 191 # define TRACE 1 ? (void)0 : (void)((int (*)(const char *, ...)) NULL) 192 # define TRACE_(ch) 1 ? (void)0 : (void)((int (*)(const char *, ...)) NULL) 193 # define FIXME 1 ? (void)0 : (void)((int (*)(const char *, ...)) NULL) 194 # define FIXME_(ch) 1 ? (void)0 : (void)((int (*)(constchar *, ...)) NULL) 195 # define WARN 1 ? (void)0 : (void)((int (*)(const char *, ...)) NULL) 196 # define WARN_(ch) 1 ? (void)0 : (void)((int (*)(const char *, ...)) NULL) 197 # define ERR_(ch) 1 ? (void)0 : (void)((int (*)(const char *, ...)) NULL) 198 # define ERR 1 ? (void)0 : (void)((int (*)(const char *, ...)) NULL) 199 # define DPRINTF 1 ? (void)0 : (void)((int (*)(const char *, ...)) NULL) 200 # define MESSAGE 1 ? (void)0 : (void)((int (*)(const char *, ...)) NULL) 201 #endif 181 202 #endif 182 203 #undef __GET_DEBUGGING -
trunk/include/win/dsound.h
r21572 r21916 181 181 typedef LPVOID* LPLPVOID; 182 182 183 typedef BOOL (* CALLBACK LPDSENUMCALLBACKW)(LPGUID,LP WSTR,LPWSTR,LPVOID);184 typedef BOOL (* CALLBACK LPDSENUMCALLBACKA)(LPGUID,LP STR,LPSTR,LPVOID);183 typedef BOOL (* CALLBACK LPDSENUMCALLBACKW)(LPGUID,LPCWSTR,LPCWSTR,LPVOID); 184 typedef BOOL (* CALLBACK LPDSENUMCALLBACKA)(LPGUID,LPCSTR,LPCSTR,LPVOID); 185 185 DECL_WINELIB_TYPE_AW(LPDSENUMCALLBACK) 186 186 -
trunk/include/win/global.h
r4 r21916 18 18 int shmid; 19 19 } SHMDATA; 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 20 24 21 25 /* memory/global.c */ … … 45 49 extern BOOL ATOM_Init( WORD globalTableSel ); 46 50 51 #ifdef __cplusplus 52 } // extern "C" 53 #endif 54 47 55 #endif /* __WINE_GLOBAL_H */ -
trunk/include/win/guiddef.h
r21520 r21916 33 33 #ifndef __LPCGUID_DEFINED__ 34 34 #define __LPCGUID_DEFINED__ 35 typedef const GUID *PCGUID; 35 36 typedef const GUID *LPCGUID; 36 37 #endif -
trunk/include/win/minivcrt.h
r21506 r21916 107 107 108 108 #define swprintf NTDLL_swprintf 109 #define snwprintf NTDLL_snwprintf 109 110 #define swscanf NTDLL_swscanf 110 111 111 112 int swprintf(WCHAR*,const WCHAR*,...); 113 int snwprintf(WCHAR*,unsigned int,const WCHAR*,...); 112 114 int swscanf(const WCHAR*,const WCHAR*,...); 113 115 -
trunk/include/win/monitor.h
r1859 r21916 10 10 11 11 //#include "windef.h" 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 12 16 13 17 struct tagMONITOR_DRIVER; … … 46 50 extern void MONITOR_SetScreenSaveTimeout(MONITOR *pMonitor, int nTimeout); 47 51 52 #ifdef __cplusplus 53 } // extern "C" 54 #endif 55 48 56 #endif /* __WINE_MONITOR_H */ 49 57 -
trunk/include/win/ntddk.h
r21327 r21916 876 876 877 877 /* mathematics */ 878 #if defined(__WIN32OS2__) && defined(__IBMC__) 878 #if defined(__WIN32OS2__) && defined(WINE_LARGE_INTEGER) && !defined(WINE_LONGLONG) 879 879 880 LARGE_INTEGER WINAPI RtlpConvertLongToLargeInteger( LONG a ); 880 881 LARGE_INTEGER WINAPI RtlpEnlargedIntegerMultiply( INT a, INT b ); -
trunk/include/win/ntdef.h
r21419 r21916 9 9 #endif 10 10 11 #define NTAPI __stdcall 11 #define NTAPI __stdcall 12 12 13 13 #ifndef IN … … 27 27 #endif 28 28 29 #ifndef WINE_NTSTATUS_DECLARED 30 #define WINE_NTSTATUS_DECLARED 29 31 typedef LONG NTSTATUS; 32 #endif 33 #ifndef WINE_PNTSTATUS_DECLARED 34 #define WINE_PNTSTATUS_DECLARED 30 35 typedef NTSTATUS *PNTSTATUS; 36 #endif 31 37 38 typedef char *PSZ; 32 39 typedef CONST char *PCSZ; 33 40 34 41 typedef short CSHORT; 35 typedef CSHORT *PCSHORT; 42 typedef CSHORT *PCSHORT; 36 43 37 44 /* NT lowlevel Strings (handled by Rtl* functions in NTDLL) … … 73 80 #define OBJ_VALID_ATTRIBUTES 0x000003F2L 74 81 75 typedef struct _OBJECT_ATTRIBUTES 82 typedef struct _OBJECT_ATTRIBUTES 76 83 { ULONG Length; 77 84 HANDLE RootDirectory; -
trunk/include/win/pe_image.h
r4124 r21916 32 32 extern HGLOBAL PE_LoadResource(struct _wine_modref *wm,HRSRC); 33 33 extern HMODULE PE_LoadImage( HFILE hFile, OFSTRUCT *ofs, LPCSTR *modName ); 34 extern struct _wine_modref *PE_CreateModule( HMODULE hModule, OFSTRUCT *ofs, 34 extern struct _wine_modref *PE_CreateModule( HMODULE hModule, OFSTRUCT *ofs, 35 35 DWORD flags, BOOL builtin ); 36 extern BOOL PE_CreateProcess( HFILE hFile, OFSTRUCT *ofs, LPCSTR cmd_line, LPCSTR env, 36 extern BOOL PE_CreateProcess( HFILE hFile, OFSTRUCT *ofs, LPCSTR cmd_line, LPCSTR env, 37 37 LPSECURITY_ATTRIBUTES psa, LPSECURITY_ATTRIBUTES tsa, 38 38 BOOL inherit, LPSTARTUPINFOA startup, … … 48 48 49 49 typedef struct { 50 WORD popl WINE_PACKED;/* 0x8f 0x05 */51 DWORD addr_popped WINE_PACKED;/* ... */52 BYTE pushl1 WINE_PACKED;/* 0x68 */53 DWORD newret WINE_PACKED;/* ... */54 BYTE pushl2 WINE_PACKED;/* 0x68 */55 DWORD origfun WINE_PACKED;/* original function */56 BYTE ret1 WINE_PACKED;/* 0xc3 */57 WORD addesp WINE_PACKED;/* 0x83 0xc4 */58 BYTE nrofargs WINE_PACKED; /* nr of arguments to add esp, */59 BYTE pushl3 WINE_PACKED;/* 0x68 */60 DWORD oldret WINE_PACKED;/* Filled out from popl above */61 BYTE ret2 WINE_PACKED;/* 0xc3 */62 } ELF_STDCALL_STUB;50 WORD popl; /* 0x8f 0x05 */ 51 DWORD addr_popped;/* ... */ 52 BYTE pushl1; /* 0x68 */ 53 DWORD newret; /* ... */ 54 BYTE pushl2; /* 0x68 */ 55 DWORD origfun; /* original function */ 56 BYTE ret1; /* 0xc3 */ 57 WORD addesp; /* 0x83 0xc4 */ 58 BYTE nrofargs; /* nr of arguments to add esp, */ 59 BYTE pushl3; /* 0x68 */ 60 DWORD oldret; /* Filled out from popl above */ 61 BYTE ret2; /* 0xc3 */ 62 } WINE_PACKED ELF_STDCALL_STUB; 63 63 64 64 typedef struct { -
trunk/include/win/setupapi.h
r9402 r21916 29 29 unsigned short Data3; 30 30 unsigned char Data4[8]; 31 } GUID, *PGUID, *LPGUID; 31 } GUID; 32 #endif 33 #ifndef __LPCGUID_DEFINED__ 34 #define __LPCGUID_DEFINED__ 35 typedef const GUID *PCGUID; 36 typedef const GUID *LPCGUID; 32 37 #endif 33 38 #include <wtypes.h> -
trunk/include/win/shellapi.h
r21510 r21916 3 3 4 4 #include "windef.h" 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 5 9 6 10 #pragma pack(1) … … 166 170 typedef WORD PRINTEROP_FLAGS; 167 171 168 typedef struct _SHNAMEMAPPINGW { 169 LPWSTR pszOldPath; 170 LPWSTR pszNewPath; 171 int cchOldPath; 172 int cchNewPath; 173 } SHNAMEMAPPINGW, *LPSHNAMEMAPPINGW; 172 typedef struct _SHNAMEMAPPINGW { 173 LPWSTR pszOldPath; 174 LPWSTR pszNewPath; 175 int cchOldPath; 176 int cchNewPath; 177 } SHNAMEMAPPINGW, *LPSHNAMEMAPPINGW; 174 178 175 179 typedef struct _SHFILEOPSTRUCTA … … 292 296 #pragma pack(4) 293 297 298 #ifdef __cplusplus 299 } // extern "C" 300 #endif 301 294 302 #endif /* _WINE_SHELLAPI_H */ -
trunk/include/win/task.h
r2651 r21916 60 60 61 61 /* Task database. See 'Windows Internals' p. 226. 62 * Note that 16-bit OLE 2 libs like to read it directly 63 * so we have to keep entry offsets as they are. 62 * Note that 16-bit OLE 2 libs like to read it directly 63 * so we have to keep entry offsets as they are. 64 64 */ 65 65 typedef struct _TDB … … 104 104 DWORD dlls_to_init; /* ac Ptr to DLLs to initialize */ 105 105 HANDLE16 hCSAlias; /* b0 Code segment for this TDB */ 106 THUNKS thunks WINE_PACKED;/* b2 Make proc instance thunks */106 THUNKS thunks; /* b2 Make proc instance thunks */ 107 107 WORD more_thunks[6*4]; /* c2 Space for 6 more thunks */ 108 108 BYTE module_name[8]; /* f2 Module name for task */ -
trunk/include/win/vfw.h
r6387 r21916 50 50 51 51 /* Installable Compressor Manager */ 52 53 DECLARE_HANDLE(HIC);54 52 55 53 #ifdef __WINE__ -
trunk/include/win/virtual.h
r7566 r21916 8 8 #define __VIRTUAL_H 9 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 10 14 HANDLE WINAPI VIRTUAL_MapFileA( LPCSTR name , LPVOID *lpMapping, BOOL fReadIntoMemory = FALSE); 11 15 HANDLE WINAPI VIRTUAL_MapFileW( LPCWSTR name , LPVOID *lpMapping, BOOL fReadIntoMemory = FALSE); … … 14 18 DWORD fdwProtect, LPSTR name); 15 19 20 #ifdef __cplusplus 21 } // extern "C" 22 #endif 23 16 24 #endif /* __VIRTUAL_H */ -
trunk/include/win/wine/debug.h
r8208 r21916 22 22 #define __WINE_WINE_DEBUG_H 23 23 24 #include <win \debugtools.h>24 #include <win/debugtools.h> 25 25 #include <stdarg.h> 26 26 -
trunk/include/win/wine/obj_base.h
r21493 r21916 703 703 typedef struct IMalloc16 IMalloc16,*LPMALLOC16; 704 704 typedef struct IMalloc IMalloc,*LPMALLOC; 705 typedef const IMalloc *LPCMALLOC; 705 706 706 707 DEFINE_OLEGUID(IID_IUnknown, 0x00000000L, 0, 0); -
trunk/include/win/wine/obj_surrogate.h
r641 r21916 46 46 #endif // __WINE_WINE_OBJ_SURROGATE_H 47 47 48 48 -
trunk/include/win/wine/winbase16.h
r641 r21916 171 171 DWORD WINAPI RegCreateKey16(HKEY,LPCSTR,LPHKEY); 172 172 DWORD WINAPI RegDeleteKey16(HKEY,LPCSTR); 173 DWORD WINAPI RegDeleteValue16(HKEY,LP STR);173 DWORD WINAPI RegDeleteValue16(HKEY,LPCSTR); 174 174 DWORD WINAPI RegEnumKey16(HKEY,DWORD,LPSTR,DWORD); 175 175 DWORD WINAPI RegEnumValue16(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD); … … 178 178 DWORD WINAPI RegQueryValueEx16(HKEY,LPSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD); 179 179 DWORD WINAPI RegSetValue16(HKEY,LPCSTR,DWORD,LPCSTR,DWORD); 180 DWORD WINAPI RegSetValueEx16(HKEY,LPSTR,DWORD,DWORD, LPBYTE,DWORD);180 DWORD WINAPI RegSetValueEx16(HKEY,LPSTR,DWORD,DWORD,const BYTE *,DWORD); 181 181 BOOL16 WINAPI RemoveDirectory16(LPCSTR); 182 182 BOOL16 WINAPI SetCurrentDirectory16(LPCSTR); -
trunk/include/win/winnls.h
r21360 r21916 560 560 */ 561 561 562 #ifdef __cplusplus 563 extern "C" { 564 #endif 565 562 566 UINT WINAPI CompareStringA(LCID,DWORD,LPCSTR,DWORD,LPCSTR,DWORD); 563 567 UINT WINAPI CompareStringW(LCID,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD); … … 633 637 INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,LPBOOL); 634 638 639 #ifdef __cplusplus 640 } // extern "C" 641 #endif 642 635 643 #endif //#ifndef OS2_INCLUDED 636 644 -
trunk/include/win/winprocess.h
r8771 r21916 186 186 #define GPD_USERDATA ( 0) 187 187 188 #ifdef __cplusplus 189 extern "C" { 190 #endif 191 188 192 extern DWORD WINAPI GetProcessDword( DWORD dwProcessID, INT offset ); 189 193 void WINAPI SetProcessDword( DWORD dwProcessID, INT offset, DWORD value ); … … 214 218 extern DWORD DEBUG_SendUnloadDLLEvent( HMODULE module ); 215 219 220 #ifdef __cplusplus 221 } // extern "C" 222 #endif 223 216 224 #include <wprocess.h> 217 225 -
trunk/include/win/winreg.h
r21327 r21916 124 124 DWORD ve_type; 125 125 } VALENTW, *PVALENTW; 126 127 #ifdef __cplusplus 128 extern "C" { 129 #endif 126 130 127 131 BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,LPVOID); … … 195 199 LONG WINAPI RegDeleteKeyW(HKEY,LPCWSTR); 196 200 #define RegDeleteKey WINELIB_NAME_AW(RegDeleteKey) 197 LONG WINAPI RegDeleteValueA(HKEY,LP STR);198 LONG WINAPI RegDeleteValueW(HKEY,LP WSTR);201 LONG WINAPI RegDeleteValueA(HKEY,LPCSTR); 202 LONG WINAPI RegDeleteValueW(HKEY,LPCWSTR); 199 203 #define RegDeleteValue WINELIB_NAME_AW(RegDeleteValue) 200 204 LSTATUS WINAPI RegDeleteTreeA(HKEY,LPCSTR); … … 219 223 LONG WINAPI RegSetValueW(HKEY,LPCWSTR,DWORD,LPCWSTR,DWORD); 220 224 #define RegSetValue WINELIB_NAME_AW(RegSetValue) 221 LONG WINAPI RegSetValueExA(HKEY,LPCSTR,DWORD,DWORD, LPBYTE,DWORD);222 LONG WINAPI RegSetValueExW(HKEY,LPCWSTR,DWORD,DWORD, LPBYTE,DWORD);225 LONG WINAPI RegSetValueExA(HKEY,LPCSTR,DWORD,DWORD,const BYTE *,DWORD); 226 LONG WINAPI RegSetValueExW(HKEY,LPCWSTR,DWORD,DWORD,const BYTE *,DWORD); 223 227 #define RegSetValueEx WINELIB_NAME_AW(RegSetValueEx) 224 228 … … 227 231 #define RegQueryMultipleValues WINELIB_NAME_AW(RegQueryMultipleValues) 228 232 233 #ifdef __cplusplus 234 } // extern "C" 235 #endif 236 229 237 #endif /* __WINE_WINREG_H */ -
trunk/include/win/winuser.h
r21553 r21916 3205 3205 #define DI_DEFAULTSIZE 8 3206 3206 3207 /* misc messages */3207 /* misc messages */ 3208 3208 #define WM_NULL 0x0000 3209 #define WM_CPL_LAUNCH (WM_USER + 1000)3210 #define WM_CPL_LAUNCHED (WM_USER + 1001)3211 3209 3212 3210 /* WM_NOTIFYFORMAT commands and return values */ -
trunk/include/win32api.h
r21602 r21916 11 11 #include <win32type.h> 12 12 #include <winconst.h> 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 13 17 14 18 void WIN32API SetLastError(DWORD dwError); … … 25 29 LONG WIN32API RegDeleteKeyA(HKEY,LPCSTR); 26 30 LONG WIN32API RegDeleteKeyW(HKEY,LPWSTR); 27 LONG WIN32API RegDeleteValueA(HKEY,LP STR);28 LONG WIN32API RegDeleteValueW(HKEY,LP WSTR);31 LONG WIN32API RegDeleteValueA(HKEY,LPCSTR); 32 LONG WIN32API RegDeleteValueW(HKEY,LPCWSTR); 29 33 LONG WIN32API RegEnumKeyA(HKEY,DWORD,LPSTR,DWORD); 30 34 LONG WIN32API RegEnumKeyW(HKEY,DWORD,LPWSTR,DWORD); … … 37 41 LONG WIN32API RegQueryValueA(HKEY,LPCSTR,LPSTR,LPLONG); 38 42 LONG WIN32API RegQueryValueW(HKEY,LPCWSTR,LPWSTR,LPLONG); 39 LONG WIN32API RegQueryValueExA(HKEY,LP STR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);40 LONG WIN32API RegQueryValueExW(HKEY,LP WSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);43 LONG WIN32API RegQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD); 44 LONG WIN32API RegQueryValueExW(HKEY,LPCWSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD); 41 45 LONG WIN32API RegSetValueA(HKEY,LPCSTR,DWORD,LPCSTR,DWORD); 42 46 LONG WIN32API RegSetValueW(HKEY,LPCWSTR,DWORD,LPCWSTR,DWORD); 43 LONG WIN32API RegSetValueExA(HKEY,LP STR,DWORD,DWORD,LPBYTE,DWORD);44 LONG WIN32API RegSetValueExW(HKEY,LP WSTR,DWORD,DWORD,LPBYTE,DWORD);47 LONG WIN32API RegSetValueExA(HKEY,LPCSTR,DWORD,DWORD,const BYTE *,DWORD); 48 LONG WIN32API RegSetValueExW(HKEY,LPCWSTR,DWORD,DWORD,const BYTE *,DWORD); 45 49 46 50 DWORD WIN32API GetModuleFileNameA(HMODULE,LPSTR,DWORD); … … 263 267 BOOL WINAPI IsDBCSLeadByte(BYTE); 264 268 269 #ifdef __cplusplus 270 } // extern "C" 265 271 #endif 272 273 #endif -
trunk/include/wingdi32.h
r10316 r21916 17 17 18 18 VOID WIN32API UnselectGDIObjects(HDC hdc); 19 BOOL OSLibGpiSetCp(HDC hdc, ULONG codepage);20 19 void WIN32API ConvertRGB555to565(LPVOID dest, LPVOID src, UINT imgsize); 21 20 21 BOOL SYSTEM OSLibGpiSetCp(HDC hdc, ULONG codepage); 22 22 23 #endif //__WINGDI32_H__ -
trunk/include/winkeyboard.h
r7314 r21916 10 10 #define __WINKEYBOARD_H__ 11 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 12 15 13 14 BYTE WIN32API KeyTranslatePMToWin(BYTE key); 15 void WIN32API KeyTranslatePMToWinBuf(BYTE *pmkey, BYTE *winkey, int nrkeys); 16 void WIN32API KeyTranslatePMScanToWinVKey(BYTE bPMScan, 16 void WIN32API KeyTranslatePMToWinBuf(PUCHAR pmkey, PUCHAR winkey, int nrkeys); 17 void WIN32API KeyTranslatePMScanToWinVKey(UCHAR uchPMScan, 17 18 BOOL bNumLock, 18 P BYTE pbWinVKey,19 WORD *pwWinScan,19 PUCHAR puchWinVKey, 20 WORD *pwWinScan, 20 21 PBOOL pfExtended); 21 BYTE WIN32API KeyTranslateWinVKeyToPMScan(BYTE bWinVKey, BOOL fExtended);22 BYTE WIN32API KeyTranslateWinScanToPMScan(BYTE bWinScan, BOOL fExtended);22 UCHAR WIN32API KeyTranslateWinVKeyToPMScan(UCHAR uchWinVKey, BOOL fExtended); 23 UCHAR WIN32API KeyTranslateWinScanToPMScan(UCHAR uchWinScan, BOOL fExtended); 23 24 24 25 #define KEYOVERLAYSTATE_DONTCARE 0 … … 29 30 char nState); 30 31 32 #ifdef __cplusplus 33 } // extern "C" 34 #endif 31 35 32 36 #endif //__WINKEYBOARD_H__ -
trunk/include/winos2def.h
r223 r21916 31 31 #endif 32 32 33 #ifndef PSZ 34 # define PSZ char * 35 #endif 33 typedef char *PSZ; 34 typedef const char *PCSZ; 36 35 37 36 … … 55 54 56 55 return yyrc; 57 } 56 } 58 57 59 58 #undef WinPostMsg … … 69 68 70 69 return yyrc; 71 } 70 } 72 71 73 72 #undef DosSleep … … 116 115 117 116 return yyrc; 118 } 117 } 119 118 120 119 #undef DosQueryCtryInfo -
trunk/include/winres.h
r9849 r21916 11 11 #define __WINRES_H__ 12 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 13 17 PVOID WIN32API ConvertResourceToOS2(HINSTANCE hInstance, LPSTR restype, HRSRC hResource); 14 18 ULONG WIN32API QueryConvertedResourceSize(HINSTANCE hInstance, LPSTR restype, HRSRC hResource); … … 19 23 void *WIN32API ConvertIconGroupIndirect(void *lpIconData, DWORD iconsize, DWORD *ressize); 20 24 25 #ifdef __cplusplus 26 } // extern "C" 21 27 #endif 28 29 #endif -
trunk/include/winuser32.h
r10435 r21916 12 12 #include <dcdata.h> 13 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 14 18 ULONG OSLibGetScreenHeight(); 15 19 ULONG OSLibGetScreenWidth(); … … 24 28 LONG WIN32API clientHeight(HWND hwnd, pDCData pHps); 25 29 int WIN32API setMapModeDC(pDCData pHps, int mode); 30 31 #ifdef __cplusplus 32 } // extern "C" 33 #endif 34 35 #endif 36 37 #ifdef __cplusplus 38 extern "C" { 26 39 #endif 27 40 … … 98 111 } POSTMSG_PACKET; 99 112 113 #ifdef __cplusplus 114 } // extern "C" 115 #endif 116 100 117 #endif //__WINUSER32_H__ -
trunk/include/wprocess.h
r21381 r21916 29 29 #define ODIN_GetCurrentThreadId() MAKE_THREADID(fibGetPid(), fibGetTid()) 30 30 #define ODIN_GetCurrentProcessId() fibGetPid() 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 31 35 32 36 TEB *WIN32API CreateTEB(HANDLE hThread, DWORD dwThreadId); … … 84 88 UINT WIN32API GetProcModuleFileNameA(ULONG lpvAddress, LPSTR lpszFileName, UINT cchFileNameMax); 85 89 90 #ifdef __cplusplus 91 } // extern "C" 86 92 #endif 93 94 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
