Changeset 9631 for trunk/include/win/msvcrt/stdio.h
- Timestamp:
- Jan 6, 2003, 2:24:23 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.