Changeset 9631 for trunk/include
- Timestamp:
- Jan 6, 2003, 2:24:23 PM (23 years ago)
- Location:
- trunk/include
- Files:
-
- 1 added
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/odin32.dbg.emx.mk
r7999 r9631 1 # $Id: odin32.dbg.emx.mk,v 1. 7 2002-02-23 23:51:48 birdExp $1 # $Id: odin32.dbg.emx.mk,v 1.8 2003-01-06 13:24:19 sandervl Exp $ 2 2 3 3 # … … 74 74 !endif 75 75 CXXEXCEPTIONS = -fhandle-exceptions 76 CFLAGS = - c -Zomf -mprobe-pipe -Wall -Zmt -g $(CTARGETFLAGS)77 CXXFLAGS = - c -Zomf -mprobe-pipe -Wall -Zmt -g $(CXXTARGETFLAGS)78 CXXFLAGS_ODINCRT = - c -Zomf -mprobe-pipe -Wall -Zmt -g $(CXXTARGETFLAGS)79 CFLAGS_WIN32APP = - c -Zomf -mprobe-pipe -Wall -Zmt -g $(CTARGETFLAGS)80 CXXFLAGS_WIN32APP= - c -Zomf -mprobe-pipe -Wall -Zmt -g $(CXXTARGETFLAGS) $(CXXEXCEPTIONS)76 CFLAGS = -Zomf -pipe -Wall -Zmt -g $(CTARGETFLAGS) 77 CXXFLAGS = -Zomf -pipe -Wall -Zmt -g $(CXXTARGETFLAGS) 78 CXXFLAGS_ODINCRT = -Zomf -pipe -Wall -Zmt -g $(CXXTARGETFLAGS) 79 CFLAGS_WIN32APP = -Zomf -pipe -Wall -Zmt -g $(CTARGETFLAGS) 80 CXXFLAGS_WIN32APP= -Zomf -pipe -Wall -Zmt -g $(CXXTARGETFLAGS) $(CXXEXCEPTIONS) 81 81 CINCLUDES = -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE) 82 82 CDEFINES_WIN32APP= -DDEBUG -D__WIN32OS2__ -D__i386__ … … 115 115 !endif 116 116 !ifdef NODEBUGINFO 117 LDFLAGS = -Zmt -Zomf -Zmap $(LDTARGETFLAGS) -s -ZLinker /EXEPACK:2 -ZLinker /NOD118 LDFLAGS_ODINCRT = -Zmt -Zomf -Zmap $(LDTARGETFLAGS) -s -ZLinker /EXEPACK:2117 LDFLAGS = -Zmt -Zomf -Zmap $(LDTARGETFLAGS) -g 118 LDFLAGS_ODINCRT = -Zmt -Zomf -Zmap $(LDTARGETFLAGS) -g 119 119 LD2FLAGS = $(LD2TARGETFLAGS) -s -O/EXEPACK:2 -O/NOD 120 120 LD2FLAGS_ODINCRT = $(LD2TARGETFLAGS) -s -O/EXEPACK:2 … … 122 122 LD2FLAGS_ODINCRT = /nologo /noe /map /packcode /packdata /exepack:2 /nodebug $(LD2TARGETFLAGS) 123 123 !else 124 LDFLAGS = -Z mt -Zomf -Zmap $(LDTARGETFLAGS) -ZLinker /NOD125 LDFLAGS_ODINCRT = -Z mt -Zomf -Zmap $(LDTARGETFLAGS)124 LDFLAGS = -Zomf -Zmap $(LDTARGETFLAGS) -g 125 LDFLAGS_ODINCRT = -Zso -Zsys -Zomf -Zmap $(LDTARGETFLAGS) -g 126 126 LD2FLAGS = /nologo /noe /map /packcode /packdata /exepack:2 /nod /debug $(LD2TARGETFLAGS) 127 127 LD2FLAGS_ODINCRT = /nologo /noe /map /packcode /packdata /exepack:2 /debug $(LD2TARGETFLAGS) -
trunk/include/odin32.rel.emx.mk
r7999 r9631 1 # $Id: odin32.rel.emx.mk,v 1. 7 2002-02-23 23:51:50 birdExp $1 # $Id: odin32.rel.emx.mk,v 1.8 2003-01-06 13:24:19 sandervl Exp $ 2 2 3 3 # … … 38 38 CXX = gcc 39 39 AS = alp 40 AS_EMX = as 40 41 LD = gcc 41 42 LD2 = link386 … … 74 75 !endif 75 76 CXXEXCEPTIONS = -fhandle-exceptions 76 CFLAGS = - c -Zomf -mprobe -pipe -Wall -Zmt -s -O2 -mcpu=i586$(CTARGETFLAGS)77 CXXFLAGS = - c -Zomf -mprobe -pipe -Wall -Zmt -s -O2 -mcpu=i586$(CXXTARGETFLAGS)78 CXXFLAGS_ODINCRT = - c -Zomf -mprobe -pipe -Wall -Zmt -s -O2 -mcpu=i586$(CXXTARGETFLAGS)79 CFLAGS_WIN32APP = - c -Zomf -mprobe -pipe -Wall -Zmt -s -O2 -mcpu=i586$(CTARGETFLAGS)80 CXXFLAGS_WIN32APP= - c -Zomf -mprobe -pipe -Wall -Zmt -s -O2 -mcpu=i586$(CXXTARGETFLAGS) $(CXXEXCEPTIONS)77 CFLAGS = -Zomf -pipe -Wall -Zmt -s -O6 -mcpu=pentium $(CTARGETFLAGS) 78 CXXFLAGS = -Zomf -pipe -Wall -Zmt -s -O6 -mcpu=pentium $(CXXTARGETFLAGS) 79 CXXFLAGS_ODINCRT = -Zomf -pipe -Wall -Zmt -s -O6 -mcpu=pentium $(CXXTARGETFLAGS) 80 CFLAGS_WIN32APP = -Zomf -pipe -Wall -Zmt -s -O6 -mcpu=pentium $(CTARGETFLAGS) 81 CXXFLAGS_WIN32APP= -Zomf -pipe -Wall -Zmt -s -O6 -mcpu=pentium $(CXXTARGETFLAGS) $(CXXEXCEPTIONS) 81 82 CINCLUDES = -I$(ODIN32_INCLUDE)\Win -I. -I$(ODIN32_INCLUDE) 82 CDEFINES_WIN32APP= -D DEBUG -D__WIN32OS2__ -D__i386__83 CDEFINES_ODINCRT = -D DEBUG -D__WIN32OS2__ -D__i386__ -D__WINE__84 CDEFINES = -D DEBUG -D__WIN32OS2__ -D__i386__ -D__WINE__ -DTCPV40HDRS -DCOMCTL32UNDOC \83 CDEFINES_WIN32APP= -D__WIN32OS2__ -D__i386__ 84 CDEFINES_ODINCRT = -D__WIN32OS2__ -D__i386__ -D__WINE__ 85 CDEFINES = -D__WIN32OS2__ -D__i386__ -D__WINE__ -DTCPV40HDRS -DCOMCTL32UNDOC \ 85 86 !ifdef DEBUGALL 86 87 -DDEBUG_ENABLELOG_LEVEL2 \ … … 114 115 LD2TARGETFLAGS = /DLL 115 116 !endif 116 LDFLAGS = -Z mt -Zomf -Zmap $(LDTARGETFLAGS) -s -ZLinker /EXEPACK:2 -ZLinker /NOD117 LDFLAGS_ODINCRT = -Z mt -Zomf -Zmap $(LDTARGETFLAGS) -s -ZLinker /EXEPACK:2117 LDFLAGS = -Zomf -Zmap $(LDTARGETFLAGS) -s 118 LDFLAGS_ODINCRT = -Zso -Zsys -Zomf -Zmap $(LDTARGETFLAGS) -s 118 119 LD2FLAGS = /nologo /noe /map /packcode /packdata /exepack:2 /nodebug /nod $(LD2TARGETFLAGS) 119 120 LD2FLAGS_ODINCRT = /nologo /noe /map /packcode /packdata /exepack:2 /nodebug $(LD2TARGETFLAGS) -
trunk/include/odin32.tools.emx.mk
r6896 r9631 1 # $Id: odin32.tools.emx.mk,v 1. 5 2001-09-30 09:46:16 birdExp $1 # $Id: odin32.tools.emx.mk,v 1.6 2003-01-06 13:24:20 sandervl Exp $ 2 2 3 3 # … … 39 39 # Interference rules. 40 40 # 41 .SUFFIXES: .orc_asm .orc .pre-c .pre-cpp 41 .SUFFIXES: .orc_asm .orc .pre-c .pre-cpp .S 42 42 43 43 .c{$(OBJDIR)}.obj: … … 98 98 $(CMDQD_SUB) $(OS2RC) $(OS2RCFLAGS) $(CINCLUDES:-I=-i ) $< $@ 99 99 100 .S{$(OBJDIR)}.obj: 101 !ifdef USERAPP 102 $(CMDQD_SUB) $(CXX) $(CXXFLAGS) $(CINCLUDES) $(CDEFINES_WIN32APP) -o$(OBJDIR)\$(@B).obj -c $< 103 !else 104 $(CMDQD_SUB) $(CXX) $(CXXFLAGS) $(CINCLUDES) $(CDEFINES) -o$(OBJDIR)\$(@B).obj -c $< 105 !endif 106 107 -
trunk/include/os2sel.h
r6997 r9631 1 /* $Id: os2sel.h,v 1. 9 2001-10-10 21:22:13 phallerExp $ */1 /* $Id: os2sel.h,v 1.10 2003-01-06 13:24:20 sandervl Exp $ */ 2 2 /* 3 3 * … … 33 33 value [bx] \ 34 34 modify nomemory exact [ax]; 35 #endif 36 37 #ifdef __EMX__ 38 extern inline unsigned short GetFS(void) 39 { 40 asm volatile ( 41 "mov %eax, %fs \n\t" 42 ); 43 } 44 45 extern inline void SetFS(unsigned short sel) 46 { 47 asm volatile ( 48 "mov %eax,%esp \n\t" 49 "mov %fs, %eax \n\t" 50 ); 51 } 52 53 extern inline unsigned short RestoreOS2FS(void) 54 { 55 asm volatile ( 56 "push 0x150b \n\t" 57 "mov %ax, %fs \n\t" 58 "pop %fs" 59 ); 60 } 61 35 62 36 63 #else … … 40 67 void _System SetFS (unsigned short selector); 41 68 unsigned short _System SetReturnFS (unsigned short selector); 69 //SvL: Checks if thread FS & exception structure are valid 70 int _System CheckCurFS(void); 42 71 #endif 43 72 44 //SvL: Checks if thread FS & exception structure are valid45 int _System CheckCurFS(void);46 73 47 74 -
trunk/include/win/msvcrt/ctype.h
r8207 r9631 10 10 #define __WINE_USE_MSVCRT 11 11 12 #include "msvcrt/wctype.h" 13 12 #ifndef MSVCRT 13 # ifdef USE_MSVCRT_PREFIX 14 # define MSVCRT(x) MSVCRT_##x 15 # else 16 # define MSVCRT(x) x 17 # endif 18 #endif 14 19 15 20 #ifdef __cplusplus 16 21 extern "C" { 17 22 #endif 23 24 #ifndef MSVCRT_WCHAR_T_DEFINED 25 #define MSVCRT_WCHAR_T_DEFINED 26 #ifndef __cplusplus 27 typedef unsigned short MSVCRT(wchar_t); 28 #endif 29 #endif 30 31 #ifndef USE_MSVCRT_PREFIX 32 # ifndef WEOF 33 # define WEOF (wint_t)(0xFFFF) 34 # endif 35 #else 36 # ifndef MSVCRT_WEOF 37 # define MSVCRT_WEOF (MSVCRT_wint_t)(0xFFFF) 38 # endif 39 #endif /* USE_MSVCRT_PREFIX */ 40 41 #ifndef MSVCRT_WCTYPE_T_DEFINED 42 typedef MSVCRT(wchar_t) MSVCRT(wint_t); 43 typedef MSVCRT(wchar_t) MSVCRT(wctype_t); 44 #define MSVCRT_WCTYPE_T_DEFINED 45 #endif 46 47 /* ASCII char classification table - binary compatible */ 48 #define _UPPER 0x0001 /* C1_UPPER */ 49 #define _LOWER 0x0002 /* C1_LOWER */ 50 #define _DIGIT 0x0004 /* C1_DIGIT */ 51 #define _SPACE 0x0008 /* C1_SPACE */ 52 #define _PUNCT 0x0010 /* C1_PUNCT */ 53 #define _CONTROL 0x0020 /* C1_CNTRL */ 54 #define _BLANK 0x0040 /* C1_BLANK */ 55 #define _HEX 0x0080 /* C1_XDIGIT */ 56 #define _LEADBYTE 0x8000 57 #define _ALPHA (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */ 18 58 19 59 int MSVCRT(__isascii)(int); … … 38 78 int MSVCRT(toupper)(int); 39 79 80 #ifndef MSVCRT_WCTYPE_DEFINED 81 #define MSVCRT_WCTYPE_DEFINED 82 int MSVCRT(is_wctype)(MSVCRT(wint_t),MSVCRT(wctype_t)); 83 int MSVCRT(isleadbyte)(int); 84 int MSVCRT(iswalnum)(MSVCRT(wint_t)); 85 int MSVCRT(iswalpha)(MSVCRT(wint_t)); 86 int MSVCRT(iswascii)(MSVCRT(wint_t)); 87 int MSVCRT(iswcntrl)(MSVCRT(wint_t)); 88 int MSVCRT(iswctype)(MSVCRT(wint_t),MSVCRT(wctype_t)); 89 int MSVCRT(iswdigit)(MSVCRT(wint_t)); 90 int MSVCRT(iswgraph)(MSVCRT(wint_t)); 91 int MSVCRT(iswlower)(MSVCRT(wint_t)); 92 int MSVCRT(iswprint)(MSVCRT(wint_t)); 93 int MSVCRT(iswpunct)(MSVCRT(wint_t)); 94 int MSVCRT(iswspace)(MSVCRT(wint_t)); 95 int MSVCRT(iswupper)(MSVCRT(wint_t)); 96 int MSVCRT(iswxdigit)(MSVCRT(wint_t)); 97 MSVCRT(wchar_t) MSVCRT(towlower)(MSVCRT(wchar_t)); 98 MSVCRT(wchar_t) MSVCRT(towupper)(MSVCRT(wchar_t)); 99 #endif /* MSVCRT_WCTYPE_DEFINED */ 100 40 101 #ifdef __cplusplus 41 102 } -
trunk/include/win/msvcrt/eh.h
r8207 r9631 32 32 #endif 33 33 34 struct _EXCEPTION_POINTERS; 34 35 35 36 typedef void (*terminate_handler)(); … … 37 38 typedef void (*unexpected_handler)(); 38 39 typedef void (*unexpected_function)(); 39 40 typedef void (*_se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info); 40 41 41 42 terminate_function MSVCRT(set_terminate)(terminate_function func); 42 43 unexpected_function MSVCRT(set_unexpected)(unexpected_function func); 44 _se_translator_function MSVCRT(_set_se_translator)(_se_translator_function func); 45 43 46 void MSVCRT(terminate)(); 44 47 void MSVCRT(unexpected)(); -
trunk/include/win/msvcrt/excpt.h
r8207 r9631 23 23 * Return values from the actual exception handlers 24 24 */ 25 #ifndef ExceptionContinueExecution 25 26 #undef ExceptionContinueExecution 27 #undef ExceptionContinueSearch 28 #undef ExceptionNestedException 29 #undef ExceptionCollidedUnwind 26 30 27 31 typedef enum _EXCEPTION_DISPOSITION … … 40 44 #define EXCEPTION_CONTINUE_EXECUTION -1 41 45 42 #endif43 46 44 47 -
trunk/include/win/msvcrt/malloc.h
r8207 r9631 40 40 #define _USEDENTRY 1 41 41 42 43 42 #ifndef MSVCRT_SIZE_T_DEFINED 44 43 typedef unsigned int MSVCRT(size_t); 45 44 #define MSVCRT_SIZE_T_DEFINED 46 45 #endif 46 47 47 48 48 typedef struct _heapinfo -
trunk/include/win/msvcrt/search.h
r8207 r9631 29 29 30 30 31 #ifndef MSVCRT_SIZE_T_DEFINED32 typedef unsigned int MSVCRT(size_t);33 #define MSVCRT_SIZE_T_DEFINED34 #endif35 36 37 31 #ifdef __cplusplus 38 32 extern "C" { -
trunk/include/win/msvcrt/stddef.h
r8207 r9631 32 32 #endif 33 33 34 #ifndef MSVCRT_WCHAR_T_DEFINED 35 #define MSVCRT_WCHAR_T_DEFINED 36 #ifndef __cplusplus 37 typedef unsigned short MSVCRT(wchar_t); 38 #endif 39 #endif 40 34 41 /* Best to leave this one alone: wchar_t */ 35 42 -
trunk/include/win/msvcrt/stdio.h
r8207 r9631 13 13 #include <stdarg.h> 14 14 #endif 15 #include "msvcrt/wctype.h" /* For wint_t */ 16 15 16 #ifndef MSVCRT 17 # ifdef USE_MSVCRT_PREFIX 18 # define MSVCRT(x) MSVCRT_##x 19 # else 20 # define MSVCRT(x) x 21 # endif 22 #endif 17 23 18 24 /* file._flag flags */ … … 27 33 #define _IOAPPEND 0x0200 28 34 #else 29 #define MSVCRT__IOREAD 0x0001 30 #define MSVCRT__IOWRT 0x0002 31 #define MSVCRT__IOMYBUF 0x0008 32 #define MSVCRT__IOEOF 0x0010 33 #define MSVCRT__IOERR 0x0020 34 #define MSVCRT__IOSTRG 0x0040 35 #define MSVCRT__IORW 0x0080 36 #define MSVCRT__IOAPPEND 0x0200 35 #define MSVCRT__IOREAD 0x0001 36 #define MSVCRT__IOWRT 0x0002 37 #define MSVCRT__IOMYBUF 0x0008 38 #define MSVCRT__IOEOF 0x0010 39 #define MSVCRT__IOERR 0x0020 40 #define MSVCRT__IOSTRG 0x0040 41 #define MSVCRT__IORW 0x0080 42 #define MSVCRT__IOAPPEND 0x0200 37 43 #endif /* USE_MSVCRT_PREFIX */ 38 44 45 #ifndef NULL 46 #ifdef __cplusplus 47 #define NULL 0 48 #else 49 #define NULL ((void *)0) 50 #endif 51 #endif 39 52 40 53 #ifndef USE_MSVCRT_PREFIX … … 77 90 #endif /* USE_MSVCRT_PREFIX */ 78 91 92 #ifndef MSVCRT_FILE_DEFINED 93 #define MSVCRT_FILE_DEFINED 79 94 typedef struct MSVCRT(_iobuf) 80 95 { … … 88 103 char* _tmpfname; 89 104 } MSVCRT(FILE); 90 105 #endif /* MSVCRT_FILE_DEFINED */ 106 107 #ifndef MSVCRT_FPOS_T_DEFINED 91 108 typedef long MSVCRT(fpos_t); 109 #define MSVCRT_FPOS_T_DEFINED 110 #endif 92 111 93 112 #ifndef MSVCRT_SIZE_T_DEFINED … … 96 115 #endif 97 116 117 #ifndef MSVCRT_WCHAR_T_DEFINED 118 #define MSVCRT_WCHAR_T_DEFINED 119 #ifndef __cplusplus 120 typedef unsigned short MSVCRT(wchar_t); 121 #endif 122 #endif 123 124 #ifndef MSVCRT_WCTYPE_T_DEFINED 125 typedef MSVCRT(wchar_t) MSVCRT(wint_t); 126 typedef MSVCRT(wchar_t) MSVCRT(wctype_t); 127 #define MSVCRT_WCTYPE_T_DEFINED 128 #endif 98 129 99 130 #ifdef __cplusplus … … 101 132 #endif 102 133 134 #ifndef MSVCRT_STDIO_DEFINED 103 135 MSVCRT(FILE)* MSVCRT(__p__iob)(void); 104 136 #define _iob (__p__iob()) 137 #endif /* MSVCRT_STDIO_DEFINED */ 138 105 139 #ifndef USE_MSVCRT_PREFIX 106 140 #define stdin (_iob+STDIN_FILENO) … … 113 147 #endif /* USE_MSVCRT_PREFIX, __WINE__ */ 114 148 115 149 #ifndef MSVCRT_STDIO_DEFINED 150 #define MSVCRT_STDIO_DEFINED 116 151 int _fcloseall(void); 117 152 MSVCRT(FILE)* _fdopen(int,const char*); … … 177 212 int MSVCRT(vsprintf)(char*,const char*,va_list); 178 213 179 MSVCRT(wint_t) _fgetwchar(void); 180 MSVCRT(wint_t) _fputwchar(MSVCRT(wint_t)); 181 WCHAR* _getws(WCHAR*); 182 int _putws(const WCHAR*); 183 int _snwprintf(WCHAR*,MSVCRT(size_t),const WCHAR*,...); 184 int _vsnwprintf(WCHAR*,MSVCRT(size_t),const WCHAR*,va_list); 185 MSVCRT(FILE)* _wfdopen(int,const WCHAR*); 186 MSVCRT(FILE)* _wfopen(const WCHAR*,const WCHAR*); 187 MSVCRT(FILE)* _wfreopen(const WCHAR*,const WCHAR*,MSVCRT(FILE)*); 188 MSVCRT(FILE)* _wfsopen(const WCHAR*,const WCHAR*,int); 189 void _wperror(const WCHAR*); 190 MSVCRT(FILE)* _wpopen(const WCHAR*,const WCHAR*); 191 int _wremove(const WCHAR*); 192 WCHAR* _wtempnam(const WCHAR*,const WCHAR*); 193 WCHAR* _wtmpnam(WCHAR*); 194 195 MSVCRT(wint_t) MSVCRT(fgetwc)(MSVCRT(FILE)*); 196 WCHAR* MSVCRT(fgetws)(WCHAR*,int,MSVCRT(FILE)*); 197 MSVCRT(wint_t) MSVCRT(fputwc)(MSVCRT(wint_t),MSVCRT(FILE)*); 198 int MSVCRT(fputws)(const WCHAR*,MSVCRT(FILE)*); 199 int MSVCRT(fwprintf)(MSVCRT(FILE)*,const WCHAR*,...); 200 int MSVCRT(fputws)(const WCHAR*,MSVCRT(FILE)*); 201 int MSVCRT(fwscanf)(MSVCRT(FILE)*,const WCHAR*,...); 202 MSVCRT(wint_t) MSVCRT(getwc)(MSVCRT(FILE)*); 203 MSVCRT(wint_t) MSVCRT(getwchar)(void); 204 WCHAR* MSVCRT(getws)(WCHAR*); 205 MSVCRT(wint_t) MSVCRT(putwc)(MSVCRT(wint_t),MSVCRT(FILE)*); 206 MSVCRT(wint_t) MSVCRT(putwchar)(MSVCRT(wint_t)); 207 int MSVCRT(putws)(const WCHAR*); 208 int MSVCRT(swprintf)(WCHAR*,const WCHAR*,...); 209 int MSVCRT(swscanf)(WCHAR*,const WCHAR*,...); 210 MSVCRT(wint_t) MSVCRT(ungetwc)(MSVCRT(wint_t),MSVCRT(FILE)*); 211 int MSVCRT(vfwprintf)(MSVCRT(FILE)*,const WCHAR*,va_list); 212 int MSVCRT(vswprintf)(WCHAR*,const WCHAR*,va_list); 213 int MSVCRT(vwprintf)(const WCHAR*,va_list); 214 int MSVCRT(wprintf)(const WCHAR*,...); 215 int MSVCRT(wscanf)(const WCHAR*,...); 214 #ifndef MSVCRT_WSTDIO_DEFINED 215 #define MSVCRT_WSTDIO_DEFINED 216 MSVCRT(wint_t) _fgetwchar(void); 217 MSVCRT(wint_t) _fputwchar(MSVCRT(wint_t)); 218 MSVCRT(wchar_t)*_getws(MSVCRT(wchar_t)*); 219 int _putws(const MSVCRT(wchar_t)*); 220 int _snwprintf(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,...); 221 int _vsnwprintf(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,va_list); 222 MSVCRT(FILE)* _wfdopen(int,const MSVCRT(wchar_t)*); 223 MSVCRT(FILE)* _wfopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*); 224 MSVCRT(FILE)* _wfreopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,MSVCRT(FILE)*); 225 MSVCRT(FILE)* _wfsopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,int); 226 void _wperror(const MSVCRT(wchar_t)*); 227 MSVCRT(FILE)* _wpopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*); 228 int _wremove(const MSVCRT(wchar_t)*); 229 MSVCRT(wchar_t)*_wtempnam(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*); 230 MSVCRT(wchar_t)*_wtmpnam(MSVCRT(wchar_t)*); 231 232 MSVCRT(wint_t) MSVCRT(fgetwc)(MSVCRT(FILE)*); 233 MSVCRT(wchar_t)*MSVCRT(fgetws)(MSVCRT(wchar_t)*,int,MSVCRT(FILE)*); 234 MSVCRT(wint_t) MSVCRT(fputwc)(MSVCRT(wint_t),MSVCRT(FILE)*); 235 int MSVCRT(fputws)(const MSVCRT(wchar_t)*,MSVCRT(FILE)*); 236 int MSVCRT(fwprintf)(MSVCRT(FILE)*,const MSVCRT(wchar_t)*,...); 237 int MSVCRT(fputws)(const MSVCRT(wchar_t)*,MSVCRT(FILE)*); 238 int MSVCRT(fwscanf)(MSVCRT(FILE)*,const MSVCRT(wchar_t)*,...); 239 MSVCRT(wint_t) MSVCRT(getwc)(MSVCRT(FILE)*); 240 MSVCRT(wint_t) MSVCRT(getwchar)(void); 241 MSVCRT(wchar_t)*MSVCRT(getws)(MSVCRT(wchar_t)*); 242 MSVCRT(wint_t) MSVCRT(putwc)(MSVCRT(wint_t),MSVCRT(FILE)*); 243 MSVCRT(wint_t) MSVCRT(putwchar)(MSVCRT(wint_t)); 244 int MSVCRT(putws)(const MSVCRT(wchar_t)*); 245 int MSVCRT(swprintf)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...); 246 int MSVCRT(swscanf)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...); 247 MSVCRT(wint_t) MSVCRT(ungetwc)(MSVCRT(wint_t),MSVCRT(FILE)*); 248 int MSVCRT(vfwprintf)(MSVCRT(FILE)*,const MSVCRT(wchar_t)*,va_list); 249 int MSVCRT(vswprintf)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,va_list); 250 int MSVCRT(vwprintf)(const MSVCRT(wchar_t)*,va_list); 251 int MSVCRT(wprintf)(const MSVCRT(wchar_t)*,...); 252 int MSVCRT(wscanf)(const MSVCRT(wchar_t)*,...); 253 #endif /* MSVCRT_WSTDIO_DEFINED */ 254 255 #endif /* MSVCRT_STDIO_DEFINED */ 216 256 217 257 #ifdef __cplusplus -
trunk/include/win/msvcrt/stdlib.h
r8207 r9631 26 26 #define _MAX_DRIVE 3 27 27 #define _MAX_FNAME 256 28 29 #ifndef _MAX_DIR 28 30 #define _MAX_DIR _MAX_FNAME 31 #endif 32 33 #ifndef _MAX_EXT 29 34 #define _MAX_EXT _MAX_FNAME 35 #endif 36 30 37 #define _MAX_PATH 260 31 38 #endif … … 43 50 44 51 52 #ifdef __min /* watcom stdlib.h defines this */ 53 #undef __min 54 #endif 55 56 #ifdef __max /* watcom stdlib.h defines this */ 57 #undef __max 58 #endif 59 45 60 #define __max(a,b) (((a) > (b)) ? (a) : (b)) 46 61 #define __min(a,b) (((a) < (b)) ? (a) : (b)) 62 47 63 #ifndef __cplusplus 48 64 #define max(a,b) (((a) > (b)) ? (a) : (b)) … … 167 183 WCHAR* _ui64tow(unsigned __int64,WCHAR*,int); 168 184 WCHAR* _ultow(unsigned long,WCHAR*,int); 169 WCHAR* _wfullpath(WCHAR*,const WCHAR*, size_t);185 WCHAR* _wfullpath(WCHAR*,const WCHAR*,MSVCRT(size_t)); 170 186 WCHAR* _wgetenv(const WCHAR*); 171 187 void _wmakepath(WCHAR*,const WCHAR*,const WCHAR*,const WCHAR*,const WCHAR*); -
trunk/include/win/msvcrt/sys/stat.h
r8207 r9631 10 10 #define __WINE_USE_MSVCRT 11 11 12 #include " msvcrt/sys/types.h"12 #include "sys/types.h" 13 13 14 #ifndef MSVCRT 15 # ifdef USE_MSVCRT_PREFIX 16 # define MSVCRT(x) MSVCRT_##x 17 # else 18 # define MSVCRT(x) x 19 # endif 20 #endif 21 22 #ifndef MSVCRT_WCHAR_T_DEFINED 23 #define MSVCRT_WCHAR_T_DEFINED 24 #ifndef __cplusplus 25 typedef unsigned short MSVCRT(wchar_t); 26 #endif 27 #endif 28 29 #ifndef _MSC_VER 30 # ifndef __int64 31 # define __int64 long long 32 # endif 33 #endif 34 35 #ifndef MSVCRT_DEV_T_DEFINED 36 typedef unsigned int _dev_t; 37 #define MSVCRT_DEV_T_DEFINED 38 #endif 39 40 #ifndef MSVCRT_INO_T_DEFINED 41 typedef unsigned short _ino_t; 42 #define MSVCRT_INO_T_DEFINED 43 #endif 44 45 #ifndef MSVCRT_TIME_T_DEFINED 46 typedef long MSVCRT(time_t); 47 #define MSVCRT_TIME_T_DEFINED 48 #endif 49 50 #ifndef MSVCRT_OFF_T_DEFINED 51 typedef int MSVCRT(_off_t); 52 #define MSVCRT_OFF_T_DEFINED 53 #endif 14 54 15 55 #define _S_IEXEC 0x0040 … … 22 62 #define _S_IFMT 0xF000 23 63 64 /* for FreeBSD */ 65 #undef st_atime 66 #undef st_ctime 67 #undef st_mtime 68 69 #ifndef MSVCRT_STAT_DEFINED 70 #define MSVCRT_STAT_DEFINED 24 71 25 72 struct _stat { … … 31 78 short st_gid; 32 79 _dev_t st_rdev; 33 _off_tst_size;80 MSVCRT(_off_t) st_size; 34 81 MSVCRT(time_t) st_atime; 35 82 MSVCRT(time_t) st_mtime; … … 50 97 MSVCRT(time_t) st_ctime; 51 98 }; 52 99 #endif /* MSVCRT_STAT_DEFINED */ 53 100 54 101 #ifdef __cplusplus … … 56 103 #endif 57 104 58 int _fstat(int,struct _stat*); 105 int MSVCRT(_fstat)(int,struct _stat*); 106 int MSVCRT(_stat)(const char*,struct _stat*); 59 107 int _fstati64(int,struct _stati64*); 60 int _stat(const char*,struct _stat*);61 108 int _stati64(const char*,struct _stati64*); 62 109 63 int _wstat(const WCHAR*,struct _stat*); 64 int _wstati64(const WCHAR*,struct _stati64*); 110 #ifndef MSVCRT_WSTAT_DEFINED 111 #define MSVCRT_WSTAT_DEFINED 112 int _wstat(const MSVCRT(wchar_t)*,struct _stat*); 113 int _wstati64(const MSVCRT(wchar_t)*,struct _stati64*); 114 #endif /* MSVCRT_WSTAT_DEFINED */ 65 115 66 116 #ifdef __cplusplus -
trunk/include/win/msvcrt/sys/timeb.h
r8207 r9631 22 22 #define __WINE_USE_MSVCRT 23 23 24 #include "msvcrt/sys/types.h" /* For time_t */ 24 #ifndef MSVCRT 25 # ifdef USE_MSVCRT_PREFIX 26 # define MSVCRT(x) MSVCRT_##x 27 # else 28 # define MSVCRT(x) x 29 # endif 30 #endif 25 31 32 #ifndef MSVCRT_TIME_T_DEFINED 33 typedef long MSVCRT(time_t); 34 #define MSVCRT_TIME_T_DEFINED 35 #endif 26 36 37 #ifndef MSVCRT_TIMEB_DEFINED 38 #define MSVCRT_TIMEB_DEFINED 27 39 struct _timeb 28 40 { … … 32 44 short dstflag; 33 45 }; 46 #endif /* MSVCRT_TIMEB_DEFINED */ 34 47 35 48 -
trunk/include/win/msvcrt/sys/types.h
r8207 r9631 22 22 #define __WINE_USE_MSVCRT 23 23 24 25 #ifdef USE_MSVCRT_PREFIX 26 #define MSVCRT(x) MSVCRT_##x 27 #else 28 #define MSVCRT(x) x 24 #ifndef MSVCRT 25 # ifdef USE_MSVCRT_PREFIX 26 # define MSVCRT(x) MSVCRT_##x 27 # else 28 # define MSVCRT(x) x 29 # endif 29 30 #endif 30 31 32 #ifndef MSVCRT_DEV_T_DEFINED 33 typedef unsigned int _dev_t; 34 #define MSVCRT_DEV_T_DEFINED 35 #endif 31 36 32 typedef unsigned int _dev_t; 37 #ifndef MSVCRT_INO_T_DEFINED 33 38 typedef unsigned short _ino_t; 34 typedef int _off_t; 35 typedef long MSVCRT(time_t); 39 #define MSVCRT_INO_T_DEFINED 40 #endif 41 42 #ifndef MSVCRT_OFF_T_DEFINED 43 typedef int MSVCRT(_off_t); 44 #define MSVCRT_OFF_T_DEFINED 45 #endif 46 47 #ifndef MSVCRT_TIME_T_DEFINED 48 typedef long MSVCRT(time_t); 49 #define MSVCRT_TIME_T_DEFINED 50 #endif 36 51 37 52 -
trunk/include/win/msvcrt/sys/utime.h
r8207 r9631 22 22 #define __WINE_USE_MSVCRT 23 23 24 #include "winnt.h" 25 #include "msvcrt/sys/types.h" /* For time_t */ 24 #ifndef MSVCRT 25 # ifdef USE_MSVCRT_PREFIX 26 # define MSVCRT(x) MSVCRT_##x 27 # else 28 # define MSVCRT(x) x 29 # endif 30 #endif 26 31 32 #ifndef MSVCRT_WCHAR_T_DEFINED 33 #define MSVCRT_WCHAR_T_DEFINED 34 #ifndef __cplusplus 35 typedef unsigned short MSVCRT(wchar_t); 36 #endif 37 #endif 27 38 39 #ifndef MSVCRT_TIME_T_DEFINED 40 typedef long MSVCRT(time_t); 41 #define MSVCRT_TIME_T_DEFINED 42 #endif 43 44 #ifndef MSVCRT_UTIMBUF_DEFINED 45 #define MSVCRT_UTIMBUF_DEFINED 28 46 struct _utimbuf 29 47 { … … 31 49 MSVCRT(time_t) modtime; 32 50 }; 33 51 #endif /* MSVCRT_UTIMBUF_DEFINED */ 34 52 35 53 #ifdef __cplusplus … … 40 58 int _utime(const char*,struct _utimbuf*); 41 59 42 int _wutime(const WCHAR*,struct _utimbuf*);60 int _wutime(const MSVCRT(wchar_t)*,struct _utimbuf*); 43 61 44 62 #ifdef __cplusplus -
trunk/include/win/msvcrt/time.h
r8207 r9631 22 22 #define __WINE_USE_MSVCRT 23 23 24 #include "winnt.h" 25 #include "msvcrt/sys/types.h" /* For time_t */ 24 #ifndef MSVCRT 25 # ifdef USE_MSVCRT_PREFIX 26 # define MSVCRT(x) MSVCRT_##x 27 # else 28 # define MSVCRT(x) x 29 # endif 30 #endif 26 31 32 #ifndef MSVCRT_WCHAR_T_DEFINED 33 #define MSVCRT_WCHAR_T_DEFINED 34 #ifndef __cplusplus 35 typedef unsigned short MSVCRT(wchar_t); 36 #endif 37 #endif 27 38 28 39 #ifndef MSVCRT_SIZE_T_DEFINED … … 31 42 #endif 32 43 44 #ifndef MSVCRT_TIME_T_DEFINED 45 typedef long MSVCRT(time_t); 46 #define MSVCRT_TIME_T_DEFINED 47 #endif 48 49 #ifndef MSVCRT_CLOCK_T_DEFINED 33 50 typedef long MSVCRT(clock_t); 51 #define MSVCRT_CLOCK_T_DEFINED 52 #endif 34 53 54 #ifndef NULL 55 #ifdef __cplusplus 56 #define NULL 0 57 #else 58 #define NULL ((void *)0) 59 #endif 60 #endif 61 62 #ifndef MSVCRT_TM_DEFINED 63 #define MSVCRT_TM_DEFINED 35 64 struct MSVCRT(tm) { 36 65 int tm_sec; … … 44 73 int tm_isdst; 45 74 }; 46 75 #endif /* MSVCRT_TM_DEFINED */ 47 76 48 77 #ifdef __cplusplus … … 69 98 MSVCRT(time_t) MSVCRT(time)(MSVCRT(time_t)*); 70 99 71 WCHAR* _wasctime(const struct MSVCRT(tm)*); 72 MSVCRT(size_t) wcsftime(WCHAR*,MSVCRT(size_t),const WCHAR*,const struct MSVCRT(tm)*); 73 WCHAR* _wctime(const MSVCRT(time_t)*); 74 WCHAR* _wstrdate(WCHAR*); 75 WCHAR* _wstrtime(WCHAR*); 100 #ifndef MSVCRT_WTIME_DEFINED 101 #define MSVCRT_WTIME_DEFINED 102 MSVCRT(wchar_t)*_wasctime(const struct MSVCRT(tm)*); 103 MSVCRT(size_t) wcsftime(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,const struct MSVCRT(tm)*); 104 MSVCRT(wchar_t)*_wctime(const MSVCRT(time_t)*); 105 MSVCRT(wchar_t)*_wstrdate(MSVCRT(wchar_t)*); 106 MSVCRT(wchar_t)*_wstrtime(MSVCRT(wchar_t)*); 107 #endif /* MSVCRT_WTIME_DEFINED */ 76 108 77 109 #ifdef __cplusplus -
trunk/include/win/msvcrt/wctype.h
r8207 r9631 22 22 #define __WINE_USE_MSVCRT 23 23 24 25 /* FIXME: winnt.h includes 'ctype.h' which includes 'wctype.h'. So we get 26 * there but WCHAR is not defined. 27 */ 28 /* Some systems might have wchar_t, but we really need 16 bit characters */ 29 #ifndef WINE_WCHAR_DEFINED 30 #ifdef WINE_UNICODE_NATIVE 31 typedef wchar_t WCHAR, *PWCHAR; 32 #else 33 typedef unsigned short WCHAR, *PWCHAR; 34 #endif 35 #define WINE_WCHAR_DEFINED 24 #ifndef MSVCRT 25 # ifdef USE_MSVCRT_PREFIX 26 # define MSVCRT(x) MSVCRT_##x 27 # else 28 # define MSVCRT(x) x 29 # endif 36 30 #endif 37 31 38 #ifdef USE_MSVCRT_PREFIX 39 #define MSVCRT(x) MSVCRT_##x 40 #else 41 #define MSVCRT(x) x 32 #ifndef MSVCRT_WCHAR_T_DEFINED 33 #define MSVCRT_WCHAR_T_DEFINED 34 #ifndef __cplusplus 35 typedef unsigned short MSVCRT(wchar_t); 36 #endif 42 37 #endif 43 38 44 45 39 /* ASCII char classification table - binary compatible */ 46 #define _UPPER C1_UPPER47 #define _LOWER C1_LOWER48 #define _DIGIT C1_DIGIT49 #define _SPACE C1_SPACE50 #define _PUNCT C1_PUNCT51 #define _CONTROL C1_CNTRL52 #define _BLANK C1_BLANK53 #define _HEX C1_XDIGIT40 #define _UPPER 0x0001 /* C1_UPPER */ 41 #define _LOWER 0x0002 /* C1_LOWER */ 42 #define _DIGIT 0x0004 /* C1_DIGIT */ 43 #define _SPACE 0x0008 /* C1_SPACE */ 44 #define _PUNCT 0x0010 /* C1_PUNCT */ 45 #define _CONTROL 0x0020 /* C1_CNTRL */ 46 #define _BLANK 0x0040 /* C1_BLANK */ 47 #define _HEX 0x0080 /* C1_XDIGIT */ 54 48 #define _LEADBYTE 0x8000 55 #define _ALPHA ( C1_ALPHA|_UPPER|_LOWER)49 #define _ALPHA (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */ 56 50 57 51 #ifndef USE_MSVCRT_PREFIX 58 52 # ifndef WEOF 59 # define WEOF ( WCHAR)(0xFFFF)53 # define WEOF (wint_t)(0xFFFF) 60 54 # endif 61 55 #else 62 56 # ifndef MSVCRT_WEOF 63 # define MSVCRT_WEOF ( WCHAR)(0xFFFF)57 # define MSVCRT_WEOF (MSVCRT_wint_t)(0xFFFF) 64 58 # endif 65 59 #endif /* USE_MSVCRT_PREFIX */ 66 60 67 typedef WCHAR MSVCRT(wctype_t); 68 typedef WCHAR MSVCRT(wint_t); 61 #ifndef MSVCRT_WCTYPE_T_DEFINED 62 typedef MSVCRT(wchar_t) MSVCRT(wint_t); 63 typedef MSVCRT(wchar_t) MSVCRT(wctype_t); 64 #define MSVCRT_WCTYPE_T_DEFINED 65 #endif 69 66 70 67 /* FIXME: there's something to do with __p__pctype and __p__pwctype */ … … 75 72 #endif 76 73 74 #ifndef MSVCRT_WCTYPE_DEFINED 75 #define MSVCRT_WCTYPE_DEFINED 77 76 int MSVCRT(is_wctype)(MSVCRT(wint_t),MSVCRT(wctype_t)); 78 77 int MSVCRT(isleadbyte)(int); … … 90 89 int MSVCRT(iswupper)(MSVCRT(wint_t)); 91 90 int MSVCRT(iswxdigit)(MSVCRT(wint_t)); 92 WCHAR MSVCRT(towlower)(WCHAR); 93 WCHAR MSVCRT(towupper)(WCHAR); 91 MSVCRT(wchar_t) MSVCRT(towlower)(MSVCRT(wchar_t)); 92 MSVCRT(wchar_t) MSVCRT(towupper)(MSVCRT(wchar_t)); 93 #endif /* MSVCRT_WCTYPE_DEFINED */ 94 94 95 95 #ifdef __cplusplus -
trunk/include/win/ntddk.h
r8444 r9631 822 822 void WINAPI RtlSecondsSince1980ToTime( DWORD time, FILETIME *res ); 823 823 824 typedef struct tagRTL_BITMAP { 825 ULONG SizeOfBitMap; /* Number of bits in the bitmap */ 826 LPBYTE BitMapBuffer; /* Bitmap data, assumed sized to a DWORD boundary */ 827 } RTL_BITMAP, *PRTL_BITMAP; 828 829 typedef const RTL_BITMAP *PCRTL_BITMAP; 830 831 typedef struct tagRTL_BITMAP_RUN { 832 ULONG StartOfRun; /* Bit position at which run starts - FIXME: Name? */ 833 ULONG SizeOfRun; /* Size of the run in bits - FIXME: Name? */ 834 } RTL_BITMAP_RUN, *PRTL_BITMAP_RUN; 835 836 typedef const RTL_BITMAP_RUN *PCRTL_BITMAP_RUN; 837 824 838 /* heap functions */ 825 839 -
trunk/include/win/winbase.h
r9591 r9631 263 263 #define INVALID_HANDLE_VALUE16 ((HANDLE16) -1) 264 264 #define INVALID_HANDLE_VALUE ((HANDLE) -1) 265 #define INVALID_SET_FILE_POINTER ((DWORD)-1) 265 266 266 267 /* comm */ -
trunk/include/win/windef.h
r9521 r9631 235 235 typedef unsigned long ULONG_PTR; 236 236 typedef double DOUBLE; 237 #if (__IBMC__ < 360) && (__IBMCPP__ < 360) 237 #if (__IBMC__ < 360) && (__IBMCPP__ < 360) && !defined (__EMX__) 238 238 typedef double LONGLONG; 239 239 typedef double ULONGLONG; 240 240 typedef double ULONGULONG; 241 241 typedef double DWORDLONG; 242 #elif defined (__EMX__) 243 typedef long long int64_t; /* LONGLONG */ 244 typedef unsigned long long u_int64_t; /* LONGLONG */ 245 typedef unsigned long long uint64_t; /* LONGLONG */ 246 typedef int64_t LONGLONG; 247 typedef uint64_t ULONGLONG; 248 typedef uint64_t ULONGULONG; 249 typedef uint64_t DWORDLONG; 242 250 #else 243 251 #include <inttypes.h> -
trunk/include/win/winnt.h
r9521 r9631 93 93 #define TEXT(quote) __TEXT(quote) 94 94 95 typedef BYTE BOOLEAN; 96 typedef BOOLEAN *PBOOLEAN; 95 typedef char CCHAR; 96 typedef BYTE BOOLEAN; 97 typedef BOOLEAN *PBOOLEAN; 97 98 typedef DWORD EXECUTION_STATE; 98 99
Note:
See TracChangeset
for help on using the changeset viewer.