Ignore:
Timestamp:
Jan 6, 2003, 2:24:23 PM (23 years ago)
Author:
sandervl
Message:

PF: header updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/msvcrt/stdio.h

    r8207 r9631  
    1313#include <stdarg.h>
    1414#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
    1723
    1824/* file._flag flags */
     
    2733#define _IOAPPEND        0x0200
    2834#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
    3743#endif /* USE_MSVCRT_PREFIX */
    3844
     45#ifndef NULL
     46#ifdef  __cplusplus
     47#define NULL  0
     48#else
     49#define NULL  ((void *)0)
     50#endif
     51#endif
    3952
    4053#ifndef USE_MSVCRT_PREFIX
     
    7790#endif /* USE_MSVCRT_PREFIX */
    7891
     92#ifndef MSVCRT_FILE_DEFINED
     93#define MSVCRT_FILE_DEFINED
    7994typedef struct MSVCRT(_iobuf)
    8095{
     
    88103  char* _tmpfname;
    89104} MSVCRT(FILE);
    90 
     105#endif  /* MSVCRT_FILE_DEFINED */
     106
     107#ifndef MSVCRT_FPOS_T_DEFINED
    91108typedef long MSVCRT(fpos_t);
     109#define MSVCRT_FPOS_T_DEFINED
     110#endif
    92111
    93112#ifndef MSVCRT_SIZE_T_DEFINED
     
    96115#endif
    97116
     117#ifndef MSVCRT_WCHAR_T_DEFINED
     118#define MSVCRT_WCHAR_T_DEFINED
     119#ifndef __cplusplus
     120typedef unsigned short MSVCRT(wchar_t);
     121#endif
     122#endif
     123
     124#ifndef MSVCRT_WCTYPE_T_DEFINED
     125typedef MSVCRT(wchar_t) MSVCRT(wint_t);
     126typedef MSVCRT(wchar_t) MSVCRT(wctype_t);
     127#define MSVCRT_WCTYPE_T_DEFINED
     128#endif
    98129
    99130#ifdef __cplusplus
     
    101132#endif
    102133
     134#ifndef MSVCRT_STDIO_DEFINED
    103135MSVCRT(FILE)*        MSVCRT(__p__iob)(void);
    104136#define _iob               (__p__iob())
     137#endif /* MSVCRT_STDIO_DEFINED */
     138
    105139#ifndef USE_MSVCRT_PREFIX
    106140#define stdin              (_iob+STDIN_FILENO)
     
    113147#endif /* USE_MSVCRT_PREFIX, __WINE__ */
    114148
    115 
     149#ifndef MSVCRT_STDIO_DEFINED
     150#define MSVCRT_STDIO_DEFINED
    116151int         _fcloseall(void);
    117152MSVCRT(FILE)* _fdopen(int,const char*);
     
    177212int         MSVCRT(vsprintf)(char*,const char*,va_list);
    178213
    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
     216MSVCRT(wint_t)  _fgetwchar(void);
     217MSVCRT(wint_t)  _fputwchar(MSVCRT(wint_t));
     218MSVCRT(wchar_t)*_getws(MSVCRT(wchar_t)*);
     219int             _putws(const MSVCRT(wchar_t)*);
     220int             _snwprintf(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,...);
     221int             _vsnwprintf(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,va_list);
     222MSVCRT(FILE)*   _wfdopen(int,const MSVCRT(wchar_t)*);
     223MSVCRT(FILE)*   _wfopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
     224MSVCRT(FILE)*   _wfreopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,MSVCRT(FILE)*);
     225MSVCRT(FILE)*   _wfsopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,int);
     226void            _wperror(const MSVCRT(wchar_t)*);
     227MSVCRT(FILE)*   _wpopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
     228int             _wremove(const MSVCRT(wchar_t)*);
     229MSVCRT(wchar_t)*_wtempnam(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
     230MSVCRT(wchar_t)*_wtmpnam(MSVCRT(wchar_t)*);
     231
     232MSVCRT(wint_t)  MSVCRT(fgetwc)(MSVCRT(FILE)*);
     233MSVCRT(wchar_t)*MSVCRT(fgetws)(MSVCRT(wchar_t)*,int,MSVCRT(FILE)*);
     234MSVCRT(wint_t)  MSVCRT(fputwc)(MSVCRT(wint_t),MSVCRT(FILE)*);
     235int             MSVCRT(fputws)(const MSVCRT(wchar_t)*,MSVCRT(FILE)*);
     236int             MSVCRT(fwprintf)(MSVCRT(FILE)*,const MSVCRT(wchar_t)*,...);
     237int             MSVCRT(fputws)(const MSVCRT(wchar_t)*,MSVCRT(FILE)*);
     238int             MSVCRT(fwscanf)(MSVCRT(FILE)*,const MSVCRT(wchar_t)*,...);
     239MSVCRT(wint_t)  MSVCRT(getwc)(MSVCRT(FILE)*);
     240MSVCRT(wint_t)  MSVCRT(getwchar)(void);
     241MSVCRT(wchar_t)*MSVCRT(getws)(MSVCRT(wchar_t)*);
     242MSVCRT(wint_t)  MSVCRT(putwc)(MSVCRT(wint_t),MSVCRT(FILE)*);
     243MSVCRT(wint_t)  MSVCRT(putwchar)(MSVCRT(wint_t));
     244int             MSVCRT(putws)(const MSVCRT(wchar_t)*);
     245int             MSVCRT(swprintf)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
     246int             MSVCRT(swscanf)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
     247MSVCRT(wint_t)  MSVCRT(ungetwc)(MSVCRT(wint_t),MSVCRT(FILE)*);
     248int             MSVCRT(vfwprintf)(MSVCRT(FILE)*,const MSVCRT(wchar_t)*,va_list);
     249int             MSVCRT(vswprintf)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,va_list);
     250int             MSVCRT(vwprintf)(const MSVCRT(wchar_t)*,va_list);
     251int             MSVCRT(wprintf)(const MSVCRT(wchar_t)*,...);
     252int             MSVCRT(wscanf)(const MSVCRT(wchar_t)*,...);
     253#endif /* MSVCRT_WSTDIO_DEFINED */
     254
     255#endif /* MSVCRT_STDIO_DEFINED */
    216256
    217257#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.