@xnetx/tinyc-native-aarch64-linux-gnu 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -2
- package/README.zh-CN.md +36 -0
- package/natives/aarch64-linux-gnu/toolchain/aarch64-linux-android/tinyc +0 -0
- package/natives/aarch64-linux-gnu/toolchain/aarch64-linux-gnu/tinyc +0 -0
- package/natives/aarch64-linux-gnu/toolchain/riscv64-linux-gnu/tinyc +0 -0
- package/natives/aarch64-linux-gnu/toolchain/x86_64-linux-android/tinyc +0 -0
- package/natives/aarch64-linux-gnu/toolchain/x86_64-linux-gnu/tinyc +0 -0
- package/natives/aarch64-linux-gnu/toolchain/x86_64-w64-mingw32/tinyc +0 -0
- package/package.json +17 -4
- package/packaging-manifest.json +197 -0
- package/sysroot/aarch64-linux-android/include/libtcc.h +116 -0
- package/sysroot/aarch64-linux-android/include/tinyc_io.h +123 -0
- package/sysroot/aarch64-linux-android/lib/tcc/include/float.h +75 -0
- package/sysroot/aarch64-linux-android/lib/tcc/include/stdalign.h +16 -0
- package/sysroot/aarch64-linux-android/lib/tcc/include/stdarg.h +14 -0
- package/sysroot/aarch64-linux-android/lib/tcc/include/stdatomic.h +171 -0
- package/sysroot/aarch64-linux-android/lib/tcc/include/stdbool.h +11 -0
- package/sysroot/aarch64-linux-android/lib/tcc/include/stddef.h +39 -0
- package/sysroot/aarch64-linux-android/lib/tcc/include/stdnoreturn.h +7 -0
- package/sysroot/aarch64-linux-android/lib/tcc/include/tccdefs.h +338 -0
- package/sysroot/aarch64-linux-android/lib/tcc/include/tcclib.h +82 -0
- package/sysroot/aarch64-linux-android/lib/tcc/include/tgmath.h +89 -0
- package/sysroot/aarch64-linux-android/lib/tcc/include/varargs.h +12 -0
- package/sysroot/aarch64-linux-android/lib/tcc/libtcc1.a +0 -0
- package/sysroot/aarch64-linux-android/manifest.json +17 -0
- package/sysroot/aarch64-linux-gnu/include/libtcc.h +116 -0
- package/sysroot/aarch64-linux-gnu/include/tinyc_io.h +123 -0
- package/sysroot/aarch64-linux-gnu/lib/libtcc.a +0 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/bcheck.o +0 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/bcheck_run.o +0 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/bt-exe.o +0 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/bt-log.o +0 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/include/float.h +75 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/include/stdalign.h +16 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/include/stdarg.h +14 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/include/stdatomic.h +171 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/include/stdbool.h +11 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/include/stddef.h +39 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/include/stdnoreturn.h +7 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/include/tccdefs.h +338 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/include/tcclib.h +82 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/include/tgmath.h +89 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/include/varargs.h +12 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/libtcc1.a +0 -0
- package/sysroot/aarch64-linux-gnu/lib/tcc/runmain.o +0 -0
- package/sysroot/aarch64-linux-gnu/manifest.json +15 -0
- package/sysroot/riscv64-linux-gnu/include/libtcc.h +116 -0
- package/sysroot/riscv64-linux-gnu/include/tinyc_io.h +123 -0
- package/sysroot/riscv64-linux-gnu/lib/tcc/include/float.h +75 -0
- package/sysroot/riscv64-linux-gnu/lib/tcc/include/stdalign.h +16 -0
- package/sysroot/riscv64-linux-gnu/lib/tcc/include/stdarg.h +14 -0
- package/sysroot/riscv64-linux-gnu/lib/tcc/include/stdatomic.h +171 -0
- package/sysroot/riscv64-linux-gnu/lib/tcc/include/stdbool.h +11 -0
- package/sysroot/riscv64-linux-gnu/lib/tcc/include/stddef.h +39 -0
- package/sysroot/riscv64-linux-gnu/lib/tcc/include/stdnoreturn.h +7 -0
- package/sysroot/riscv64-linux-gnu/lib/tcc/include/tccdefs.h +338 -0
- package/sysroot/riscv64-linux-gnu/lib/tcc/include/tcclib.h +82 -0
- package/sysroot/riscv64-linux-gnu/lib/tcc/include/tgmath.h +89 -0
- package/sysroot/riscv64-linux-gnu/lib/tcc/include/varargs.h +12 -0
- package/sysroot/riscv64-linux-gnu/lib/tcc/libtcc1.a +0 -0
- package/sysroot/riscv64-linux-gnu/manifest.json +15 -0
- package/sysroot/x86_64-linux-android/include/libtcc.h +116 -0
- package/sysroot/x86_64-linux-android/include/tinyc_io.h +123 -0
- package/sysroot/x86_64-linux-android/lib/tcc/include/float.h +75 -0
- package/sysroot/x86_64-linux-android/lib/tcc/include/stdalign.h +16 -0
- package/sysroot/x86_64-linux-android/lib/tcc/include/stdarg.h +14 -0
- package/sysroot/x86_64-linux-android/lib/tcc/include/stdatomic.h +171 -0
- package/sysroot/x86_64-linux-android/lib/tcc/include/stdbool.h +11 -0
- package/sysroot/x86_64-linux-android/lib/tcc/include/stddef.h +39 -0
- package/sysroot/x86_64-linux-android/lib/tcc/include/stdnoreturn.h +7 -0
- package/sysroot/x86_64-linux-android/lib/tcc/include/tccdefs.h +338 -0
- package/sysroot/x86_64-linux-android/lib/tcc/include/tcclib.h +82 -0
- package/sysroot/x86_64-linux-android/lib/tcc/include/tgmath.h +89 -0
- package/sysroot/x86_64-linux-android/lib/tcc/include/varargs.h +12 -0
- package/sysroot/x86_64-linux-android/lib/tcc/libtcc1.a +0 -0
- package/sysroot/x86_64-linux-android/manifest.json +17 -0
- package/sysroot/x86_64-linux-gnu/include/libtcc.h +116 -0
- package/sysroot/x86_64-linux-gnu/include/tinyc_io.h +123 -0
- package/sysroot/x86_64-linux-gnu/lib/tcc/include/float.h +75 -0
- package/sysroot/x86_64-linux-gnu/lib/tcc/include/stdalign.h +16 -0
- package/sysroot/x86_64-linux-gnu/lib/tcc/include/stdarg.h +14 -0
- package/sysroot/x86_64-linux-gnu/lib/tcc/include/stdatomic.h +171 -0
- package/sysroot/x86_64-linux-gnu/lib/tcc/include/stdbool.h +11 -0
- package/sysroot/x86_64-linux-gnu/lib/tcc/include/stddef.h +39 -0
- package/sysroot/x86_64-linux-gnu/lib/tcc/include/stdnoreturn.h +7 -0
- package/sysroot/x86_64-linux-gnu/lib/tcc/include/tccdefs.h +338 -0
- package/sysroot/x86_64-linux-gnu/lib/tcc/include/tcclib.h +82 -0
- package/sysroot/x86_64-linux-gnu/lib/tcc/include/tgmath.h +89 -0
- package/sysroot/x86_64-linux-gnu/lib/tcc/include/varargs.h +12 -0
- package/sysroot/x86_64-linux-gnu/lib/tcc/libtcc1.a +0 -0
- package/sysroot/x86_64-linux-gnu/manifest.json +15 -0
- package/sysroot/x86_64-w64-mingw32/include/libtcc.h +116 -0
- package/sysroot/x86_64-w64-mingw32/include/tinyc_io.h +123 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/_mingw.h +171 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/assert.h +62 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/conio.h +409 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/ctype.h +281 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dir.h +31 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/direct.h +68 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dirent.h +135 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dos.h +55 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/errno.h +75 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/excpt.h +123 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fcntl.h +52 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fenv.h +108 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/float.h +75 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/inttypes.h +297 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/io.h +418 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/iso646.h +36 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/limits.h +116 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/locale.h +91 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/malloc.h +181 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/math.h +497 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/mem.h +13 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/memory.h +40 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/process.h +176 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/conio_s.h +42 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/crtdbg_s.h +19 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/io_s.h +33 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/mbstring_s.h +52 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/search_s.h +25 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stdio_s.h +145 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stdlib_s.h +67 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stralign_s.h +30 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/string_s.h +41 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/sys/timeb_s.h +34 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/tchar_s.h +266 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/time_s.h +61 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/wchar_s.h +128 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/setjmp.h +199 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/share.h +28 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/signal.h +63 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdalign.h +16 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdarg.h +14 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdatomic.h +171 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdbool.h +11 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stddef.h +39 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdint.h +212 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdio.h +429 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdlib.h +606 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdnoreturn.h +7 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/string.h +164 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/fcntl.h +13 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/file.h +14 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/locking.h +30 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/stat.h +290 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/time.h +69 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/timeb.h +133 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/types.h +123 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/unistd.h +14 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/utime.h +146 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tcc/tcc_libm.h +618 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tccdefs.h +338 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tcclib.h +82 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tchar.h +1102 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tgmath.h +89 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/time.h +287 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/uchar.h +33 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/unistd.h +1 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/vadefs.h +11 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/values.h +4 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/varargs.h +12 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/wchar.h +873 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/wctype.h +172 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/basetsd.h +149 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/basetyps.h +85 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/guiddef.h +156 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/poppack.h +8 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack1.h +8 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack2.h +8 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack4.h +8 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack8.h +8 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/qos.h +72 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/shellapi.h +59 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winbase.h +2966 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/wincon.h +309 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/windef.h +293 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/windows.h +127 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winerror.h +3166 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/wingdi.h +4080 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winnls.h +778 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winnt.h +5994 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winreg.h +272 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winsock2.h +1474 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winuser.h +5652 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winver.h +160 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/ws2ipdef.h +21 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/ws2tcpip.h +391 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/gdi32.def +337 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/kernel32.def +776 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/libtcc1.a +0 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/msvcrt.def +1320 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/user32.def +658 -0
- package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/ws2_32.def +198 -0
- package/sysroot/x86_64-w64-mingw32/manifest.json +15 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file has no copyright assigned and is placed in the Public Domain.
|
|
3
|
+
* This file is part of the w64 mingw-runtime package.
|
|
4
|
+
* No warranty is given; refer to the file DISCLAIMER within this package.
|
|
5
|
+
*/
|
|
6
|
+
/* ISO C9x 7.18 Integer types <stdint.h>
|
|
7
|
+
* Based on ISO/IEC SC22/WG14 9899 Committee draft (SC22 N2794)
|
|
8
|
+
*
|
|
9
|
+
* THIS SOFTWARE IS NOT COPYRIGHTED
|
|
10
|
+
*
|
|
11
|
+
* Contributor: Danny Smith <danny_r_smith_2001@yahoo.co.nz>
|
|
12
|
+
*
|
|
13
|
+
* This source code is offered for use in the public domain. You may
|
|
14
|
+
* use, modify or distribute it freely.
|
|
15
|
+
*
|
|
16
|
+
* This code is distributed in the hope that it will be useful but
|
|
17
|
+
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
|
18
|
+
* DISCLAIMED. This includes but is not limited to warranties of
|
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
20
|
+
*
|
|
21
|
+
* Date: 2000-12-02
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
#ifndef _STDINT_H
|
|
26
|
+
#define _STDINT_H
|
|
27
|
+
|
|
28
|
+
#include <_mingw.h>
|
|
29
|
+
|
|
30
|
+
#define __need_wint_t
|
|
31
|
+
#define __need_wchar_t
|
|
32
|
+
#include "stddef.h"
|
|
33
|
+
|
|
34
|
+
#ifndef __int8_t_defined
|
|
35
|
+
#define __int8_t_defined
|
|
36
|
+
/* 7.18.1.1 Exact-width integer types */
|
|
37
|
+
typedef signed char int8_t;
|
|
38
|
+
typedef unsigned char uint8_t;
|
|
39
|
+
typedef short int16_t;
|
|
40
|
+
typedef unsigned short uint16_t;
|
|
41
|
+
typedef int int32_t;
|
|
42
|
+
typedef unsigned uint32_t;
|
|
43
|
+
typedef long long int64_t;
|
|
44
|
+
typedef unsigned long long uint64_t;
|
|
45
|
+
#endif
|
|
46
|
+
|
|
47
|
+
/* 7.18.1.2 Minimum-width integer types */
|
|
48
|
+
typedef signed char int_least8_t;
|
|
49
|
+
typedef unsigned char uint_least8_t;
|
|
50
|
+
typedef short int_least16_t;
|
|
51
|
+
typedef unsigned short uint_least16_t;
|
|
52
|
+
typedef int int_least32_t;
|
|
53
|
+
typedef unsigned uint_least32_t;
|
|
54
|
+
typedef long long int_least64_t;
|
|
55
|
+
typedef unsigned long long uint_least64_t;
|
|
56
|
+
|
|
57
|
+
/* 7.18.1.3 Fastest minimum-width integer types
|
|
58
|
+
* Not actually guaranteed to be fastest for all purposes
|
|
59
|
+
* Here we use the exact-width types for 8 and 16-bit ints.
|
|
60
|
+
*/
|
|
61
|
+
typedef char int_fast8_t;
|
|
62
|
+
typedef unsigned char uint_fast8_t;
|
|
63
|
+
typedef short int_fast16_t;
|
|
64
|
+
typedef unsigned short uint_fast16_t;
|
|
65
|
+
typedef int int_fast32_t;
|
|
66
|
+
typedef unsigned int uint_fast32_t;
|
|
67
|
+
typedef long long int_fast64_t;
|
|
68
|
+
typedef unsigned long long uint_fast64_t;
|
|
69
|
+
|
|
70
|
+
/* 7.18.1.5 Greatest-width integer types */
|
|
71
|
+
typedef long long intmax_t;
|
|
72
|
+
typedef unsigned long long uintmax_t;
|
|
73
|
+
|
|
74
|
+
/* 7.18.2 Limits of specified-width integer types */
|
|
75
|
+
#if !defined ( __cplusplus) || defined (__STDC_LIMIT_MACROS)
|
|
76
|
+
|
|
77
|
+
/* 7.18.2.1 Limits of exact-width integer types */
|
|
78
|
+
#define INT8_MIN (-128)
|
|
79
|
+
#define INT16_MIN (-32768)
|
|
80
|
+
#define INT32_MIN (-2147483647 - 1)
|
|
81
|
+
#define INT64_MIN (-9223372036854775807LL - 1)
|
|
82
|
+
|
|
83
|
+
#define INT8_MAX 127
|
|
84
|
+
#define INT16_MAX 32767
|
|
85
|
+
#define INT32_MAX 2147483647
|
|
86
|
+
#define INT64_MAX 9223372036854775807LL
|
|
87
|
+
|
|
88
|
+
#define UINT8_MAX 0xff /* 255U */
|
|
89
|
+
#define UINT16_MAX 0xffff /* 65535U */
|
|
90
|
+
#define UINT32_MAX 0xffffffff /* 4294967295U */
|
|
91
|
+
#define UINT64_MAX 0xffffffffffffffffULL /* 18446744073709551615ULL */
|
|
92
|
+
|
|
93
|
+
/* 7.18.2.2 Limits of minimum-width integer types */
|
|
94
|
+
#define INT_LEAST8_MIN INT8_MIN
|
|
95
|
+
#define INT_LEAST16_MIN INT16_MIN
|
|
96
|
+
#define INT_LEAST32_MIN INT32_MIN
|
|
97
|
+
#define INT_LEAST64_MIN INT64_MIN
|
|
98
|
+
|
|
99
|
+
#define INT_LEAST8_MAX INT8_MAX
|
|
100
|
+
#define INT_LEAST16_MAX INT16_MAX
|
|
101
|
+
#define INT_LEAST32_MAX INT32_MAX
|
|
102
|
+
#define INT_LEAST64_MAX INT64_MAX
|
|
103
|
+
|
|
104
|
+
#define UINT_LEAST8_MAX UINT8_MAX
|
|
105
|
+
#define UINT_LEAST16_MAX UINT16_MAX
|
|
106
|
+
#define UINT_LEAST32_MAX UINT32_MAX
|
|
107
|
+
#define UINT_LEAST64_MAX UINT64_MAX
|
|
108
|
+
|
|
109
|
+
/* 7.18.2.3 Limits of fastest minimum-width integer types */
|
|
110
|
+
#define INT_FAST8_MIN INT8_MIN
|
|
111
|
+
#define INT_FAST16_MIN INT16_MIN
|
|
112
|
+
#define INT_FAST32_MIN INT32_MIN
|
|
113
|
+
#define INT_FAST64_MIN INT64_MIN
|
|
114
|
+
|
|
115
|
+
#define INT_FAST8_MAX INT8_MAX
|
|
116
|
+
#define INT_FAST16_MAX INT16_MAX
|
|
117
|
+
#define INT_FAST32_MAX INT32_MAX
|
|
118
|
+
#define INT_FAST64_MAX INT64_MAX
|
|
119
|
+
|
|
120
|
+
#define UINT_FAST8_MAX UINT8_MAX
|
|
121
|
+
#define UINT_FAST16_MAX UINT16_MAX
|
|
122
|
+
#define UINT_FAST32_MAX UINT32_MAX
|
|
123
|
+
#define UINT_FAST64_MAX UINT64_MAX
|
|
124
|
+
|
|
125
|
+
/* 7.18.2.4 Limits of integer types capable of holding
|
|
126
|
+
object pointers */
|
|
127
|
+
#ifdef _WIN64
|
|
128
|
+
#define INTPTR_MIN INT64_MIN
|
|
129
|
+
#define INTPTR_MAX INT64_MAX
|
|
130
|
+
#define UINTPTR_MAX UINT64_MAX
|
|
131
|
+
#else
|
|
132
|
+
#define INTPTR_MIN INT32_MIN
|
|
133
|
+
#define INTPTR_MAX INT32_MAX
|
|
134
|
+
#define UINTPTR_MAX UINT32_MAX
|
|
135
|
+
#endif
|
|
136
|
+
|
|
137
|
+
/* 7.18.2.5 Limits of greatest-width integer types */
|
|
138
|
+
#define INTMAX_MIN INT64_MIN
|
|
139
|
+
#define INTMAX_MAX INT64_MAX
|
|
140
|
+
#define UINTMAX_MAX UINT64_MAX
|
|
141
|
+
|
|
142
|
+
/* 7.18.3 Limits of other integer types */
|
|
143
|
+
#ifdef _WIN64
|
|
144
|
+
#define PTRDIFF_MIN INT64_MIN
|
|
145
|
+
#define PTRDIFF_MAX INT64_MAX
|
|
146
|
+
#else
|
|
147
|
+
#define PTRDIFF_MIN INT32_MIN
|
|
148
|
+
#define PTRDIFF_MAX INT32_MAX
|
|
149
|
+
#endif
|
|
150
|
+
|
|
151
|
+
#define SIG_ATOMIC_MIN INT32_MIN
|
|
152
|
+
#define SIG_ATOMIC_MAX INT32_MAX
|
|
153
|
+
|
|
154
|
+
#ifndef SIZE_MAX
|
|
155
|
+
#ifdef _WIN64
|
|
156
|
+
#define SIZE_MAX UINT64_MAX
|
|
157
|
+
#else
|
|
158
|
+
#define SIZE_MAX UINT32_MAX
|
|
159
|
+
#endif
|
|
160
|
+
#endif
|
|
161
|
+
|
|
162
|
+
#ifndef WCHAR_MIN /* also in wchar.h */
|
|
163
|
+
#define WCHAR_MIN 0
|
|
164
|
+
#define WCHAR_MAX ((wchar_t)-1) /* UINT16_MAX */
|
|
165
|
+
#endif
|
|
166
|
+
|
|
167
|
+
/*
|
|
168
|
+
* wint_t is unsigned short for compatibility with MS runtime
|
|
169
|
+
*/
|
|
170
|
+
#define WINT_MIN 0
|
|
171
|
+
#define WINT_MAX ((wint_t)-1) /* UINT16_MAX */
|
|
172
|
+
|
|
173
|
+
#endif /* !defined ( __cplusplus) || defined __STDC_LIMIT_MACROS */
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
/* 7.18.4 Macros for integer constants */
|
|
177
|
+
#if !defined ( __cplusplus) || defined (__STDC_CONSTANT_MACROS)
|
|
178
|
+
|
|
179
|
+
/* 7.18.4.1 Macros for minimum-width integer constants
|
|
180
|
+
|
|
181
|
+
According to Douglas Gwyn <gwyn@arl.mil>:
|
|
182
|
+
"This spec was changed in ISO/IEC 9899:1999 TC1; in ISO/IEC
|
|
183
|
+
9899:1999 as initially published, the expansion was required
|
|
184
|
+
to be an integer constant of precisely matching type, which
|
|
185
|
+
is impossible to accomplish for the shorter types on most
|
|
186
|
+
platforms, because C99 provides no standard way to designate
|
|
187
|
+
an integer constant with width less than that of type int.
|
|
188
|
+
TC1 changed this to require just an integer constant
|
|
189
|
+
*expression* with *promoted* type."
|
|
190
|
+
|
|
191
|
+
The trick used here is from Clive D W Feather.
|
|
192
|
+
*/
|
|
193
|
+
|
|
194
|
+
#define INT8_C(val) (INT_LEAST8_MAX-INT_LEAST8_MAX+(val))
|
|
195
|
+
#define INT16_C(val) (INT_LEAST16_MAX-INT_LEAST16_MAX+(val))
|
|
196
|
+
#define INT32_C(val) (INT_LEAST32_MAX-INT_LEAST32_MAX+(val))
|
|
197
|
+
/* The 'trick' doesn't work in C89 for long long because, without
|
|
198
|
+
suffix, (val) will be evaluated as int, not intmax_t */
|
|
199
|
+
#define INT64_C(val) val##LL
|
|
200
|
+
|
|
201
|
+
#define UINT8_C(val) (UINT_LEAST8_MAX-UINT_LEAST8_MAX+(val))
|
|
202
|
+
#define UINT16_C(val) (UINT_LEAST16_MAX-UINT_LEAST16_MAX+(val))
|
|
203
|
+
#define UINT32_C(val) (UINT_LEAST32_MAX-UINT_LEAST32_MAX+(val))
|
|
204
|
+
#define UINT64_C(val) val##ULL
|
|
205
|
+
|
|
206
|
+
/* 7.18.4.2 Macros for greatest-width integer constants */
|
|
207
|
+
#define INTMAX_C(val) val##LL
|
|
208
|
+
#define UINTMAX_C(val) val##ULL
|
|
209
|
+
|
|
210
|
+
#endif /* !defined ( __cplusplus) || defined __STDC_CONSTANT_MACROS */
|
|
211
|
+
|
|
212
|
+
#endif
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file has no copyright assigned and is placed in the Public Domain.
|
|
3
|
+
* This file is part of the w64 mingw-runtime package.
|
|
4
|
+
* No warranty is given; refer to the file DISCLAIMER within this package.
|
|
5
|
+
*/
|
|
6
|
+
#ifndef _INC_STDIO
|
|
7
|
+
#define _INC_STDIO
|
|
8
|
+
|
|
9
|
+
#include <_mingw.h>
|
|
10
|
+
|
|
11
|
+
#pragma pack(push,_CRT_PACKING)
|
|
12
|
+
|
|
13
|
+
#ifdef __cplusplus
|
|
14
|
+
extern "C" {
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
#define BUFSIZ 512
|
|
18
|
+
#define _NFILE _NSTREAM_
|
|
19
|
+
#define _NSTREAM_ 512
|
|
20
|
+
#define _IOB_ENTRIES 20
|
|
21
|
+
#define EOF (-1)
|
|
22
|
+
|
|
23
|
+
#ifndef _FILE_DEFINED
|
|
24
|
+
struct _iobuf {
|
|
25
|
+
char *_ptr;
|
|
26
|
+
int _cnt;
|
|
27
|
+
char *_base;
|
|
28
|
+
int _flag;
|
|
29
|
+
int _file;
|
|
30
|
+
int _charbuf;
|
|
31
|
+
int _bufsiz;
|
|
32
|
+
char *_tmpfname;
|
|
33
|
+
};
|
|
34
|
+
typedef struct _iobuf FILE;
|
|
35
|
+
#define _FILE_DEFINED
|
|
36
|
+
#endif
|
|
37
|
+
|
|
38
|
+
#ifdef _POSIX_
|
|
39
|
+
#define _P_tmpdir "/"
|
|
40
|
+
#define _wP_tmpdir L"/"
|
|
41
|
+
#else
|
|
42
|
+
#define _P_tmpdir "\\"
|
|
43
|
+
#define _wP_tmpdir L"\\"
|
|
44
|
+
#endif
|
|
45
|
+
|
|
46
|
+
#define L_tmpnam (sizeof(_P_tmpdir) + 12)
|
|
47
|
+
|
|
48
|
+
#ifdef _POSIX_
|
|
49
|
+
#define L_ctermid 9
|
|
50
|
+
#define L_cuserid 32
|
|
51
|
+
#endif
|
|
52
|
+
|
|
53
|
+
#define SEEK_CUR 1
|
|
54
|
+
#define SEEK_END 2
|
|
55
|
+
#define SEEK_SET 0
|
|
56
|
+
|
|
57
|
+
#define STDIN_FILENO 0
|
|
58
|
+
#define STDOUT_FILENO 1
|
|
59
|
+
#define STDERR_FILENO 2
|
|
60
|
+
|
|
61
|
+
#define FILENAME_MAX 260
|
|
62
|
+
#define FOPEN_MAX 20
|
|
63
|
+
#define _SYS_OPEN 20
|
|
64
|
+
#define TMP_MAX 32767
|
|
65
|
+
|
|
66
|
+
#ifndef NULL
|
|
67
|
+
#ifdef __cplusplus
|
|
68
|
+
#define NULL 0
|
|
69
|
+
#else
|
|
70
|
+
#define NULL ((void *)0)
|
|
71
|
+
#endif
|
|
72
|
+
#endif
|
|
73
|
+
|
|
74
|
+
#ifndef _OFF_T_DEFINED
|
|
75
|
+
#define _OFF_T_DEFINED
|
|
76
|
+
#ifndef _OFF_T_
|
|
77
|
+
#define _OFF_T_
|
|
78
|
+
typedef long _off_t;
|
|
79
|
+
#if !defined(NO_OLDNAMES) || defined(_POSIX)
|
|
80
|
+
typedef long off_t;
|
|
81
|
+
#endif
|
|
82
|
+
#endif
|
|
83
|
+
#endif
|
|
84
|
+
|
|
85
|
+
#ifndef _OFF64_T_DEFINED
|
|
86
|
+
#define _OFF64_T_DEFINED
|
|
87
|
+
typedef long long _off64_t;
|
|
88
|
+
#if !defined(NO_OLDNAMES) || defined(_POSIX)
|
|
89
|
+
typedef long long off64_t;
|
|
90
|
+
#endif
|
|
91
|
+
#endif
|
|
92
|
+
|
|
93
|
+
#ifndef _STDIO_DEFINED
|
|
94
|
+
#ifdef _WIN64
|
|
95
|
+
_CRTIMP FILE *__cdecl __iob_func(void);
|
|
96
|
+
#else
|
|
97
|
+
#ifdef _MSVCRT_
|
|
98
|
+
extern FILE _iob[]; /* A pointer to an array of FILE */
|
|
99
|
+
#define __iob_func() (_iob)
|
|
100
|
+
#else
|
|
101
|
+
extern FILE (*_imp___iob)[]; /* A pointer to an array of FILE */
|
|
102
|
+
#define __iob_func() (*_imp___iob)
|
|
103
|
+
#define _iob __iob_func()
|
|
104
|
+
#endif
|
|
105
|
+
#endif
|
|
106
|
+
#endif
|
|
107
|
+
|
|
108
|
+
#ifndef _FPOS_T_DEFINED
|
|
109
|
+
#define _FPOS_T_DEFINED
|
|
110
|
+
#undef _FPOSOFF
|
|
111
|
+
|
|
112
|
+
#if (!defined(NO_OLDNAMES) || defined(__GNUC__)) && _INTEGRAL_MAX_BITS >= 64
|
|
113
|
+
typedef __int64 fpos_t;
|
|
114
|
+
#define _FPOSOFF(fp) ((long)(fp))
|
|
115
|
+
#else
|
|
116
|
+
typedef long long fpos_t;
|
|
117
|
+
#define _FPOSOFF(fp) ((long)(fp))
|
|
118
|
+
#endif
|
|
119
|
+
|
|
120
|
+
#endif
|
|
121
|
+
|
|
122
|
+
#ifndef _STDSTREAM_DEFINED
|
|
123
|
+
#define _STDSTREAM_DEFINED
|
|
124
|
+
|
|
125
|
+
#define stdin (&__iob_func()[0])
|
|
126
|
+
#define stdout (&__iob_func()[1])
|
|
127
|
+
#define stderr (&__iob_func()[2])
|
|
128
|
+
#endif
|
|
129
|
+
|
|
130
|
+
#define _IOREAD 0x0001
|
|
131
|
+
#define _IOWRT 0x0002
|
|
132
|
+
|
|
133
|
+
#define _IOFBF 0x0000
|
|
134
|
+
#define _IOLBF 0x0040
|
|
135
|
+
#define _IONBF 0x0004
|
|
136
|
+
|
|
137
|
+
#define _IOMYBUF 0x0008
|
|
138
|
+
#define _IOEOF 0x0010
|
|
139
|
+
#define _IOERR 0x0020
|
|
140
|
+
#define _IOSTRG 0x0040
|
|
141
|
+
#define _IORW 0x0080
|
|
142
|
+
#ifdef _POSIX_
|
|
143
|
+
#define _IOAPPEND 0x0200
|
|
144
|
+
#endif
|
|
145
|
+
|
|
146
|
+
#define _TWO_DIGIT_EXPONENT 0x1
|
|
147
|
+
|
|
148
|
+
#ifndef _STDIO_DEFINED
|
|
149
|
+
|
|
150
|
+
_CRTIMP int __cdecl _filbuf(FILE *_File);
|
|
151
|
+
_CRTIMP int __cdecl _flsbuf(int _Ch,FILE *_File);
|
|
152
|
+
#ifdef _POSIX_
|
|
153
|
+
_CRTIMP FILE *__cdecl _fsopen(const char *_Filename,const char *_Mode);
|
|
154
|
+
#else
|
|
155
|
+
_CRTIMP FILE *__cdecl _fsopen(const char *_Filename,const char *_Mode,int _ShFlag);
|
|
156
|
+
#endif
|
|
157
|
+
void __cdecl clearerr(FILE *_File);
|
|
158
|
+
int __cdecl fclose(FILE *_File);
|
|
159
|
+
_CRTIMP int __cdecl _fcloseall(void);
|
|
160
|
+
#ifdef _POSIX_
|
|
161
|
+
FILE *__cdecl fdopen(int _FileHandle,const char *_Mode);
|
|
162
|
+
#else
|
|
163
|
+
_CRTIMP FILE *__cdecl _fdopen(int _FileHandle,const char *_Mode);
|
|
164
|
+
#endif
|
|
165
|
+
int __cdecl feof(FILE *_File);
|
|
166
|
+
int __cdecl ferror(FILE *_File);
|
|
167
|
+
int __cdecl fflush(FILE *_File);
|
|
168
|
+
int __cdecl fgetc(FILE *_File);
|
|
169
|
+
_CRTIMP int __cdecl _fgetchar(void);
|
|
170
|
+
int __cdecl fgetpos(FILE *_File ,fpos_t *_Pos);
|
|
171
|
+
char *__cdecl fgets(char *_Buf,int _MaxCount,FILE *_File);
|
|
172
|
+
#ifdef _POSIX_
|
|
173
|
+
int __cdecl fileno(FILE *_File);
|
|
174
|
+
#else
|
|
175
|
+
_CRTIMP int __cdecl _fileno(FILE *_File);
|
|
176
|
+
#endif
|
|
177
|
+
_CRTIMP char *__cdecl _tempnam(const char *_DirName,const char *_FilePrefix);
|
|
178
|
+
_CRTIMP int __cdecl _flushall(void);
|
|
179
|
+
FILE *__cdecl fopen(const char *_Filename,const char *_Mode);
|
|
180
|
+
FILE *fopen64(const char *filename,const char *mode);
|
|
181
|
+
int __cdecl fprintf(FILE *_File,const char *_Format,...);
|
|
182
|
+
int __cdecl fputc(int _Ch,FILE *_File);
|
|
183
|
+
_CRTIMP int __cdecl _fputchar(int _Ch);
|
|
184
|
+
int __cdecl fputs(const char *_Str,FILE *_File);
|
|
185
|
+
size_t __cdecl fread(void *_DstBuf,size_t _ElementSize,size_t _Count,FILE *_File);
|
|
186
|
+
FILE *__cdecl freopen(const char *_Filename,const char *_Mode,FILE *_File);
|
|
187
|
+
int __cdecl fscanf(FILE *_File,const char *_Format,...);
|
|
188
|
+
int __cdecl fsetpos(FILE *_File,const fpos_t *_Pos);
|
|
189
|
+
int __cdecl fseek(FILE *_File,long _Offset,int _Origin);
|
|
190
|
+
int fseeko64(FILE* stream, _off64_t offset, int whence);
|
|
191
|
+
long __cdecl ftell(FILE *_File);
|
|
192
|
+
_off64_t ftello64(FILE * stream);
|
|
193
|
+
int __cdecl _fseeki64(FILE *_File,__int64 _Offset,int _Origin);
|
|
194
|
+
__int64 __cdecl _ftelli64(FILE *_File);
|
|
195
|
+
size_t __cdecl fwrite(const void *_Str,size_t _Size,size_t _Count,FILE *_File);
|
|
196
|
+
int __cdecl getc(FILE *_File);
|
|
197
|
+
int __cdecl getchar(void);
|
|
198
|
+
_CRTIMP int __cdecl _getmaxstdio(void);
|
|
199
|
+
char *__cdecl gets(char *_Buffer);
|
|
200
|
+
int __cdecl _getw(FILE *_File);
|
|
201
|
+
#ifndef _CRT_PERROR_DEFINED
|
|
202
|
+
#define _CRT_PERROR_DEFINED
|
|
203
|
+
void __cdecl perror(const char *_ErrMsg);
|
|
204
|
+
#endif
|
|
205
|
+
_CRTIMP int __cdecl _pclose(FILE *_File);
|
|
206
|
+
_CRTIMP FILE *__cdecl _popen(const char *_Command,const char *_Mode);
|
|
207
|
+
#if !defined(NO_OLDNAMES) && !defined(popen)
|
|
208
|
+
#define popen _popen
|
|
209
|
+
#define pclose _pclose
|
|
210
|
+
#endif
|
|
211
|
+
int __cdecl printf(const char *_Format,...);
|
|
212
|
+
int __cdecl putc(int _Ch,FILE *_File);
|
|
213
|
+
int __cdecl putchar(int _Ch);
|
|
214
|
+
int __cdecl puts(const char *_Str);
|
|
215
|
+
_CRTIMP int __cdecl _putw(int _Word,FILE *_File);
|
|
216
|
+
#ifndef _CRT_DIRECTORY_DEFINED
|
|
217
|
+
#define _CRT_DIRECTORY_DEFINED
|
|
218
|
+
int __cdecl remove(const char *_Filename);
|
|
219
|
+
int __cdecl rename(const char *_OldFilename,const char *_NewFilename);
|
|
220
|
+
_CRTIMP int __cdecl _unlink(const char *_Filename);
|
|
221
|
+
#ifndef NO_OLDNAMES
|
|
222
|
+
int __cdecl unlink(const char *_Filename);
|
|
223
|
+
#endif
|
|
224
|
+
#endif
|
|
225
|
+
void __cdecl rewind(FILE *_File);
|
|
226
|
+
_CRTIMP int __cdecl _rmtmp(void);
|
|
227
|
+
int __cdecl scanf(const char *_Format,...);
|
|
228
|
+
void __cdecl setbuf(FILE *_File,char *_Buffer);
|
|
229
|
+
_CRTIMP int __cdecl _setmaxstdio(int _Max);
|
|
230
|
+
_CRTIMP unsigned int __cdecl _set_output_format(unsigned int _Format);
|
|
231
|
+
_CRTIMP unsigned int __cdecl _get_output_format(void);
|
|
232
|
+
int __cdecl setvbuf(FILE *_File,char *_Buf,int _Mode,size_t _Size);
|
|
233
|
+
_CRTIMP int __cdecl _scprintf(const char *_Format,...);
|
|
234
|
+
int __cdecl sscanf(const char *_Src,const char *_Format,...);
|
|
235
|
+
_CRTIMP int __cdecl _snscanf(const char *_Src,size_t _MaxCount,const char *_Format,...);
|
|
236
|
+
FILE *__cdecl tmpfile(void);
|
|
237
|
+
char *__cdecl tmpnam(char *_Buffer);
|
|
238
|
+
int __cdecl ungetc(int _Ch,FILE *_File);
|
|
239
|
+
int __cdecl vfprintf(FILE *_File,const char *_Format,va_list _ArgList);
|
|
240
|
+
int __cdecl vprintf(const char *_Format,va_list _ArgList);
|
|
241
|
+
/* Make sure macros are not defined. */
|
|
242
|
+
#pragma push_macro("vsnprintf")
|
|
243
|
+
#pragma push_macro("snprintf")
|
|
244
|
+
# undef vsnprintf
|
|
245
|
+
# undef snprintf
|
|
246
|
+
extern
|
|
247
|
+
__attribute__((format(gnu_printf, 3, 0))) __attribute__((nonnull (3)))
|
|
248
|
+
int __mingw_vsnprintf(char *_DstBuf,size_t _MaxCount,const char *_Format,va_list _ArgList);
|
|
249
|
+
extern
|
|
250
|
+
__attribute__((format(gnu_printf, 3, 4))) __attribute__((nonnull (3)))
|
|
251
|
+
int __mingw_snprintf(char* s, size_t n, const char* format, ...);
|
|
252
|
+
int __cdecl vsnprintf(char *_DstBuf,size_t _MaxCount,const char *_Format,va_list _ArgList);
|
|
253
|
+
_CRTIMP int __cdecl _snprintf(char *_Dest,size_t _Count,const char *_Format,...);
|
|
254
|
+
_CRTIMP int __cdecl _vsnprintf(char *_Dest,size_t _Count,const char *_Format,va_list _Args);
|
|
255
|
+
int __cdecl sprintf(char *_Dest,const char *_Format,...);
|
|
256
|
+
int __cdecl vsprintf(char *_Dest,const char *_Format,va_list _Args);
|
|
257
|
+
#ifndef __NO_ISOCEXT /* externs in libmingwex.a */
|
|
258
|
+
int __cdecl snprintf(char* s, size_t n, const char* format, ...);
|
|
259
|
+
__CRT_INLINE int __cdecl vsnprintf (char* s, size_t n, const char* format,va_list arg) {
|
|
260
|
+
return _vsnprintf ( s, n, format, arg);
|
|
261
|
+
}
|
|
262
|
+
int __cdecl vscanf(const char * Format, va_list argp);
|
|
263
|
+
int __cdecl vfscanf (FILE * fp, const char * Format,va_list argp);
|
|
264
|
+
int __cdecl vsscanf (const char * _Str,const char * Format,va_list argp);
|
|
265
|
+
#endif
|
|
266
|
+
/* Restore may prior defined macros snprintf/vsnprintf. */
|
|
267
|
+
#pragma pop_macro("snprintf")
|
|
268
|
+
#pragma pop_macro("vsnprintf")
|
|
269
|
+
/* Check if vsnprintf and snprintf are defaulting to gnu-style. */
|
|
270
|
+
# if defined(USE_MINGW_GNU_SNPRINTF) && USE_MINGW_GNU_SNPRINTF
|
|
271
|
+
# ifndef vsnprint
|
|
272
|
+
# define vsnprintf __mingw_vsnprintf
|
|
273
|
+
# endif
|
|
274
|
+
# ifndef snprintf
|
|
275
|
+
# define snprintf __mingw_snprintf
|
|
276
|
+
# endif
|
|
277
|
+
# endif
|
|
278
|
+
_CRTIMP int __cdecl _vscprintf(const char *_Format,va_list _ArgList);
|
|
279
|
+
_CRTIMP int __cdecl _set_printf_count_output(int _Value);
|
|
280
|
+
_CRTIMP int __cdecl _get_printf_count_output(void);
|
|
281
|
+
|
|
282
|
+
#ifndef _WSTDIO_DEFINED
|
|
283
|
+
|
|
284
|
+
#ifndef WEOF
|
|
285
|
+
#define WEOF (wint_t)(0xFFFF)
|
|
286
|
+
#endif
|
|
287
|
+
|
|
288
|
+
#ifdef _POSIX_
|
|
289
|
+
_CRTIMP FILE *__cdecl _wfsopen(const wchar_t *_Filename,const wchar_t *_Mode);
|
|
290
|
+
#else
|
|
291
|
+
_CRTIMP FILE *__cdecl _wfsopen(const wchar_t *_Filename,const wchar_t *_Mode,int _ShFlag);
|
|
292
|
+
#endif
|
|
293
|
+
wint_t __cdecl fgetwc(FILE *_File);
|
|
294
|
+
_CRTIMP wint_t __cdecl _fgetwchar(void);
|
|
295
|
+
wint_t __cdecl fputwc(wchar_t _Ch,FILE *_File);
|
|
296
|
+
_CRTIMP wint_t __cdecl _fputwchar(wchar_t _Ch);
|
|
297
|
+
wint_t __cdecl getwc(FILE *_File);
|
|
298
|
+
wint_t __cdecl getwchar(void);
|
|
299
|
+
wint_t __cdecl putwc(wchar_t _Ch,FILE *_File);
|
|
300
|
+
wint_t __cdecl putwchar(wchar_t _Ch);
|
|
301
|
+
wint_t __cdecl ungetwc(wint_t _Ch,FILE *_File);
|
|
302
|
+
wchar_t *__cdecl fgetws(wchar_t *_Dst,int _SizeInWords,FILE *_File);
|
|
303
|
+
int __cdecl fputws(const wchar_t *_Str,FILE *_File);
|
|
304
|
+
_CRTIMP wchar_t *__cdecl _getws(wchar_t *_String);
|
|
305
|
+
_CRTIMP int __cdecl _putws(const wchar_t *_Str);
|
|
306
|
+
int __cdecl fwprintf(FILE *_File,const wchar_t *_Format,...);
|
|
307
|
+
int __cdecl wprintf(const wchar_t *_Format,...);
|
|
308
|
+
_CRTIMP int __cdecl _scwprintf(const wchar_t *_Format,...);
|
|
309
|
+
int __cdecl vfwprintf(FILE *_File,const wchar_t *_Format,va_list _ArgList);
|
|
310
|
+
int __cdecl vwprintf(const wchar_t *_Format,va_list _ArgList);
|
|
311
|
+
_CRTIMP int __cdecl swprintf(wchar_t*, const wchar_t*, ...);
|
|
312
|
+
_CRTIMP int __cdecl vswprintf(wchar_t*, const wchar_t*,va_list);
|
|
313
|
+
_CRTIMP int __cdecl _swprintf_c(wchar_t *_DstBuf,size_t _SizeInWords,const wchar_t *_Format,...);
|
|
314
|
+
_CRTIMP int __cdecl _vswprintf_c(wchar_t *_DstBuf,size_t _SizeInWords,const wchar_t *_Format,va_list _ArgList);
|
|
315
|
+
_CRTIMP int __cdecl _snwprintf(wchar_t *_Dest,size_t _Count,const wchar_t *_Format,...);
|
|
316
|
+
_CRTIMP int __cdecl _vsnwprintf(wchar_t *_Dest,size_t _Count,const wchar_t *_Format,va_list _Args);
|
|
317
|
+
#ifndef __NO_ISOCEXT /* externs in libmingwex.a */
|
|
318
|
+
int __cdecl snwprintf (wchar_t* s, size_t n, const wchar_t* format, ...);
|
|
319
|
+
__CRT_INLINE int __cdecl vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, va_list arg) { return _vsnwprintf(s,n,format,arg); }
|
|
320
|
+
int __cdecl vwscanf (const wchar_t *, va_list);
|
|
321
|
+
int __cdecl vfwscanf (FILE *,const wchar_t *,va_list);
|
|
322
|
+
int __cdecl vswscanf (const wchar_t *,const wchar_t *,va_list);
|
|
323
|
+
#endif
|
|
324
|
+
_CRTIMP int __cdecl _swprintf(wchar_t *_Dest,const wchar_t *_Format,...);
|
|
325
|
+
_CRTIMP int __cdecl _vswprintf(wchar_t *_Dest,const wchar_t *_Format,va_list _Args);
|
|
326
|
+
|
|
327
|
+
#ifndef RC_INVOKED
|
|
328
|
+
#include <vadefs.h>
|
|
329
|
+
#endif
|
|
330
|
+
|
|
331
|
+
#ifdef _CRT_NON_CONFORMING_SWPRINTFS
|
|
332
|
+
#ifndef __cplusplus
|
|
333
|
+
#define swprintf _swprintf
|
|
334
|
+
#define vswprintf _vswprintf
|
|
335
|
+
#define _swprintf_l __swprintf_l
|
|
336
|
+
#define _vswprintf_l __vswprintf_l
|
|
337
|
+
#endif
|
|
338
|
+
#endif
|
|
339
|
+
|
|
340
|
+
_CRTIMP wchar_t *__cdecl _wtempnam(const wchar_t *_Directory,const wchar_t *_FilePrefix);
|
|
341
|
+
_CRTIMP int __cdecl _vscwprintf(const wchar_t *_Format,va_list _ArgList);
|
|
342
|
+
int __cdecl fwscanf(FILE *_File,const wchar_t *_Format,...);
|
|
343
|
+
int __cdecl swscanf(const wchar_t *_Src,const wchar_t *_Format,...);
|
|
344
|
+
_CRTIMP int __cdecl _snwscanf(const wchar_t *_Src,size_t _MaxCount,const wchar_t *_Format,...);
|
|
345
|
+
int __cdecl wscanf(const wchar_t *_Format,...);
|
|
346
|
+
_CRTIMP FILE *__cdecl _wfdopen(int _FileHandle ,const wchar_t *_Mode);
|
|
347
|
+
_CRTIMP FILE *__cdecl _wfopen(const wchar_t *_Filename,const wchar_t *_Mode);
|
|
348
|
+
_CRTIMP FILE *__cdecl _wfreopen(const wchar_t *_Filename,const wchar_t *_Mode,FILE *_OldFile);
|
|
349
|
+
#ifndef _CRT_WPERROR_DEFINED
|
|
350
|
+
#define _CRT_WPERROR_DEFINED
|
|
351
|
+
_CRTIMP void __cdecl _wperror(const wchar_t *_ErrMsg);
|
|
352
|
+
#endif
|
|
353
|
+
_CRTIMP FILE *__cdecl _wpopen(const wchar_t *_Command,const wchar_t *_Mode);
|
|
354
|
+
#if !defined(NO_OLDNAMES) && !defined(wpopen)
|
|
355
|
+
#define wpopen _wpopen
|
|
356
|
+
#endif
|
|
357
|
+
_CRTIMP int __cdecl _wremove(const wchar_t *_Filename);
|
|
358
|
+
_CRTIMP wchar_t *__cdecl _wtmpnam(wchar_t *_Buffer);
|
|
359
|
+
_CRTIMP wint_t __cdecl _fgetwc_nolock(FILE *_File);
|
|
360
|
+
_CRTIMP wint_t __cdecl _fputwc_nolock(wchar_t _Ch,FILE *_File);
|
|
361
|
+
_CRTIMP wint_t __cdecl _ungetwc_nolock(wint_t _Ch,FILE *_File);
|
|
362
|
+
|
|
363
|
+
#undef _CRT_GETPUTWCHAR_NOINLINE
|
|
364
|
+
|
|
365
|
+
#if !defined(__cplusplus) || defined(_CRT_GETPUTWCHAR_NOINLINE)
|
|
366
|
+
#define getwchar() fgetwc(stdin)
|
|
367
|
+
#define putwchar(_c) fputwc((_c),stdout)
|
|
368
|
+
#else
|
|
369
|
+
__CRT_INLINE wint_t __cdecl getwchar() { return (fgetwc(stdin)); }
|
|
370
|
+
__CRT_INLINE wint_t __cdecl putwchar(wchar_t _C) { return (fputwc(_C,stdout)); }
|
|
371
|
+
#endif
|
|
372
|
+
|
|
373
|
+
#define getwc(_stm) fgetwc(_stm)
|
|
374
|
+
#define putwc(_c,_stm) fputwc(_c,_stm)
|
|
375
|
+
#define _putwc_nolock(_c,_stm) _fputwc_nolock(_c,_stm)
|
|
376
|
+
#define _getwc_nolock(_stm) _fgetwc_nolock(_stm)
|
|
377
|
+
|
|
378
|
+
#define _WSTDIO_DEFINED
|
|
379
|
+
#endif
|
|
380
|
+
|
|
381
|
+
#define _STDIO_DEFINED
|
|
382
|
+
#endif
|
|
383
|
+
|
|
384
|
+
#define _fgetc_nolock(_stream) (--(_stream)->_cnt >= 0 ? 0xff & *(_stream)->_ptr++ : _filbuf(_stream))
|
|
385
|
+
#define _fputc_nolock(_c,_stream) (--(_stream)->_cnt >= 0 ? 0xff & (*(_stream)->_ptr++ = (char)(_c)) : _flsbuf((_c),(_stream)))
|
|
386
|
+
#define _getc_nolock(_stream) _fgetc_nolock(_stream)
|
|
387
|
+
#define _putc_nolock(_c,_stream) _fputc_nolock(_c,_stream)
|
|
388
|
+
#define _getchar_nolock() _getc_nolock(stdin)
|
|
389
|
+
#define _putchar_nolock(_c) _putc_nolock((_c),stdout)
|
|
390
|
+
#define _getwchar_nolock() _getwc_nolock(stdin)
|
|
391
|
+
#define _putwchar_nolock(_c) _putwc_nolock((_c),stdout)
|
|
392
|
+
|
|
393
|
+
_CRTIMP void __cdecl _lock_file(FILE *_File);
|
|
394
|
+
_CRTIMP void __cdecl _unlock_file(FILE *_File);
|
|
395
|
+
_CRTIMP int __cdecl _fclose_nolock(FILE *_File);
|
|
396
|
+
_CRTIMP int __cdecl _fflush_nolock(FILE *_File);
|
|
397
|
+
_CRTIMP size_t __cdecl _fread_nolock(void *_DstBuf,size_t _ElementSize,size_t _Count,FILE *_File);
|
|
398
|
+
_CRTIMP int __cdecl _fseek_nolock(FILE *_File,long _Offset,int _Origin);
|
|
399
|
+
_CRTIMP long __cdecl _ftell_nolock(FILE *_File);
|
|
400
|
+
_CRTIMP int __cdecl _fseeki64_nolock(FILE *_File,__int64 _Offset,int _Origin);
|
|
401
|
+
_CRTIMP __int64 __cdecl _ftelli64_nolock(FILE *_File);
|
|
402
|
+
_CRTIMP size_t __cdecl _fwrite_nolock(const void *_DstBuf,size_t _Size,size_t _Count,FILE *_File);
|
|
403
|
+
_CRTIMP int __cdecl _ungetc_nolock(int _Ch,FILE *_File);
|
|
404
|
+
|
|
405
|
+
#if !defined(NO_OLDNAMES) || !defined(_POSIX)
|
|
406
|
+
#define P_tmpdir _P_tmpdir
|
|
407
|
+
#define SYS_OPEN _SYS_OPEN
|
|
408
|
+
|
|
409
|
+
char *__cdecl tempnam(const char *_Directory,const char *_FilePrefix);
|
|
410
|
+
int __cdecl fcloseall(void);
|
|
411
|
+
FILE *__cdecl fdopen(int _FileHandle,const char *_Format);
|
|
412
|
+
int __cdecl fgetchar(void);
|
|
413
|
+
int __cdecl fileno(FILE *_File);
|
|
414
|
+
int __cdecl flushall(void);
|
|
415
|
+
int __cdecl fputchar(int _Ch);
|
|
416
|
+
int __cdecl getw(FILE *_File);
|
|
417
|
+
int __cdecl putw(int _Ch,FILE *_File);
|
|
418
|
+
int __cdecl rmtmp(void);
|
|
419
|
+
#endif
|
|
420
|
+
|
|
421
|
+
#ifdef __cplusplus
|
|
422
|
+
}
|
|
423
|
+
#endif
|
|
424
|
+
|
|
425
|
+
#pragma pack(pop)
|
|
426
|
+
|
|
427
|
+
#include <sec_api/stdio_s.h>
|
|
428
|
+
|
|
429
|
+
#endif
|