tcc 0.1.0
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.
- checksums.yaml +7 -0
- data/LICENSE +35 -0
- data/README.md +196 -0
- data/ext/tcc/extconf.rb +25 -0
- data/ext/tcc/tcc-0.9.26.patch +30 -0
- data/ext/tcc/tcc-0.9.26/COPYING +504 -0
- data/ext/tcc/tcc-0.9.26/Changelog +396 -0
- data/ext/tcc/tcc-0.9.26/Makefile +349 -0
- data/ext/tcc/tcc-0.9.26/README +101 -0
- data/ext/tcc/tcc-0.9.26/TODO +93 -0
- data/ext/tcc/tcc-0.9.26/VERSION +1 -0
- data/ext/tcc/tcc-0.9.26/arm-gen.c +2005 -0
- data/ext/tcc/tcc-0.9.26/c67-gen.c +2560 -0
- data/ext/tcc/tcc-0.9.26/coff.h +446 -0
- data/ext/tcc/tcc-0.9.26/config.h +8 -0
- data/ext/tcc/tcc-0.9.26/config.mak +28 -0
- data/ext/tcc/tcc-0.9.26/config.texi +1 -0
- data/ext/tcc/tcc-0.9.26/configure +540 -0
- data/ext/tcc/tcc-0.9.26/conftest.c +71 -0
- data/ext/tcc/tcc-0.9.26/elf.h +1731 -0
- data/ext/tcc/tcc-0.9.26/examples/ex1.c +8 -0
- data/ext/tcc/tcc-0.9.26/examples/ex2.c +98 -0
- data/ext/tcc/tcc-0.9.26/examples/ex3.c +24 -0
- data/ext/tcc/tcc-0.9.26/examples/ex4.c +26 -0
- data/ext/tcc/tcc-0.9.26/examples/ex5.c +8 -0
- data/ext/tcc/tcc-0.9.26/i386-asm.c +1498 -0
- data/ext/tcc/tcc-0.9.26/i386-asm.h +473 -0
- data/ext/tcc/tcc-0.9.26/i386-gen.c +1096 -0
- data/ext/tcc/tcc-0.9.26/i386-tok.h +243 -0
- data/ext/tcc/tcc-0.9.26/il-gen.c +667 -0
- data/ext/tcc/tcc-0.9.26/il-opcodes.h +251 -0
- data/ext/tcc/tcc-0.9.26/include/float.h +57 -0
- data/ext/tcc/tcc-0.9.26/include/stdarg.h +41 -0
- data/ext/tcc/tcc-0.9.26/include/stdbool.h +10 -0
- data/ext/tcc/tcc-0.9.26/include/stddef.h +28 -0
- data/ext/tcc/tcc-0.9.26/include/tcclib.h +78 -0
- data/ext/tcc/tcc-0.9.26/include/varargs.h +12 -0
- data/ext/tcc/tcc-0.9.26/lib/Makefile +102 -0
- data/ext/tcc/tcc-0.9.26/lib/alloca86-bt.S +47 -0
- data/ext/tcc/tcc-0.9.26/lib/alloca86.S +35 -0
- data/ext/tcc/tcc-0.9.26/lib/alloca86_64.S +42 -0
- data/ext/tcc/tcc-0.9.26/lib/bcheck.c +875 -0
- data/ext/tcc/tcc-0.9.26/lib/libtcc1.c +691 -0
- data/ext/tcc/tcc-0.9.26/libtcc.c +1941 -0
- data/ext/tcc/tcc-0.9.26/libtcc.h +103 -0
- data/ext/tcc/tcc-0.9.26/stab.def +234 -0
- data/ext/tcc/tcc-0.9.26/stab.h +17 -0
- data/ext/tcc/tcc-0.9.26/tcc-doc.html +2332 -0
- data/ext/tcc/tcc-0.9.26/tcc-doc.info +1151 -0
- data/ext/tcc/tcc-0.9.26/tcc-doc.texi +1268 -0
- data/ext/tcc/tcc-0.9.26/tcc.1 +415 -0
- data/ext/tcc/tcc-0.9.26/tcc.c +352 -0
- data/ext/tcc/tcc-0.9.26/tcc.h +1379 -0
- data/ext/tcc/tcc-0.9.26/tccasm.c +1118 -0
- data/ext/tcc/tcc-0.9.26/tcccoff.c +948 -0
- data/ext/tcc/tcc-0.9.26/tccelf.c +3129 -0
- data/ext/tcc/tcc-0.9.26/tccgen.c +5841 -0
- data/ext/tcc/tcc-0.9.26/tccpe.c +1887 -0
- data/ext/tcc/tcc-0.9.26/tccpp.c +3128 -0
- data/ext/tcc/tcc-0.9.26/tccrun.c +737 -0
- data/ext/tcc/tcc-0.9.26/tcctok.h +278 -0
- data/ext/tcc/tcc-0.9.26/tests/Makefile +199 -0
- data/ext/tcc/tcc-0.9.26/tests/asmtest.S +609 -0
- data/ext/tcc/tcc-0.9.26/tests/boundtest.c +233 -0
- data/ext/tcc/tcc-0.9.26/tests/gcctestsuite.sh +33 -0
- data/ext/tcc/tcc-0.9.26/tests/libtcc_test.c +76 -0
- data/ext/tcc/tcc-0.9.26/tests/tcctest.c +2713 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/00_assignment.c +18 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/00_assignment.expect +3 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/01_comment.c +14 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/01_comment.expect +5 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/02_printf.c +18 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/02_printf.expect +15 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/03_struct.c +31 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/03_struct.expect +6 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/04_for.c +15 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/04_for.expect +10 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/05_array.c +21 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/05_array.expect +10 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/06_case.c +29 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/06_case.expect +8 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/07_function.c +30 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/07_function.expect +4 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/08_while.c +24 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/08_while.expect +11 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/09_do_while.c +24 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/09_do_while.expect +11 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/10_pointer.c +40 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/10_pointer.expect +8 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/11_precedence.c +40 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/11_precedence.expect +15 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/12_hashdefine.c +14 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/12_hashdefine.expect +2 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/13_integer_literals.c +20 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/13_integer_literals.expect +5 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/14_if.c +21 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/14_if.expect +2 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/15_recursion.c +21 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/15_recursion.expect +10 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/16_nesting.c +21 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/16_nesting.expect +18 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/17_enum.c +29 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/17_enum.expect +3 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/18_include.c +12 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/18_include.expect +3 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/18_include.h +1 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/19_pointer_arithmetic.c +28 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/19_pointer_arithmetic.expect +3 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/20_pointer_comparison.c +24 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/20_pointer_comparison.expect +6 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/21_char_array.c +33 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/21_char_array.expect +7 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/22_floating_point.c +50 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/22_floating_point.expect +16 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/23_type_coercion.c +54 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/23_type_coercion.expect +12 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/24_math_library.c +28 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/24_math_library.expect +18 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/25_quicksort.c +83 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/25_quicksort.expect +2 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/26_character_constants.c +17 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/26_character_constants.expect +8 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/27_sizeof.c +16 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/27_sizeof.expect +3 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/28_strings.c +46 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/28_strings.expect +19 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/29_array_address.c +13 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/29_array_address.expect +1 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/30_hanoi.c +122 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/30_hanoi.expect +71 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/31_args.c +14 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/31_args.expect +7 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/32_led.c +266 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/32_led.expect +4 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/33_ternary_op.c +15 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/33_ternary_op.expect +10 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/34_array_assignment.c +23 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/34_array_assignment.expect +2 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/35_sizeof.c +14 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/35_sizeof.expect +2 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/36_array_initialisers.c +21 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/36_array_initialisers.expect +20 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/37_sprintf.c +17 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/37_sprintf.expect +20 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/38_multiple_array_index.c +32 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/38_multiple_array_index.expect +4 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/39_typedef.c +31 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/39_typedef.expect +3 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/40_stdio.c +52 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/40_stdio.expect +27 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/41_hashif.c +85 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/41_hashif.expect +6 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/42_function_pointer.c +18 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/42_function_pointer.expect +2 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/43_void_param.c +15 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/43_void_param.expect +1 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/44_scoped_declarations.c +17 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/44_scoped_declarations.expect +1 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/45_empty_for.c +18 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/45_empty_for.expect +10 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/46_grep.c +564 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/47_switch_return.c +24 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/47_switch_return.expect +4 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/48_nested_break.c +26 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/48_nested_break.expect +1 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/49_bracket_evaluation.c +23 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/49_bracket_evaluation.expect +1 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/50_logical_second_arg.c +29 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/50_logical_second_arg.expect +20 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/51_static.c +30 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/51_static.expect +8 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/52_unnamed_enum.c +27 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/52_unnamed_enum.expect +9 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/54_goto.c +56 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/54_goto.expect +8 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/55_lshift_type.c +52 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/55_lshift_type.expect +1 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/LICENSE +37 -0
- data/ext/tcc/tcc-0.9.26/tests/tests2/Makefile +98 -0
- data/ext/tcc/tcc-0.9.26/texi2pod.pl +427 -0
- data/ext/tcc/tcc-0.9.26/win32/build-tcc.bat +60 -0
- data/ext/tcc/tcc-0.9.26/win32/examples/dll.c +12 -0
- data/ext/tcc/tcc-0.9.26/win32/examples/fib.c +23 -0
- data/ext/tcc/tcc-0.9.26/win32/examples/hello_dll.c +19 -0
- data/ext/tcc/tcc-0.9.26/win32/examples/hello_win.c +163 -0
- data/ext/tcc/tcc-0.9.26/win32/include/_mingw.h +139 -0
- data/ext/tcc/tcc-0.9.26/win32/include/assert.h +54 -0
- data/ext/tcc/tcc-0.9.26/win32/include/conio.h +409 -0
- data/ext/tcc/tcc-0.9.26/win32/include/ctype.h +281 -0
- data/ext/tcc/tcc-0.9.26/win32/include/dir.h +31 -0
- data/ext/tcc/tcc-0.9.26/win32/include/direct.h +68 -0
- data/ext/tcc/tcc-0.9.26/win32/include/dirent.h +135 -0
- data/ext/tcc/tcc-0.9.26/win32/include/dos.h +55 -0
- data/ext/tcc/tcc-0.9.26/win32/include/errno.h +75 -0
- data/ext/tcc/tcc-0.9.26/win32/include/excpt.h +123 -0
- data/ext/tcc/tcc-0.9.26/win32/include/fcntl.h +52 -0
- data/ext/tcc/tcc-0.9.26/win32/include/fenv.h +108 -0
- data/ext/tcc/tcc-0.9.26/win32/include/inttypes.h +297 -0
- data/ext/tcc/tcc-0.9.26/win32/include/io.h +418 -0
- data/ext/tcc/tcc-0.9.26/win32/include/limits.h +111 -0
- data/ext/tcc/tcc-0.9.26/win32/include/locale.h +91 -0
- data/ext/tcc/tcc-0.9.26/win32/include/malloc.h +175 -0
- data/ext/tcc/tcc-0.9.26/win32/include/math.h +777 -0
- data/ext/tcc/tcc-0.9.26/win32/include/mem.h +13 -0
- data/ext/tcc/tcc-0.9.26/win32/include/memory.h +40 -0
- data/ext/tcc/tcc-0.9.26/win32/include/process.h +176 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/conio_s.h +42 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/crtdbg_s.h +19 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/io_s.h +33 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/mbstring_s.h +52 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/search_s.h +25 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/stdio_s.h +145 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/stdlib_s.h +67 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/stralign_s.h +30 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/string_s.h +41 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/sys/timeb_s.h +34 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/tchar_s.h +266 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/time_s.h +61 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sec_api/wchar_s.h +128 -0
- data/ext/tcc/tcc-0.9.26/win32/include/setjmp.h +160 -0
- data/ext/tcc/tcc-0.9.26/win32/include/share.h +28 -0
- data/ext/tcc/tcc-0.9.26/win32/include/signal.h +63 -0
- data/ext/tcc/tcc-0.9.26/win32/include/stdint.h +209 -0
- data/ext/tcc/tcc-0.9.26/win32/include/stdio.h +429 -0
- data/ext/tcc/tcc-0.9.26/win32/include/stdlib.h +580 -0
- data/ext/tcc/tcc-0.9.26/win32/include/string.h +164 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sys/fcntl.h +13 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sys/file.h +14 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sys/locking.h +30 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sys/stat.h +290 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sys/time.h +69 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sys/timeb.h +133 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sys/types.h +118 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sys/unistd.h +14 -0
- data/ext/tcc/tcc-0.9.26/win32/include/sys/utime.h +146 -0
- data/ext/tcc/tcc-0.9.26/win32/include/tchar.h +1102 -0
- data/ext/tcc/tcc-0.9.26/win32/include/time.h +287 -0
- data/ext/tcc/tcc-0.9.26/win32/include/vadefs.h +11 -0
- data/ext/tcc/tcc-0.9.26/win32/include/values.h +4 -0
- data/ext/tcc/tcc-0.9.26/win32/include/wchar.h +871 -0
- data/ext/tcc/tcc-0.9.26/win32/include/wctype.h +172 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/basetsd.h +149 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/basetyps.h +85 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/guiddef.h +151 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/intrin.h +11 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/poppack.h +8 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/pshpack1.h +8 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/pshpack2.h +8 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/pshpack4.h +8 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/pshpack8.h +8 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/reason.h +80 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/specstrings.h +7 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/stralign.h +154 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/tvout.h +79 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/winbase.h +2951 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/wincon.h +301 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/windef.h +293 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/windows.h +123 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/winerror.h +3166 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/wingdi.h +4080 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/winnetwk.h +476 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/winnls.h +765 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/winnt.h +5770 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/winreg.h +272 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/winuser.h +5651 -0
- data/ext/tcc/tcc-0.9.26/win32/include/winapi/winver.h +160 -0
- data/ext/tcc/tcc-0.9.26/win32/lib/chkstk.S +191 -0
- data/ext/tcc/tcc-0.9.26/win32/lib/crt1.c +34 -0
- data/ext/tcc/tcc-0.9.26/win32/lib/dllcrt1.c +13 -0
- data/ext/tcc/tcc-0.9.26/win32/lib/dllmain.c +9 -0
- data/ext/tcc/tcc-0.9.26/win32/lib/gdi32.def +337 -0
- data/ext/tcc/tcc-0.9.26/win32/lib/kernel32.def +765 -0
- data/ext/tcc/tcc-0.9.26/win32/lib/msvcrt.def +1399 -0
- data/ext/tcc/tcc-0.9.26/win32/lib/user32.def +654 -0
- data/ext/tcc/tcc-0.9.26/win32/lib/wincrt1.c +64 -0
- data/ext/tcc/tcc-0.9.26/win32/tcc-win32.txt +156 -0
- data/ext/tcc/tcc-0.9.26/win32/tools/tiny_impdef.c +243 -0
- data/ext/tcc/tcc-0.9.26/win32/tools/tiny_libmaker.c +258 -0
- data/ext/tcc/tcc-0.9.26/x86_64-asm.h +448 -0
- data/ext/tcc/tcc-0.9.26/x86_64-gen.c +1701 -0
- data/lib/tcc.rb +291 -0
- data/tcc.gemspec +15 -0
- metadata +343 -0
@@ -0,0 +1,67 @@
|
|
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_STDLIB_S
|
7
|
+
#define _INC_STDLIB_S
|
8
|
+
|
9
|
+
#include <stdlib.h>
|
10
|
+
|
11
|
+
#if defined(MINGW_HAS_SECURE_API)
|
12
|
+
|
13
|
+
#ifdef __cplusplus
|
14
|
+
extern "C" {
|
15
|
+
#endif
|
16
|
+
|
17
|
+
_CRTIMP errno_t __cdecl _dupenv_s(char **_PBuffer,size_t *_PBufferSizeInBytes,const char *_VarName);
|
18
|
+
_CRTIMP errno_t __cdecl _itoa_s(int _Value,char *_DstBuf,size_t _Size,int _Radix);
|
19
|
+
#if _INTEGRAL_MAX_BITS >= 64
|
20
|
+
_CRTIMP errno_t __cdecl _i64toa_s(__int64 _Val,char *_DstBuf,size_t _Size,int _Radix);
|
21
|
+
_CRTIMP errno_t __cdecl _ui64toa_s(unsigned __int64 _Val,char *_DstBuf,size_t _Size,int _Radix);
|
22
|
+
#endif
|
23
|
+
_CRTIMP errno_t __cdecl _ltoa_s(long _Val,char *_DstBuf,size_t _Size,int _Radix);
|
24
|
+
_CRTIMP errno_t __cdecl mbstowcs_s(size_t *_PtNumOfCharConverted,wchar_t *_DstBuf,size_t _SizeInWords,const char *_SrcBuf,size_t _MaxCount);
|
25
|
+
_CRTIMP errno_t __cdecl _mbstowcs_s_l(size_t *_PtNumOfCharConverted,wchar_t *_DstBuf,size_t _SizeInWords,const char *_SrcBuf,size_t _MaxCount,_locale_t _Locale);
|
26
|
+
_CRTIMP errno_t __cdecl _ultoa_s(unsigned long _Val,char *_DstBuf,size_t _Size,int _Radix);
|
27
|
+
_CRTIMP errno_t __cdecl _wctomb_s_l(int *_SizeConverted,char *_MbCh,size_t _SizeInBytes,wchar_t _WCh,_locale_t _Locale);
|
28
|
+
_CRTIMP errno_t __cdecl wcstombs_s(size_t *_PtNumOfCharConverted,char *_Dst,size_t _DstSizeInBytes,const wchar_t *_Src,size_t _MaxCountInBytes);
|
29
|
+
_CRTIMP errno_t __cdecl _wcstombs_s_l(size_t *_PtNumOfCharConverted,char *_Dst,size_t _DstSizeInBytes,const wchar_t *_Src,size_t _MaxCountInBytes,_locale_t _Locale);
|
30
|
+
|
31
|
+
#ifndef _WSTDLIB_S_DEFINED
|
32
|
+
#define _WSTDLIB_S_DEFINED
|
33
|
+
_CRTIMP errno_t __cdecl _itow_s (int _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
|
34
|
+
_CRTIMP errno_t __cdecl _ltow_s (long _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
|
35
|
+
_CRTIMP errno_t __cdecl _ultow_s (unsigned long _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
|
36
|
+
_CRTIMP errno_t __cdecl _wgetenv_s(size_t *_ReturnSize,wchar_t *_DstBuf,size_t _DstSizeInWords,const wchar_t *_VarName);
|
37
|
+
_CRTIMP errno_t __cdecl _wdupenv_s(wchar_t **_Buffer,size_t *_BufferSizeInWords,const wchar_t *_VarName);
|
38
|
+
#if _INTEGRAL_MAX_BITS >= 64
|
39
|
+
_CRTIMP errno_t __cdecl _i64tow_s(__int64 _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
|
40
|
+
_CRTIMP errno_t __cdecl _ui64tow_s(unsigned __int64 _Val,wchar_t *_DstBuf,size_t _SizeInWords,int _Radix);
|
41
|
+
#endif
|
42
|
+
#endif
|
43
|
+
|
44
|
+
#ifndef _POSIX_
|
45
|
+
_CRTIMP errno_t __cdecl _ecvt_s(char *_DstBuf,size_t _Size,double _Val,int _NumOfDights,int *_PtDec,int *_PtSign);
|
46
|
+
_CRTIMP errno_t __cdecl _fcvt_s(char *_DstBuf,size_t _Size,double _Val,int _NumOfDec,int *_PtDec,int *_PtSign);
|
47
|
+
_CRTIMP errno_t __cdecl _gcvt_s(char *_DstBuf,size_t _Size,double _Val,int _NumOfDigits);
|
48
|
+
_CRTIMP errno_t __cdecl _makepath_s(char *_PathResult,size_t _Size,const char *_Drive,const char *_Dir,const char *_Filename,const char *_Ext);
|
49
|
+
_CRTIMP errno_t __cdecl _putenv_s(const char *_Name,const char *_Value);
|
50
|
+
_CRTIMP errno_t __cdecl _searchenv_s(const char *_Filename,const char *_EnvVar,char *_ResultPath,size_t _SizeInBytes);
|
51
|
+
_CRTIMP errno_t __cdecl _splitpath_s(const char *_FullPath,char *_Drive,size_t _DriveSize,char *_Dir,size_t _DirSize,char *_Filename,size_t _FilenameSize,char *_Ext,size_t _ExtSize);
|
52
|
+
|
53
|
+
#ifndef _WSTDLIBP_S_DEFINED
|
54
|
+
#define _WSTDLIBP_S_DEFINED
|
55
|
+
_CRTIMP errno_t __cdecl _wmakepath_s(wchar_t *_PathResult,size_t _SizeInWords,const wchar_t *_Drive,const wchar_t *_Dir,const wchar_t *_Filename,const wchar_t *_Ext);
|
56
|
+
_CRTIMP errno_t __cdecl _wputenv_s(const wchar_t *_Name,const wchar_t *_Value);
|
57
|
+
_CRTIMP errno_t __cdecl _wsearchenv_s(const wchar_t *_Filename,const wchar_t *_EnvVar,wchar_t *_ResultPath,size_t _SizeInWords);
|
58
|
+
_CRTIMP errno_t __cdecl _wsplitpath_s(const wchar_t *_FullPath,wchar_t *_Drive,size_t _DriveSizeInWords,wchar_t *_Dir,size_t _DirSizeInWords,wchar_t *_Filename,size_t _FilenameSizeInWords,wchar_t *_Ext,size_t _ExtSizeInWords);
|
59
|
+
#endif
|
60
|
+
#endif
|
61
|
+
|
62
|
+
#ifdef __cplusplus
|
63
|
+
}
|
64
|
+
#endif
|
65
|
+
|
66
|
+
#endif
|
67
|
+
#endif
|
@@ -0,0 +1,30 @@
|
|
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 __STRALIGN_H_S_
|
7
|
+
#define __STRALIGN_H_S_
|
8
|
+
|
9
|
+
#include <stralign.h>
|
10
|
+
|
11
|
+
#if defined(MINGW_HAS_SECURE_API)
|
12
|
+
|
13
|
+
#ifdef __cplusplus
|
14
|
+
extern "C" {
|
15
|
+
#endif
|
16
|
+
|
17
|
+
#if !defined(I_X86_) && defined(_WSTRING_S_DEFINED)
|
18
|
+
#if defined(__cplusplus) && defined(_WConst_Return)
|
19
|
+
static __inline PUWSTR ua_wcscpy_s(PUWSTR Destination,size_t DestinationSize,PCUWSTR Source) {
|
20
|
+
if(WSTR_ALIGNED(Source) && WSTR_ALIGNED(Destination)) return (wcscpy_s((PWSTR)Destination,DestinationSize,(PCWSTR)Source)==0 ? Destination : NULL);
|
21
|
+
return uaw_wcscpy((PCUWSTR)String,Character);
|
22
|
+
}
|
23
|
+
#endif
|
24
|
+
#endif
|
25
|
+
|
26
|
+
#ifdef __cplusplus
|
27
|
+
}
|
28
|
+
#endif
|
29
|
+
#endif
|
30
|
+
#endif
|
@@ -0,0 +1,41 @@
|
|
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_STRING_S
|
7
|
+
#define _INC_STRING_S
|
8
|
+
|
9
|
+
#include <string.h>
|
10
|
+
|
11
|
+
#if defined(MINGW_HAS_SECURE_API)
|
12
|
+
|
13
|
+
#ifdef __cplusplus
|
14
|
+
extern "C" {
|
15
|
+
#endif
|
16
|
+
|
17
|
+
_CRTIMP errno_t __cdecl _strset_s(char *_Dst,size_t _DstSize,int _Value);
|
18
|
+
_CRTIMP errno_t __cdecl _strerror_s(char *_Buf,size_t _SizeInBytes,const char *_ErrMsg);
|
19
|
+
_CRTIMP errno_t __cdecl _strlwr_s(char *_Str,size_t _Size);
|
20
|
+
_CRTIMP errno_t __cdecl _strlwr_s_l(char *_Str,size_t _Size,_locale_t _Locale);
|
21
|
+
_CRTIMP errno_t __cdecl _strnset_s(char *_Str,size_t _Size,int _Val,size_t _MaxCount);
|
22
|
+
_CRTIMP errno_t __cdecl _strupr_s(char *_Str,size_t _Size);
|
23
|
+
_CRTIMP errno_t __cdecl _strupr_s_l(char *_Str,size_t _Size,_locale_t _Locale);
|
24
|
+
#ifndef _WSTRING_S_DEFINED
|
25
|
+
#define _WSTRING_S_DEFINED
|
26
|
+
_CRTIMP wchar_t *__cdecl wcstok_s(wchar_t *_Str,const wchar_t *_Delim,wchar_t **_Context);
|
27
|
+
_CRTIMP errno_t __cdecl _wcserror_s(wchar_t *_Buf,size_t _SizeInWords,int _ErrNum);
|
28
|
+
_CRTIMP errno_t __cdecl __wcserror_s(wchar_t *_Buffer,size_t _SizeInWords,const wchar_t *_ErrMsg);
|
29
|
+
_CRTIMP errno_t __cdecl _wcsnset_s(wchar_t *_Dst,size_t _DstSizeInWords,wchar_t _Val,size_t _MaxCount);
|
30
|
+
_CRTIMP errno_t __cdecl _wcsset_s(wchar_t *_Str,size_t _SizeInWords,wchar_t _Val);
|
31
|
+
_CRTIMP errno_t __cdecl _wcslwr_s(wchar_t *_Str,size_t _SizeInWords);
|
32
|
+
_CRTIMP errno_t __cdecl _wcslwr_s_l(wchar_t *_Str,size_t _SizeInWords,_locale_t _Locale);
|
33
|
+
_CRTIMP errno_t __cdecl _wcsupr_s(wchar_t *_Str,size_t _Size);
|
34
|
+
_CRTIMP errno_t __cdecl _wcsupr_s_l(wchar_t *_Str,size_t _Size,_locale_t _Locale);
|
35
|
+
#endif
|
36
|
+
|
37
|
+
#ifdef __cplusplus
|
38
|
+
}
|
39
|
+
#endif
|
40
|
+
#endif
|
41
|
+
#endif
|
@@ -0,0 +1,34 @@
|
|
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
|
+
|
7
|
+
#ifndef _TIMEB_H_S
|
8
|
+
#define _TIMEB_H_S
|
9
|
+
|
10
|
+
#include <sys/timeb.h>
|
11
|
+
|
12
|
+
#ifdef __cplusplus
|
13
|
+
extern "C" {
|
14
|
+
#endif
|
15
|
+
|
16
|
+
#if defined(MINGW_HAS_SECURE_API)
|
17
|
+
|
18
|
+
#ifdef _USE_32BIT_TIME_T
|
19
|
+
#define _ftime_s _ftime32_s
|
20
|
+
#else
|
21
|
+
#define _ftime_s _ftime64_s
|
22
|
+
#endif
|
23
|
+
|
24
|
+
_CRTIMP errno_t __cdecl _ftime32_s(struct __timeb32 *_Time);
|
25
|
+
#if _INTEGRAL_MAX_BITS >= 64
|
26
|
+
_CRTIMP errno_t __cdecl _ftime64_s(struct __timeb64 *_Time);
|
27
|
+
#endif
|
28
|
+
#endif
|
29
|
+
|
30
|
+
#ifdef __cplusplus
|
31
|
+
}
|
32
|
+
#endif
|
33
|
+
|
34
|
+
#endif
|
@@ -0,0 +1,266 @@
|
|
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_TCHAR_S
|
7
|
+
#define _INC_TCHAR_S
|
8
|
+
|
9
|
+
#include <tchar.h>
|
10
|
+
|
11
|
+
#if defined(MINGW_HAS_SECURE_API)
|
12
|
+
|
13
|
+
#ifdef __cplusplus
|
14
|
+
extern "C" {
|
15
|
+
#endif
|
16
|
+
|
17
|
+
#ifdef _UNICODE
|
18
|
+
|
19
|
+
#define _tprintf_s wprintf_s
|
20
|
+
#define _tprintf_s_l _wprintf_s_l
|
21
|
+
#define _tcprintf_s _cwprintf_s
|
22
|
+
#define _tcprintf_s_l _cwprintf_s_l
|
23
|
+
#define _vtcprintf_s _vcwprintf_s
|
24
|
+
#define _vtcprintf_s_l _vcwprintf_s_l
|
25
|
+
#define _ftprintf_s fwprintf_s
|
26
|
+
#define _ftprintf_s_l _fwprintf_s_l
|
27
|
+
#define _stprintf_s swprintf_s
|
28
|
+
#define _stprintf_s_l _swprintf_s_l
|
29
|
+
#define _sntprintf_s _snwprintf_s
|
30
|
+
#define _sntprintf_s_l _snwprintf_s_l
|
31
|
+
#define _vtprintf_s vwprintf_s
|
32
|
+
#define _vtprintf_s_l _vwprintf_s_l
|
33
|
+
#define _vftprintf_s vfwprintf_s
|
34
|
+
#define _vftprintf_s_l _vfwprintf_s_l
|
35
|
+
#define _vstprintf_s vswprintf_s
|
36
|
+
#define _vstprintf_s_l _vswprintf_s_l
|
37
|
+
#define _vsntprintf_s _vsnwprintf_s
|
38
|
+
#define _vsntprintf_s_l _vsnwprintf_s_l
|
39
|
+
|
40
|
+
#define _tscanf_s wscanf_s
|
41
|
+
#define _tscanf_s_l _wscanf_s_l
|
42
|
+
#define _tcscanf_s _cwscanf_s
|
43
|
+
#define _tcscanf_s_l _cwscanf_s_l
|
44
|
+
#define _ftscanf_s fwscanf_s
|
45
|
+
#define _ftscanf_s_l _fwscanf_s_l
|
46
|
+
#define _stscanf_s swscanf_s
|
47
|
+
#define _stscanf_s_l _swscanf_s_l
|
48
|
+
#define _sntscanf_s _snwscanf_s
|
49
|
+
#define _sntscanf_s_l _snwscanf_s_l
|
50
|
+
|
51
|
+
#define _cgetts_s _cgetws_s
|
52
|
+
#define _getts_s _getws_s
|
53
|
+
|
54
|
+
#define _itot_s _itow_s
|
55
|
+
#define _ltot_s _ltow_s
|
56
|
+
#define _ultot_s _ultow_s
|
57
|
+
#define _i64tot_s _i64tow_s
|
58
|
+
#define _ui64tot_s _ui64tow_s
|
59
|
+
|
60
|
+
#define _tcscat_s wcscat_s
|
61
|
+
#define _tcscpy_s wcscpy_s
|
62
|
+
#define _tcsncat_s wcsncat_s
|
63
|
+
#define _tcsncat_s_l _wcsncat_s_l
|
64
|
+
#define _tcsncpy_s wcsncpy_s
|
65
|
+
#define _tcsncpy_s_l _wcsncpy_s_l
|
66
|
+
#define _tcstok_s wcstok_s
|
67
|
+
#define _tcstok_s_l _wcstok_s_l
|
68
|
+
#define _tcserror_s _wcserror_s
|
69
|
+
#define __tcserror_s __wcserror_s
|
70
|
+
|
71
|
+
#define _tcsnset_s _wcsnset_s
|
72
|
+
#define _tcsnset_s_l _wcsnset_s_l
|
73
|
+
#define _tcsset_s _wcsset_s
|
74
|
+
#define _tcsset_s_l _wcsset_s_l
|
75
|
+
|
76
|
+
#define _tasctime_s _wasctime_s
|
77
|
+
#define _tctime_s _wctime_s
|
78
|
+
#define _tctime32_s _wctime32_s
|
79
|
+
#define _tctime64_s _wctime64_s
|
80
|
+
#define _tstrdate_s _wstrdate_s
|
81
|
+
#define _tstrtime_s _wstrtime_s
|
82
|
+
|
83
|
+
#define _tgetenv_s _wgetenv_s
|
84
|
+
#define _tdupenv_s _wdupenv_s
|
85
|
+
#define _tmakepath_s _wmakepath_s
|
86
|
+
#define _tputenv_s _wputenv_s
|
87
|
+
#define _tsearchenv_s _wsearchenv_s
|
88
|
+
#define _tsplitpath_s _wsplitpath_s
|
89
|
+
|
90
|
+
#define _tfopen_s _wfopen_s
|
91
|
+
#define _tfreopen_s _wfreopen_s
|
92
|
+
#define _ttmpnam_s _wtmpnam_s
|
93
|
+
#define _taccess_s _waccess_s
|
94
|
+
#define _tmktemp_s _wmktemp_s
|
95
|
+
|
96
|
+
#define _tcsnccat_s wcsncat_s
|
97
|
+
#define _tcsnccat_s_l _wcsncat_s_l
|
98
|
+
#define _tcsnccpy_s wcsncpy_s
|
99
|
+
#define _tcsnccpy_s_l _wcsncpy_s_l
|
100
|
+
|
101
|
+
#define _tcslwr_s _wcslwr_s
|
102
|
+
#define _tcslwr_s_l _wcslwr_s_l
|
103
|
+
#define _tcsupr_s _wcsupr_s
|
104
|
+
#define _tcsupr_s_l _wcsupr_s_l
|
105
|
+
|
106
|
+
#define _wcstok_s_l(_String,_Delimiters,_Current_position,_Locale) (wcstok_s(_String,_Delimiters,_Current_position))
|
107
|
+
#define _wcsnset_s_l(_Destination,_Destination_size_chars,_Value,_Count,_Locale) (_wcsnset_s(_Destination,_Destination_size_chars,_Value,_Count))
|
108
|
+
#define _wcsset_s_l(_Destination,_Destination_size_chars,_Value,_Locale) (_wcsset_s(_Destination,_Destination_size_chars,_Value))
|
109
|
+
|
110
|
+
#else
|
111
|
+
|
112
|
+
#define _tprintf_s printf_s
|
113
|
+
#define _tprintf_s_l _printf_s_l
|
114
|
+
#define _tcprintf_s _cprintf_s
|
115
|
+
#define _tcprintf_s_l _cprintf_s_l
|
116
|
+
#define _vtcprintf_s _vcprintf_s
|
117
|
+
#define _vtcprintf_s_l _vcprintf_s_l
|
118
|
+
#define _ftprintf_s fprintf_s
|
119
|
+
#define _ftprintf_s_l _fprintf_s_l
|
120
|
+
#define _stprintf_s sprintf_s
|
121
|
+
#define _stprintf_s_l _sprintf_s_l
|
122
|
+
#define _sntprintf_s _snprintf_s
|
123
|
+
#define _sntprintf_s_l _snprintf_s_l
|
124
|
+
#define _vtprintf_s vprintf_s
|
125
|
+
#define _vtprintf_s_l _vprintf_s_l
|
126
|
+
#define _vftprintf_s vfprintf_s
|
127
|
+
#define _vftprintf_s_l _vfprintf_s_l
|
128
|
+
#define _vstprintf_s vsprintf_s
|
129
|
+
#define _vstprintf_s_l _vsprintf_s_l
|
130
|
+
#define _vsntprintf_s _vsnprintf_s
|
131
|
+
#define _vsntprintf_s_l _vsnprintf_s_l
|
132
|
+
#define _tscanf_s scanf_s
|
133
|
+
#define _tscanf_s_l _scanf_s_l
|
134
|
+
#define _tcscanf_s _cscanf_s
|
135
|
+
#define _tcscanf_s_l _cscanf_s_l
|
136
|
+
#define _ftscanf_s fscanf_s
|
137
|
+
#define _ftscanf_s_l _fscanf_s_l
|
138
|
+
#define _stscanf_s sscanf_s
|
139
|
+
#define _stscanf_s_l _sscanf_s_l
|
140
|
+
#define _sntscanf_s _snscanf_s
|
141
|
+
#define _sntscanf_s_l _snscanf_s_l
|
142
|
+
|
143
|
+
#define _getts_s gets_s
|
144
|
+
#define _cgetts_s _cgets_s
|
145
|
+
#define _itot_s _itoa_s
|
146
|
+
#define _ltot_s _ltoa_s
|
147
|
+
#define _ultot_s _ultoa_s
|
148
|
+
#define _i64tot_s _i64toa_s
|
149
|
+
#define _ui64tot_s _ui64toa_s
|
150
|
+
|
151
|
+
#define _tcscat_s strcat_s
|
152
|
+
#define _tcscpy_s strcpy_s
|
153
|
+
#define _tcserror_s strerror_s
|
154
|
+
#define __tcserror_s _strerror_s
|
155
|
+
|
156
|
+
#define _tasctime_s asctime_s
|
157
|
+
#define _tctime_s ctime_s
|
158
|
+
#define _tctime32_s _ctime32_s
|
159
|
+
#define _tctime64_s _ctime64_s
|
160
|
+
#define _tstrdate_s _strdate_s
|
161
|
+
#define _tstrtime_s _strtime_s
|
162
|
+
|
163
|
+
#define _tgetenv_s getenv_s
|
164
|
+
#define _tdupenv_s _dupenv_s
|
165
|
+
#define _tmakepath_s _makepath_s
|
166
|
+
#define _tputenv_s _putenv_s
|
167
|
+
#define _tsearchenv_s _searchenv_s
|
168
|
+
#define _tsplitpath_s _splitpath_s
|
169
|
+
|
170
|
+
#define _tfopen_s fopen_s
|
171
|
+
#define _tfreopen_s freopen_s
|
172
|
+
#define _ttmpnam_s tmpnam_s
|
173
|
+
#define _tmktemp_s _mktemp_s
|
174
|
+
|
175
|
+
#ifndef _POSIX_
|
176
|
+
#define _taccess_s _access_s
|
177
|
+
#endif
|
178
|
+
|
179
|
+
#define _tsopen_s _sopen_s
|
180
|
+
|
181
|
+
#ifdef _MBCS
|
182
|
+
|
183
|
+
#ifdef _MB_MAP_DIRECT
|
184
|
+
|
185
|
+
#define _tcsncat_s _mbsnbcat_s
|
186
|
+
#define _tcsncat_s_l _mbsnbcat_s_l
|
187
|
+
#define _tcsncpy_s _mbsnbcpy_s
|
188
|
+
#define _tcsncpy_s_l _mbsnbcpy_s_l
|
189
|
+
#define _tcstok_s _mbstok_s
|
190
|
+
#define _tcstok_s_l _mbstok_s_l
|
191
|
+
|
192
|
+
#define _tcsnset_s _mbsnbset_s
|
193
|
+
#define _tcsnset_s_l _mbsnbset_s_l
|
194
|
+
#define _tcsset_s _mbsset_s
|
195
|
+
#define _tcsset_s_l _mbsset_s_l
|
196
|
+
|
197
|
+
#define _tcsnccat_s _mbsncat_s
|
198
|
+
#define _tcsnccat_s_l _mbsncat_s_l
|
199
|
+
#define _tcsnccpy_s _mbsncpy_s
|
200
|
+
#define _tcsnccpy_s_l _mbsncpy_s_l
|
201
|
+
#define _tcsncset_s _mbsnset_s
|
202
|
+
#define _tcsncset_s_l _mbsnset_s_l
|
203
|
+
|
204
|
+
#define _tcslwr_s _mbslwr_s
|
205
|
+
#define _tcslwr_s_l _mbslwr_s_l
|
206
|
+
#define _tcsupr_s _mbsupr_s
|
207
|
+
#define _tcsupr_s_l _mbsupr_s_l
|
208
|
+
|
209
|
+
#define _tccpy_s _mbccpy_s
|
210
|
+
#define _tccpy_s_l _mbccpy_s_l
|
211
|
+
#else
|
212
|
+
|
213
|
+
_CRTIMP char *__cdecl _tcsncat_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
|
214
|
+
_CRTIMP char *__cdecl _tcsncat_s_l(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount,_locale_t _Locale);
|
215
|
+
_CRTIMP char *__cdecl _tcsncpy_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
|
216
|
+
_CRTIMP char *__cdecl _tcsncpy_s_l(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount,_locale_t _Locale);
|
217
|
+
_CRTIMP char *__cdecl _tcstok_s(char *_Str,const char *_Delim,char **_Context);
|
218
|
+
_CRTIMP char *__cdecl _tcstok_s_l(char *_Str,const char *_Delim,char **_Context,_locale_t _Locale);
|
219
|
+
_CRTIMP errno_t __cdecl _tcsset_s(char *_Str,size_t _SizeInChars,unsigned int _Val);
|
220
|
+
_CRTIMP errno_t __cdecl _tcsset_s_l(char *_Str,size_t _SizeInChars,unsigned int,_locale_t _Locale);
|
221
|
+
_CRTIMP char *__cdecl _tcsnccat_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
|
222
|
+
_CRTIMP char *__cdecl _tcsnccat_s_l(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount,_locale_t _Locale);
|
223
|
+
_CRTIMP char *__cdecl _tcsnccpy_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
|
224
|
+
_CRTIMP char *__cdecl _tcsnccpy_s_l(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount,_locale_t _Locale);
|
225
|
+
_CRTIMP char *__cdecl _tcslwr_s(char *_Str,size_t _SizeInChars);
|
226
|
+
_CRTIMP char *__cdecl _tcslwr_s_l(char *_Str,size_t _SizeInChars,_locale_t _Locale);
|
227
|
+
_CRTIMP char *__cdecl _tcsupr_s(char *_Str,size_t _SizeInChars);
|
228
|
+
_CRTIMP char *__cdecl _tcsupr_s_l(char *_Str,size_t _SizeInChars,_locale_t _Locale);
|
229
|
+
|
230
|
+
#endif
|
231
|
+
|
232
|
+
#else
|
233
|
+
|
234
|
+
#define _tcsncat_s strncat_s
|
235
|
+
#define _tcsncat_s_l _strncat_s_l
|
236
|
+
#define _tcsncpy_s strncpy_s
|
237
|
+
#define _tcsncpy_s_l _strncpy_s_l
|
238
|
+
#define _tcstok_s strtok_s
|
239
|
+
#define _tcstok_s_l _strtok_s_l
|
240
|
+
|
241
|
+
#define _tcsnset_s _strnset_s
|
242
|
+
#define _tcsnset_s_l _strnset_s_l
|
243
|
+
#define _tcsset_s _strset_s
|
244
|
+
#define _tcsset_s _strset_s
|
245
|
+
#define _tcsset_s_l _strset_s_l
|
246
|
+
|
247
|
+
#define _tcsnccat_s strncat_s
|
248
|
+
#define _tcsnccat_s_l _strncat_s_l
|
249
|
+
#define _tcsnccpy_s strncpy_s
|
250
|
+
#define _tcsnccpy_s_l _strncpy_s_l
|
251
|
+
|
252
|
+
#define _tcslwr_s _strlwr_s
|
253
|
+
#define _tcslwr_s_l _strlwr_s_l
|
254
|
+
#define _tcsupr_s _strupr_s
|
255
|
+
#define _tcsupr_s_l _strupr_s_l
|
256
|
+
|
257
|
+
#define _strnset_s_l(_Destination,_Destination_size_chars,_Value,_Count,_Locale) (_strnset_s(_Destination,_Destination_size_chars,_Value,_Count))
|
258
|
+
#define _strset_s_l(_Destination,_Destination_size_chars,_Value,_Locale) (_strset_s(_Destination,_Destination_size_chars,_Value))
|
259
|
+
#endif
|
260
|
+
#endif
|
261
|
+
|
262
|
+
#ifdef __cplusplus
|
263
|
+
}
|
264
|
+
#endif
|
265
|
+
#endif
|
266
|
+
#endif
|
@@ -0,0 +1,61 @@
|
|
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 _TIME_H__S
|
7
|
+
#define _TIME_H__S
|
8
|
+
|
9
|
+
#include <time.h>
|
10
|
+
|
11
|
+
#if defined(MINGW_HAS_SECURE_API)
|
12
|
+
|
13
|
+
#ifdef __cplusplus
|
14
|
+
extern "C" {
|
15
|
+
#endif
|
16
|
+
|
17
|
+
_CRTIMP errno_t __cdecl _ctime32_s(char *_Buf,size_t _SizeInBytes,const __time32_t *_Time);
|
18
|
+
_CRTIMP errno_t __cdecl _gmtime32_s(struct tm *_Tm,const __time32_t *_Time);
|
19
|
+
_CRTIMP errno_t __cdecl _localtime32_s(struct tm *_Tm,const __time32_t *_Time);
|
20
|
+
_CRTIMP errno_t __cdecl _strdate_s(char *_Buf,size_t _SizeInBytes);
|
21
|
+
_CRTIMP errno_t __cdecl _strtime_s(char *_Buf ,size_t _SizeInBytes);
|
22
|
+
#if _INTEGRAL_MAX_BITS >= 64
|
23
|
+
_CRTIMP errno_t __cdecl _ctime64_s(char *_Buf,size_t _SizeInBytes,const __time64_t *_Time);
|
24
|
+
_CRTIMP errno_t __cdecl _gmtime64_s(struct tm *_Tm,const __time64_t *_Time);
|
25
|
+
_CRTIMP errno_t __cdecl _localtime64_s(struct tm *_Tm,const __time64_t *_Time);
|
26
|
+
#endif
|
27
|
+
|
28
|
+
#ifndef _WTIME_S_DEFINED
|
29
|
+
#define _WTIME_S_DEFINED
|
30
|
+
_CRTIMP errno_t __cdecl _wasctime_s(wchar_t *_Buf,size_t _SizeInWords,const struct tm *_Tm);
|
31
|
+
_CRTIMP errno_t __cdecl _wctime32_s(wchar_t *_Buf,size_t _SizeInWords,const __time32_t *_Time);
|
32
|
+
_CRTIMP errno_t __cdecl _wstrdate_s(wchar_t *_Buf,size_t _SizeInWords);
|
33
|
+
_CRTIMP errno_t __cdecl _wstrtime_s(wchar_t *_Buf,size_t _SizeInWords);
|
34
|
+
#if _INTEGRAL_MAX_BITS >= 64
|
35
|
+
_CRTIMP errno_t __cdecl _wctime64_s(wchar_t *_Buf,size_t _SizeInWords,const __time64_t *_Time);
|
36
|
+
#endif
|
37
|
+
|
38
|
+
#if !defined (RC_INVOKED) && !defined (_INC_WTIME_S_INL)
|
39
|
+
#define _INC_WTIME_S_INL
|
40
|
+
#ifdef _USE_32BIT_TIME_T
|
41
|
+
__CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer,size_t _SizeInWords,const time_t *_Time) { return _wctime32_s(_Buffer,_SizeInWords,_Time); }
|
42
|
+
#else
|
43
|
+
__CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer,size_t _SizeInWords,const time_t *_Time) { return _wctime64_s(_Buffer,_SizeInWords,_Time); }
|
44
|
+
#endif
|
45
|
+
#endif
|
46
|
+
#endif
|
47
|
+
|
48
|
+
#ifndef RC_INVOKED
|
49
|
+
#ifdef _USE_32BIT_TIME_T
|
50
|
+
__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime32_s(_Tm,_Time); }
|
51
|
+
#else
|
52
|
+
__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime64_s(_Tm,_Time); }
|
53
|
+
#endif
|
54
|
+
#endif
|
55
|
+
|
56
|
+
#ifdef __cplusplus
|
57
|
+
}
|
58
|
+
#endif
|
59
|
+
|
60
|
+
#endif
|
61
|
+
#endif
|