Changeset 21787
- Timestamp:
- Nov 3, 2011, 5:46:14 PM (14 years ago)
- Location:
- branches/gcc-kmk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/include/_ras.h
r21755 r21787 49 49 50 50 /* Tracked objects logging functions typedefs */ 51 typedef void WIN32API FNRASLOG_EXTERNAL (const char *fmt, ...);51 typedef void WIN32API_VA FNRASLOG_EXTERNAL (const char *fmt, ...); 52 52 53 53 typedef ULONG WIN32API FNLOC (ULONG objident, ULONG objhandle, void *objdata, ULONG cbobjdata, FNRASLOG_EXTERNAL *pRasLog); … … 150 150 151 151 /* RAS logging functions */ 152 void WIN32API RasLog (152 void WIN32API_VA RasLog ( 153 153 const char *fmt, /* 'printf' style format string */ 154 154 ... 155 155 ); 156 156 157 void WIN32API RasLogNoEOL (157 void WIN32API_VA RasLogNoEOL ( 158 158 const char *fmt, /* 'printf' style format string */ 159 159 ... … … 173 173 ); 174 174 175 void WIN32API RasLog2 (175 void WIN32API_VA RasLog2 ( 176 176 RAS_LOG_CHANNEL_H hchannel, /* log channel to log to */ 177 177 char *fmt, /* 'printf' style format string */ … … 179 179 ); 180 180 181 void WIN32API RasLogNoEOL2 (181 void WIN32API_VA RasLogNoEOL2 ( 182 182 RAS_LOG_CHANNEL_H hchannel, /* log channel to log to */ 183 183 char *fmt, /* 'printf' style format string */ … … 194 194 /* RAS replacement for C runtime sprintf function */ 195 195 #ifdef __GNUC__ 196 int WIN32API ras_snprintf (196 int WIN32API_VA ras_snprintf ( 197 197 #else 198 198 int WIN32API snprintf ( … … 266 266 void (* WIN32API RasWriteLogChannel) (RAS_LOG_CHANNEL_H hchannel, const char *msg, ULONG length); 267 267 void (* WIN32API RasCloseLogChannel) (RAS_LOG_CHANNEL_H hchannel); 268 void (* WIN32API RasLog) (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...);269 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, ...); 270 270 void (* WIN32API RasLogMsg) (RAS_LOG_CHANNEL_H hchannel, ULONG msg, ULONG parm1, ULONG parm2); 271 int (* WIN32API snprintf) (char *buf, int n, const char *fmt, ...);271 int (* WIN32API_VA snprintf) (char *buf, int n, const char *fmt, ...); 272 272 void (* WIN32API RasSaveContext) (RASCONTEXT *pcontext); 273 273 void (* WIN32API RasRestoreContext) (RASCONTEXT *pcontext); -
branches/gcc-kmk/include/odin.h
r21738 r21787 171 171 #endif 172 172 173 173 #ifdef __GNUC__ 174 // __stdcall in GCC for OS/2 incorrectly mangles vararg functions; according to 175 // MSDN, they should be equal to __cdecl instead of getting the @N suffix 176 #define WIN32API_VA __cdecl 177 #else 178 #define WIN32API_VA WIN32API 179 #endif 174 180 175 181 #endif /* _ODIN_H_*/ -
branches/gcc-kmk/src/kernel32/_ras.cpp
r21755 r21787 618 618 619 619 #ifdef __GNUC__ 620 int WIN32API ras_snprintf (char *buf, int n, const char *fmt, ...)620 int WIN32API_VA ras_snprintf (char *buf, int n, const char *fmt, ...) 621 621 #else 622 622 int WIN32API snprintf (char *buf, int n, const char *fmt, ...) … … 853 853 } 854 854 855 void WIN32API rasLogExternal (const char *fmt, ...)855 void WIN32API_VA rasLogExternal (const char *fmt, ...) 856 856 { 857 857 va_list args; … … 1864 1864 1865 1865 1866 void WIN32API RasLog (const char *fmt, ...)1866 void WIN32API_VA RasLog (const char *fmt, ...) 1867 1867 { 1868 1868 ENTER_RAS (NO_HANDLE); … … 1879 1879 } 1880 1880 1881 void WIN32API RasLogNoEOL (const char *fmt, ...)1881 void WIN32API_VA RasLogNoEOL (const char *fmt, ...) 1882 1882 { 1883 1883 va_list args; … … 2008 2008 } 2009 2009 2010 void WIN32API RasLog2 (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...)2010 void WIN32API_VA RasLog2 (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...) 2011 2011 { 2012 2012 ENTER_RAS (NO_HANDLE); … … 2023 2023 } 2024 2024 2025 void WIN32API RasLogNoEOL2 (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...)2025 void WIN32API_VA RasLogNoEOL2 (RAS_LOG_CHANNEL_H hchannel, char *fmt, ...) 2026 2026 { 2027 2027 va_list args;
Note:
See TracChangeset
for help on using the changeset viewer.