ReactOS  0.4.14-dev-1034-g1e60116
_cstdio.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1999
3  * Boris Fomitchev
4  *
5  * This material is provided "as is", with absolutely no warranty expressed
6  * or implied. Any use is at your own risk.
7  *
8  * Permission to use or copy this software for any purpose is hereby granted
9  * without fee, provided the above notices are retained on all copies.
10  * Permission to modify the code and to distribute modified code is granted,
11  * provided the above notices are retained, and a notice that the code was
12  * modified is included with the above copyright notice.
13  *
14  */
15 
16 #ifndef _STLP_INTERNAL_CSTDIO
17 #define _STLP_INTERNAL_CSTDIO
18 
19 #if defined (__Lynx__)
20 # if defined (_STLP_HAS_INCLUDE_NEXT)
21 # include_next <stdarg.h>
22 # else
23 # include _STLP_NATIVE_C_HEADER(stdarg.h)
24 # endif
25 #endif
26 
27 #if defined (_STLP_USE_NEW_C_HEADERS)
28 # if defined (_STLP_HAS_INCLUDE_NEXT)
29 # include_next <cstdio>
30 # else
31 # include _STLP_NATIVE_CPP_C_HEADER(cstdio)
32 # endif
33 #else
34 # include <stdio.h>
35 #endif
36 
37 #if defined (__MWERKS__)
38 # undef stdin
39 # undef stdout
40 # undef stderr
41 # define stdin (&_STLP_VENDOR_CSTD::__files[0])
42 # define stdout (&_STLP_VENDOR_CSTD::__files[1])
43 # define stderr (&_STLP_VENDOR_CSTD::__files[2])
44 #endif
45 
46 #if defined (_STLP_MSVC_LIB) && (_STLP_MSVC_LIB < 1400) || defined (_STLP_USING_PLATFORM_SDK_COMPILER)
47 inline int vsnprintf(char *s1, size_t n, const char *s2, va_list v)
48 { return _STLP_VENDOR_CSTD::_vsnprintf(s1, n, s2, v); }
49 #endif
50 
51 #if defined (_STLP_IMPORT_VENDOR_CSTD )
56 
57 // undef obsolete macros
58 # undef putc
59 # undef getc
60 # undef getchar
61 # undef putchar
62 # undef feof
63 # undef ferror
64 
65 # if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
79 # if !defined (_WIN32_WCE) || (_WIN32_WCE < 400)
81 # endif
87 
88 # if !(defined (__IBMCPP__) && (__IBMCPP__ >= 500))
89 # if !defined (_WIN32_WCE) || (_WIN32_WCE < 400) // Supplied as macros, TODO: use inline function to redirect to the macros?
92 # endif
95 # endif
96 
98 # if !defined (_WIN32_WCE) || (_WIN32_WCE < 400)
100 # endif
103 # if !defined (_WIN32_WCE) || (_WIN32_WCE < 400)
110 # endif
119 # if (defined (__MWERKS__) || (defined (_STLP_MSVC_LIB) && (_STLP_MSVC_LIB < 1400)) || \
120  (defined (__BORLANDC__)))
122 # endif
123 # endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */
125 #endif /* _STLP_IMPORT_VENDOR_CSTD */
126 
127 #endif /* _STLP_INTERNAL_CSTDIO */
#define vsnprintf
Definition: tif_win32.c:406
_Check_return_ _CRTIMP int __cdecl ferror(_In_ FILE *_File)
struct S2 s2
_Check_return_opt_ _CRTIMP int __cdecl fputc(_In_ int _Ch, _Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl fscanf(_Inout_ FILE *_File, _In_z_ _Scanf_format_string_ const char *_Format,...)
_CRTIMP char *__cdecl gets(char *_Buffer)
Definition: file.c:3643
GLdouble n
Definition: glext.h:7729
_Check_return_opt_ _CRTIMP int __cdecl fgetpos(_Inout_ FILE *_File, _Out_ fpos_t *_Pos)
__MINGW_EXTENSION typedef __int64 fpos_t
Definition: stdio.h:116
_Check_return_ _CRTIMP int __cdecl getc(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP size_t __cdecl fwrite(_In_reads_bytes_(_Size *_Count) const void *_Str, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
#define sprintf(buf, format,...)
Definition: sprintf.c:55
_Check_return_ _CRTIMP int __cdecl scanf(_In_z_ _Scanf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP size_t __cdecl fread(_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
_Check_return_ int __cdecl rename(_In_z_ const char *_OldFilename, _In_z_ const char *_NewFilename)
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
int putchar(int c)
Definition: crtsupp.c:12
_Check_return_opt_ _CRTIMP int __cdecl fseek(_Inout_ FILE *_File, _In_ long _Offset, _In_ int _Origin)
_Check_return_opt_ _CRTIMP_ALT int __cdecl ungetc(_In_ int _Ch, _Inout_ FILE *_File)
char * va_list
Definition: acmsvcex.h:78
_Check_return_ _CRTIMP int __cdecl sscanf(_In_z_ const char *_Src, _In_z_ _Scanf_format_string_ const char *_Format,...)
_CRTIMP void __cdecl rewind(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl tmpfile(void)
Definition: file.c:3912
__kernel_size_t size_t
Definition: linux.h:237
_Check_return_opt_ _CRTIMP int __cdecl fsetpos(_Inout_ FILE *_File, _In_ const fpos_t *_Pos)
_Check_return_opt_ _CRTIMP int __cdecl putc(_In_ int _Ch, _Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl feof(_In_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl vprintf(_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
struct S1 s1
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
int puts(const char *string)
Definition: crtsupp.c:23
_CRTIMP char *__cdecl tmpnam(_Pre_maybenull_ _Post_z_ char *_Buffer)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl getchar(void)
Definition: file.c:3627
const GLdouble * v
Definition: gl.h:2040
_Check_return_opt_ _CRTIMP int __cdecl fflush(_Inout_opt_ FILE *_File)
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
#define _STLP_END_NAMESPACE
Definition: features.h:503
#define _vsnprintf
Definition: xmlstorage.h:202
_Check_return_ _CRTIMP long __cdecl ftell(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl freopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode, _Inout_ FILE *_File)
_CRTIMP void __cdecl setbuf(_Inout_ FILE *_File, _Inout_updates_opt_(BUFSIZ) _Post_readable_size_(0) char *_Buffer)
_CRTIMP void __cdecl clearerr(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl setvbuf(_Inout_ FILE *_File, _Inout_updates_opt_z_(_Size) char *_Buf, _In_ int _Mode, _In_ size_t _Size)
#define FILE
Definition: nsiface.idl:2609
#define _STLP_BEGIN_NAMESPACE
Definition: features.h:501
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
int remove
Definition: msacm.c:1365
_Check_return_opt_ _CRTIMP int __cdecl fputs(_In_z_ const char *_Str, _Inout_ FILE *_File)
#define printf
Definition: config.h:203
_Check_return_opt_ _CRTIMP int __cdecl fgetc(_Inout_ FILE *_File)