@xnetx/tinyc-native-x86_64-linux-gnu 0.0.0-stage → 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.
Files changed (200) hide show
  1. package/natives/x86_64-linux-gnu/toolchain/aarch64-linux-android/tinyc +0 -0
  2. package/natives/x86_64-linux-gnu/toolchain/aarch64-linux-gnu/tinyc +0 -0
  3. package/natives/x86_64-linux-gnu/toolchain/riscv64-linux-gnu/tinyc +0 -0
  4. package/natives/x86_64-linux-gnu/toolchain/x86_64-linux-android/tinyc +0 -0
  5. package/natives/x86_64-linux-gnu/toolchain/x86_64-linux-gnu/tinyc +0 -0
  6. package/natives/x86_64-linux-gnu/toolchain/x86_64-w64-mingw32/tinyc +0 -0
  7. package/package.json +15 -4
  8. package/packaging-manifest.json +197 -0
  9. package/sysroot/aarch64-linux-android/include/libtcc.h +116 -0
  10. package/sysroot/aarch64-linux-android/include/tinyc_io.h +123 -0
  11. package/sysroot/aarch64-linux-android/lib/tcc/include/float.h +75 -0
  12. package/sysroot/aarch64-linux-android/lib/tcc/include/stdalign.h +16 -0
  13. package/sysroot/aarch64-linux-android/lib/tcc/include/stdarg.h +14 -0
  14. package/sysroot/aarch64-linux-android/lib/tcc/include/stdatomic.h +171 -0
  15. package/sysroot/aarch64-linux-android/lib/tcc/include/stdbool.h +11 -0
  16. package/sysroot/aarch64-linux-android/lib/tcc/include/stddef.h +39 -0
  17. package/sysroot/aarch64-linux-android/lib/tcc/include/stdnoreturn.h +7 -0
  18. package/sysroot/aarch64-linux-android/lib/tcc/include/tccdefs.h +338 -0
  19. package/sysroot/aarch64-linux-android/lib/tcc/include/tcclib.h +82 -0
  20. package/sysroot/aarch64-linux-android/lib/tcc/include/tgmath.h +89 -0
  21. package/sysroot/aarch64-linux-android/lib/tcc/include/varargs.h +12 -0
  22. package/sysroot/aarch64-linux-android/lib/tcc/libtcc1.a +0 -0
  23. package/sysroot/aarch64-linux-android/manifest.json +17 -0
  24. package/sysroot/aarch64-linux-gnu/include/libtcc.h +116 -0
  25. package/sysroot/aarch64-linux-gnu/include/tinyc_io.h +123 -0
  26. package/sysroot/aarch64-linux-gnu/lib/tcc/include/float.h +75 -0
  27. package/sysroot/aarch64-linux-gnu/lib/tcc/include/stdalign.h +16 -0
  28. package/sysroot/aarch64-linux-gnu/lib/tcc/include/stdarg.h +14 -0
  29. package/sysroot/aarch64-linux-gnu/lib/tcc/include/stdatomic.h +171 -0
  30. package/sysroot/aarch64-linux-gnu/lib/tcc/include/stdbool.h +11 -0
  31. package/sysroot/aarch64-linux-gnu/lib/tcc/include/stddef.h +39 -0
  32. package/sysroot/aarch64-linux-gnu/lib/tcc/include/stdnoreturn.h +7 -0
  33. package/sysroot/aarch64-linux-gnu/lib/tcc/include/tccdefs.h +338 -0
  34. package/sysroot/aarch64-linux-gnu/lib/tcc/include/tcclib.h +82 -0
  35. package/sysroot/aarch64-linux-gnu/lib/tcc/include/tgmath.h +89 -0
  36. package/sysroot/aarch64-linux-gnu/lib/tcc/include/varargs.h +12 -0
  37. package/sysroot/aarch64-linux-gnu/lib/tcc/libtcc1.a +0 -0
  38. package/sysroot/aarch64-linux-gnu/manifest.json +15 -0
  39. package/sysroot/riscv64-linux-gnu/include/libtcc.h +116 -0
  40. package/sysroot/riscv64-linux-gnu/include/tinyc_io.h +123 -0
  41. package/sysroot/riscv64-linux-gnu/lib/tcc/include/float.h +75 -0
  42. package/sysroot/riscv64-linux-gnu/lib/tcc/include/stdalign.h +16 -0
  43. package/sysroot/riscv64-linux-gnu/lib/tcc/include/stdarg.h +14 -0
  44. package/sysroot/riscv64-linux-gnu/lib/tcc/include/stdatomic.h +171 -0
  45. package/sysroot/riscv64-linux-gnu/lib/tcc/include/stdbool.h +11 -0
  46. package/sysroot/riscv64-linux-gnu/lib/tcc/include/stddef.h +39 -0
  47. package/sysroot/riscv64-linux-gnu/lib/tcc/include/stdnoreturn.h +7 -0
  48. package/sysroot/riscv64-linux-gnu/lib/tcc/include/tccdefs.h +338 -0
  49. package/sysroot/riscv64-linux-gnu/lib/tcc/include/tcclib.h +82 -0
  50. package/sysroot/riscv64-linux-gnu/lib/tcc/include/tgmath.h +89 -0
  51. package/sysroot/riscv64-linux-gnu/lib/tcc/include/varargs.h +12 -0
  52. package/sysroot/riscv64-linux-gnu/lib/tcc/libtcc1.a +0 -0
  53. package/sysroot/riscv64-linux-gnu/manifest.json +15 -0
  54. package/sysroot/x86_64-linux-android/include/libtcc.h +116 -0
  55. package/sysroot/x86_64-linux-android/include/tinyc_io.h +123 -0
  56. package/sysroot/x86_64-linux-android/lib/libtcc.a +0 -0
  57. package/sysroot/x86_64-linux-android/lib/tcc/bcheck.o +0 -0
  58. package/sysroot/x86_64-linux-android/lib/tcc/bcheck_run.o +0 -0
  59. package/sysroot/x86_64-linux-android/lib/tcc/bt-exe.o +0 -0
  60. package/sysroot/x86_64-linux-android/lib/tcc/bt-log.o +0 -0
  61. package/sysroot/x86_64-linux-android/lib/tcc/include/float.h +75 -0
  62. package/sysroot/x86_64-linux-android/lib/tcc/include/stdalign.h +16 -0
  63. package/sysroot/x86_64-linux-android/lib/tcc/include/stdarg.h +14 -0
  64. package/sysroot/x86_64-linux-android/lib/tcc/include/stdatomic.h +171 -0
  65. package/sysroot/x86_64-linux-android/lib/tcc/include/stdbool.h +11 -0
  66. package/sysroot/x86_64-linux-android/lib/tcc/include/stddef.h +39 -0
  67. package/sysroot/x86_64-linux-android/lib/tcc/include/stdnoreturn.h +7 -0
  68. package/sysroot/x86_64-linux-android/lib/tcc/include/tccdefs.h +338 -0
  69. package/sysroot/x86_64-linux-android/lib/tcc/include/tcclib.h +82 -0
  70. package/sysroot/x86_64-linux-android/lib/tcc/include/tgmath.h +89 -0
  71. package/sysroot/x86_64-linux-android/lib/tcc/include/varargs.h +12 -0
  72. package/sysroot/x86_64-linux-android/lib/tcc/libtcc1.a +0 -0
  73. package/sysroot/x86_64-linux-android/lib/tcc/runmain.o +0 -0
  74. package/sysroot/x86_64-linux-android/manifest.json +17 -0
  75. package/sysroot/x86_64-linux-gnu/include/libtcc.h +116 -0
  76. package/sysroot/x86_64-linux-gnu/include/tinyc_io.h +123 -0
  77. package/sysroot/x86_64-linux-gnu/lib/libtcc.a +0 -0
  78. package/sysroot/x86_64-linux-gnu/lib/tcc/bcheck.o +0 -0
  79. package/sysroot/x86_64-linux-gnu/lib/tcc/bcheck_run.o +0 -0
  80. package/sysroot/x86_64-linux-gnu/lib/tcc/bt-exe.o +0 -0
  81. package/sysroot/x86_64-linux-gnu/lib/tcc/bt-log.o +0 -0
  82. package/sysroot/x86_64-linux-gnu/lib/tcc/include/float.h +75 -0
  83. package/sysroot/x86_64-linux-gnu/lib/tcc/include/stdalign.h +16 -0
  84. package/sysroot/x86_64-linux-gnu/lib/tcc/include/stdarg.h +14 -0
  85. package/sysroot/x86_64-linux-gnu/lib/tcc/include/stdatomic.h +171 -0
  86. package/sysroot/x86_64-linux-gnu/lib/tcc/include/stdbool.h +11 -0
  87. package/sysroot/x86_64-linux-gnu/lib/tcc/include/stddef.h +39 -0
  88. package/sysroot/x86_64-linux-gnu/lib/tcc/include/stdnoreturn.h +7 -0
  89. package/sysroot/x86_64-linux-gnu/lib/tcc/include/tccdefs.h +338 -0
  90. package/sysroot/x86_64-linux-gnu/lib/tcc/include/tcclib.h +82 -0
  91. package/sysroot/x86_64-linux-gnu/lib/tcc/include/tgmath.h +89 -0
  92. package/sysroot/x86_64-linux-gnu/lib/tcc/include/varargs.h +12 -0
  93. package/sysroot/x86_64-linux-gnu/lib/tcc/libtcc1.a +0 -0
  94. package/sysroot/x86_64-linux-gnu/lib/tcc/runmain.o +0 -0
  95. package/sysroot/x86_64-linux-gnu/manifest.json +15 -0
  96. package/sysroot/x86_64-w64-mingw32/include/libtcc.h +116 -0
  97. package/sysroot/x86_64-w64-mingw32/include/tinyc_io.h +123 -0
  98. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/_mingw.h +171 -0
  99. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/assert.h +62 -0
  100. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/conio.h +409 -0
  101. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/ctype.h +281 -0
  102. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dir.h +31 -0
  103. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/direct.h +68 -0
  104. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dirent.h +135 -0
  105. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dos.h +55 -0
  106. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/errno.h +75 -0
  107. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/excpt.h +123 -0
  108. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fcntl.h +52 -0
  109. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fenv.h +108 -0
  110. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/float.h +75 -0
  111. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/inttypes.h +297 -0
  112. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/io.h +418 -0
  113. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/iso646.h +36 -0
  114. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/limits.h +116 -0
  115. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/locale.h +91 -0
  116. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/malloc.h +181 -0
  117. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/math.h +497 -0
  118. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/mem.h +13 -0
  119. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/memory.h +40 -0
  120. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/process.h +176 -0
  121. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/conio_s.h +42 -0
  122. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/crtdbg_s.h +19 -0
  123. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/io_s.h +33 -0
  124. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/mbstring_s.h +52 -0
  125. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/search_s.h +25 -0
  126. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stdio_s.h +145 -0
  127. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stdlib_s.h +67 -0
  128. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stralign_s.h +30 -0
  129. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/string_s.h +41 -0
  130. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/sys/timeb_s.h +34 -0
  131. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/tchar_s.h +266 -0
  132. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/time_s.h +61 -0
  133. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/wchar_s.h +128 -0
  134. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/setjmp.h +199 -0
  135. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/share.h +28 -0
  136. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/signal.h +63 -0
  137. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdalign.h +16 -0
  138. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdarg.h +14 -0
  139. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdatomic.h +171 -0
  140. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdbool.h +11 -0
  141. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stddef.h +39 -0
  142. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdint.h +212 -0
  143. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdio.h +429 -0
  144. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdlib.h +606 -0
  145. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdnoreturn.h +7 -0
  146. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/string.h +164 -0
  147. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/fcntl.h +13 -0
  148. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/file.h +14 -0
  149. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/locking.h +30 -0
  150. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/stat.h +290 -0
  151. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/time.h +69 -0
  152. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/timeb.h +133 -0
  153. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/types.h +123 -0
  154. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/unistd.h +14 -0
  155. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/utime.h +146 -0
  156. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tcc/tcc_libm.h +618 -0
  157. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tccdefs.h +338 -0
  158. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tcclib.h +82 -0
  159. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tchar.h +1102 -0
  160. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tgmath.h +89 -0
  161. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/time.h +287 -0
  162. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/uchar.h +33 -0
  163. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/unistd.h +1 -0
  164. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/vadefs.h +11 -0
  165. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/values.h +4 -0
  166. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/varargs.h +12 -0
  167. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/wchar.h +873 -0
  168. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/wctype.h +172 -0
  169. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/basetsd.h +149 -0
  170. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/basetyps.h +85 -0
  171. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/guiddef.h +156 -0
  172. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/poppack.h +8 -0
  173. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack1.h +8 -0
  174. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack2.h +8 -0
  175. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack4.h +8 -0
  176. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack8.h +8 -0
  177. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/qos.h +72 -0
  178. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/shellapi.h +59 -0
  179. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winbase.h +2966 -0
  180. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/wincon.h +309 -0
  181. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/windef.h +293 -0
  182. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/windows.h +127 -0
  183. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winerror.h +3166 -0
  184. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/wingdi.h +4080 -0
  185. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winnls.h +778 -0
  186. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winnt.h +5994 -0
  187. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winreg.h +272 -0
  188. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winsock2.h +1474 -0
  189. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winuser.h +5652 -0
  190. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winver.h +160 -0
  191. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/ws2ipdef.h +21 -0
  192. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/ws2tcpip.h +391 -0
  193. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/gdi32.def +337 -0
  194. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/kernel32.def +776 -0
  195. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/libtcc1.a +0 -0
  196. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/msvcrt.def +1320 -0
  197. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/user32.def +658 -0
  198. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/ws2_32.def +198 -0
  199. package/sysroot/x86_64-w64-mingw32/manifest.json +15 -0
  200. package/README.md +0 -3
@@ -0,0 +1,199 @@
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_SETJMP
7
+ #define _INC_SETJMP
8
+
9
+ #include <_mingw.h>
10
+
11
+ #pragma pack(push,_CRT_PACKING)
12
+
13
+ #ifdef __cplusplus
14
+ extern "C" {
15
+ #endif
16
+
17
+ #if (defined(_X86_) && !defined(__x86_64))
18
+
19
+ #define _JBLEN 16
20
+ #define _JBTYPE int
21
+
22
+ typedef struct __JUMP_BUFFER {
23
+ unsigned long Ebp;
24
+ unsigned long Ebx;
25
+ unsigned long Edi;
26
+ unsigned long Esi;
27
+ unsigned long Esp;
28
+ unsigned long Eip;
29
+ unsigned long Registration;
30
+ unsigned long TryLevel;
31
+ unsigned long Cookie;
32
+ unsigned long UnwindFunc;
33
+ unsigned long UnwindData[6];
34
+ } _JUMP_BUFFER;
35
+ #elif defined(__ia64__)
36
+ typedef _CRT_ALIGN(16) struct _SETJMP_FLOAT128 {
37
+ __int64 LowPart;
38
+ __int64 HighPart;
39
+ } SETJMP_FLOAT128;
40
+
41
+ #define _JBLEN 33
42
+ typedef SETJMP_FLOAT128 _JBTYPE;
43
+
44
+ typedef struct __JUMP_BUFFER {
45
+
46
+ unsigned long iAReserved[6];
47
+
48
+ unsigned long Registration;
49
+ unsigned long TryLevel;
50
+ unsigned long Cookie;
51
+ unsigned long UnwindFunc;
52
+
53
+ unsigned long UnwindData[6];
54
+
55
+ SETJMP_FLOAT128 FltS0;
56
+ SETJMP_FLOAT128 FltS1;
57
+ SETJMP_FLOAT128 FltS2;
58
+ SETJMP_FLOAT128 FltS3;
59
+ SETJMP_FLOAT128 FltS4;
60
+ SETJMP_FLOAT128 FltS5;
61
+ SETJMP_FLOAT128 FltS6;
62
+ SETJMP_FLOAT128 FltS7;
63
+ SETJMP_FLOAT128 FltS8;
64
+ SETJMP_FLOAT128 FltS9;
65
+ SETJMP_FLOAT128 FltS10;
66
+ SETJMP_FLOAT128 FltS11;
67
+ SETJMP_FLOAT128 FltS12;
68
+ SETJMP_FLOAT128 FltS13;
69
+ SETJMP_FLOAT128 FltS14;
70
+ SETJMP_FLOAT128 FltS15;
71
+ SETJMP_FLOAT128 FltS16;
72
+ SETJMP_FLOAT128 FltS17;
73
+ SETJMP_FLOAT128 FltS18;
74
+ SETJMP_FLOAT128 FltS19;
75
+ __int64 FPSR;
76
+ __int64 StIIP;
77
+ __int64 BrS0;
78
+ __int64 BrS1;
79
+ __int64 BrS2;
80
+ __int64 BrS3;
81
+ __int64 BrS4;
82
+ __int64 IntS0;
83
+ __int64 IntS1;
84
+ __int64 IntS2;
85
+ __int64 IntS3;
86
+ __int64 RsBSP;
87
+ __int64 RsPFS;
88
+ __int64 ApUNAT;
89
+ __int64 ApLC;
90
+ __int64 IntSp;
91
+ __int64 IntNats;
92
+ __int64 Preds;
93
+
94
+ } _JUMP_BUFFER;
95
+ #elif defined(__x86_64)
96
+ typedef _CRT_ALIGN(16) struct _SETJMP_FLOAT128 {
97
+ unsigned __int64 Part[2];
98
+ } SETJMP_FLOAT128;
99
+
100
+ #define _JBLEN 16
101
+ typedef SETJMP_FLOAT128 _JBTYPE;
102
+
103
+ typedef struct _JUMP_BUFFER {
104
+ unsigned __int64 Frame;
105
+ unsigned __int64 Rbx;
106
+ unsigned __int64 Rsp;
107
+ unsigned __int64 Rbp;
108
+ unsigned __int64 Rsi;
109
+ unsigned __int64 Rdi;
110
+ unsigned __int64 R12;
111
+ unsigned __int64 R13;
112
+ unsigned __int64 R14;
113
+ unsigned __int64 R15;
114
+ unsigned __int64 Rip;
115
+ unsigned __int64 Spare;
116
+ SETJMP_FLOAT128 Xmm6;
117
+ SETJMP_FLOAT128 Xmm7;
118
+ SETJMP_FLOAT128 Xmm8;
119
+ SETJMP_FLOAT128 Xmm9;
120
+ SETJMP_FLOAT128 Xmm10;
121
+ SETJMP_FLOAT128 Xmm11;
122
+ SETJMP_FLOAT128 Xmm12;
123
+ SETJMP_FLOAT128 Xmm13;
124
+ SETJMP_FLOAT128 Xmm14;
125
+ SETJMP_FLOAT128 Xmm15;
126
+ } _JUMP_BUFFER;
127
+ #elif defined(_ARM_)
128
+
129
+ #define _JBLEN 28
130
+ #define _JBTYPE int
131
+
132
+ typedef struct __JUMP_BUFFER {
133
+ unsigned long Frame;
134
+ unsigned long R4;
135
+ unsigned long R5;
136
+ unsigned long R6;
137
+ unsigned long R7;
138
+ unsigned long R8;
139
+ unsigned long R9;
140
+ unsigned long R10;
141
+ unsigned long R11;
142
+ unsigned long Sp;
143
+ unsigned long Pc;
144
+ unsigned long Fpscr;
145
+ unsigned long long D[8];
146
+ } _JUMP_BUFFER;
147
+ #elif defined(_ARM64_)
148
+
149
+ #define _JBLEN 24
150
+ #define _JBTYPE unsigned __int64
151
+
152
+ typedef struct __JUMP_BUFFER {
153
+ unsigned __int64 Frame;
154
+ unsigned __int64 Reserved;
155
+ unsigned __int64 X19;
156
+ unsigned __int64 X20;
157
+ unsigned __int64 X21;
158
+ unsigned __int64 X22;
159
+ unsigned __int64 X23;
160
+ unsigned __int64 X24;
161
+ unsigned __int64 X25;
162
+ unsigned __int64 X26;
163
+ unsigned __int64 X27;
164
+ unsigned __int64 X28;
165
+ unsigned __int64 Fp;
166
+ unsigned __int64 Lr;
167
+ unsigned __int64 Sp;
168
+ unsigned long Fpcr;
169
+ unsigned long Fpsr;
170
+ double D[8];
171
+ } _JUMP_BUFFER;
172
+ #else
173
+ #define _JBLEN 1
174
+ #define _JBTYPE int
175
+ #endif
176
+ #ifndef _JMP_BUF_DEFINED
177
+ typedef _JBTYPE jmp_buf[_JBLEN];
178
+ #define _JMP_BUF_DEFINED
179
+ #endif
180
+
181
+ #pragma pack(pop)
182
+
183
+ #if defined __aarch64__
184
+ int _setjmpex(jmp_buf _Buf, void *frame);
185
+ #define setjmp(BUF) _setjmpex((BUF), (char*)__builtin_frame_address(0) + 224)
186
+ #elif defined __x86_64__
187
+ int _setjmp(jmp_buf _Buf, void *frame);
188
+ #define setjmp(BUF) _setjmp((BUF), __builtin_frame_address(0))
189
+ #else /* __i386__ */
190
+ int _setjmp(jmp_buf _Buf);
191
+ #define setjmp _setjmp
192
+ #endif
193
+
194
+ __declspec(noreturn) void longjmp(jmp_buf _Buf,int _Value);
195
+
196
+ #ifdef __cplusplus
197
+ }
198
+ #endif
199
+ #endif
@@ -0,0 +1,28 @@
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_SHARE
7
+ #define _INC_SHARE
8
+
9
+ #ifndef _WIN32
10
+ #error Only Win32 target is supported!
11
+ #endif
12
+
13
+ #define _SH_COMPAT 0x00
14
+ #define _SH_DENYRW 0x10
15
+ #define _SH_DENYWR 0x20
16
+ #define _SH_DENYRD 0x30
17
+ #define _SH_DENYNO 0x40
18
+ #define _SH_SECURE 0x80
19
+
20
+ #ifndef NO_OLDNAMES
21
+ #define SH_COMPAT _SH_COMPAT
22
+ #define SH_DENYRW _SH_DENYRW
23
+ #define SH_DENYWR _SH_DENYWR
24
+ #define SH_DENYRD _SH_DENYRD
25
+ #define SH_DENYNO _SH_DENYNO
26
+ #endif
27
+
28
+ #endif
@@ -0,0 +1,63 @@
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_SIGNAL
7
+ #define _INC_SIGNAL
8
+
9
+ #include <_mingw.h>
10
+
11
+ #ifdef __cplusplus
12
+ extern "C" {
13
+ #endif
14
+
15
+ #ifndef _SIG_ATOMIC_T_DEFINED
16
+ #define _SIG_ATOMIC_T_DEFINED
17
+ typedef int sig_atomic_t;
18
+ #endif
19
+
20
+ #define NSIG 23
21
+
22
+ #define SIGHUP 1 /* hangup */
23
+ #define SIGINT 2
24
+ #define SIGQUIT 3 /* quit */
25
+ #define SIGILL 4
26
+ #define SIGTRAP 5 /* trace trap (not reset when caught) */
27
+ #define SIGIOT 6 /* IOT instruction */
28
+ #define SIGABRT 6 /* used by abort, replace SIGIOT in the future */
29
+ #define SIGEMT 7 /* EMT instruction */
30
+ #define SIGFPE 8
31
+ #define SIGKILL 9 /* kill (cannot be caught or ignored) */
32
+ #define SIGBUS 10 /* bus error */
33
+ #define SIGSEGV 11
34
+ #define SIGSYS 12 /* bad argument to system call */
35
+ #define SIGPIPE 13 /* write on a pipe with no one to read it */
36
+ #ifdef __USE_MINGW_ALARM
37
+ #define SIGALRM 14 /* alarm clock */
38
+ #endif
39
+ #define SIGTERM 15
40
+ #define SIGBREAK 21
41
+ #define SIGABRT2 22
42
+
43
+ #define SIGABRT_COMPAT 6
44
+
45
+ typedef void (*__p_sig_fn_t)(int);
46
+
47
+ #define SIG_DFL (__p_sig_fn_t)0
48
+ #define SIG_IGN (__p_sig_fn_t)1
49
+ #define SIG_GET (__p_sig_fn_t)2
50
+ #define SIG_SGE (__p_sig_fn_t)3
51
+ #define SIG_ACK (__p_sig_fn_t)4
52
+ #define SIG_ERR (__p_sig_fn_t)-1
53
+
54
+ extern void **__cdecl __pxcptinfoptrs(void);
55
+ #define _pxcptinfoptrs (*__pxcptinfoptrs())
56
+
57
+ __p_sig_fn_t __cdecl signal(int _SigNum,__p_sig_fn_t _Func);
58
+ int __cdecl raise(int _SigNum);
59
+
60
+ #ifdef __cplusplus
61
+ }
62
+ #endif
63
+ #endif
@@ -0,0 +1,16 @@
1
+ #ifndef _STDALIGN_H
2
+ #define _STDALIGN_H
3
+
4
+ #if __STDC_VERSION__ < 201112L && (defined(__GNUC__) || defined(__TINYC__))
5
+ # define _Alignas(t) __attribute__((__aligned__(t)))
6
+ # define _Alignof(t) __alignof__(t)
7
+ #endif
8
+
9
+ #define alignas _Alignas
10
+ #define alignof _Alignof
11
+
12
+ #define __alignas_is_defined 1
13
+ #define __alignof_is_defined 1
14
+
15
+ #endif /* _STDALIGN_H */
16
+
@@ -0,0 +1,14 @@
1
+ #ifndef _STDARG_H
2
+ #define _STDARG_H
3
+
4
+ typedef __builtin_va_list va_list;
5
+ #define va_start __builtin_va_start
6
+ #define va_arg __builtin_va_arg
7
+ #define va_copy __builtin_va_copy
8
+ #define va_end __builtin_va_end
9
+
10
+ /* fix a buggy dependency on GCC in libio.h */
11
+ typedef va_list __gnuc_va_list;
12
+ #define _VA_LIST_DEFINED
13
+
14
+ #endif /* _STDARG_H */
@@ -0,0 +1,171 @@
1
+ /* This file is derived from clang's stdatomic.h */
2
+
3
+ /*===---- stdatomic.h - Standard header for atomic types and operations -----===
4
+ *
5
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
6
+ * See https://llvm.org/LICENSE.txt for license information.
7
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8
+ *
9
+ *===-----------------------------------------------------------------------===
10
+ */
11
+
12
+ #ifndef _STDATOMIC_H
13
+ #define _STDATOMIC_H
14
+
15
+ #include <stddef.h>
16
+ #include <stdint.h>
17
+ #include <stdbool.h>
18
+
19
+ #define __ATOMIC_RELAXED 0
20
+ #define __ATOMIC_CONSUME 1
21
+ #define __ATOMIC_ACQUIRE 2
22
+ #define __ATOMIC_RELEASE 3
23
+ #define __ATOMIC_ACQ_REL 4
24
+ #define __ATOMIC_SEQ_CST 5
25
+
26
+ /* Memory ordering */
27
+ typedef enum {
28
+ memory_order_relaxed = __ATOMIC_RELAXED,
29
+ memory_order_consume = __ATOMIC_CONSUME,
30
+ memory_order_acquire = __ATOMIC_ACQUIRE,
31
+ memory_order_release = __ATOMIC_RELEASE,
32
+ memory_order_acq_rel = __ATOMIC_ACQ_REL,
33
+ memory_order_seq_cst = __ATOMIC_SEQ_CST,
34
+ } memory_order;
35
+
36
+ /* Atomic typedefs */
37
+ typedef _Atomic(_Bool) atomic_bool;
38
+ typedef _Atomic(char) atomic_char;
39
+ typedef _Atomic(signed char) atomic_schar;
40
+ typedef _Atomic(unsigned char) atomic_uchar;
41
+ typedef _Atomic(short) atomic_short;
42
+ typedef _Atomic(unsigned short) atomic_ushort;
43
+ typedef _Atomic(int) atomic_int;
44
+ typedef _Atomic(unsigned int) atomic_uint;
45
+ typedef _Atomic(long) atomic_long;
46
+ typedef _Atomic(unsigned long) atomic_ulong;
47
+ typedef _Atomic(long long) atomic_llong;
48
+ typedef _Atomic(unsigned long long) atomic_ullong;
49
+ typedef _Atomic(uint_least16_t) atomic_char16_t;
50
+ typedef _Atomic(uint_least32_t) atomic_char32_t;
51
+ typedef _Atomic(wchar_t) atomic_wchar_t;
52
+ typedef _Atomic(int_least8_t) atomic_int_least8_t;
53
+ typedef _Atomic(uint_least8_t) atomic_uint_least8_t;
54
+ typedef _Atomic(int_least16_t) atomic_int_least16_t;
55
+ typedef _Atomic(uint_least16_t) atomic_uint_least16_t;
56
+ typedef _Atomic(int_least32_t) atomic_int_least32_t;
57
+ typedef _Atomic(uint_least32_t) atomic_uint_least32_t;
58
+ typedef _Atomic(int_least64_t) atomic_int_least64_t;
59
+ typedef _Atomic(uint_least64_t) atomic_uint_least64_t;
60
+ typedef _Atomic(int_fast8_t) atomic_int_fast8_t;
61
+ typedef _Atomic(uint_fast8_t) atomic_uint_fast8_t;
62
+ typedef _Atomic(int_fast16_t) atomic_int_fast16_t;
63
+ typedef _Atomic(uint_fast16_t) atomic_uint_fast16_t;
64
+ typedef _Atomic(int_fast32_t) atomic_int_fast32_t;
65
+ typedef _Atomic(uint_fast32_t) atomic_uint_fast32_t;
66
+ typedef _Atomic(int_fast64_t) atomic_int_fast64_t;
67
+ typedef _Atomic(uint_fast64_t) atomic_uint_fast64_t;
68
+ typedef _Atomic(intptr_t) atomic_intptr_t;
69
+ typedef _Atomic(uintptr_t) atomic_uintptr_t;
70
+ typedef _Atomic(size_t) atomic_size_t;
71
+ typedef _Atomic(ptrdiff_t) atomic_ptrdiff_t;
72
+ typedef _Atomic(intmax_t) atomic_intmax_t;
73
+ typedef _Atomic(uintmax_t) atomic_uintmax_t;
74
+
75
+ /* Atomic flag */
76
+ typedef struct {
77
+ atomic_bool value;
78
+ } atomic_flag;
79
+
80
+ #define ATOMIC_FLAG_INIT {0}
81
+ #define ATOMIC_VAR_INIT(value) (value)
82
+
83
+ /* Generic routines */
84
+ #define atomic_init(object, desired) \
85
+ atomic_store_explicit(object, desired, __ATOMIC_RELAXED)
86
+
87
+ #define __atomic_store_n(ptr, val, order) \
88
+ ({ __typeof__ ((void)0, *(ptr)) __val = (val); \
89
+ __atomic_store((ptr), &__val, (order)); })
90
+ #define atomic_store_explicit(object, desired, order) \
91
+ ({ __typeof__ (object) ptr = (object); \
92
+ __typeof__ (*ptr) tmp = (desired); \
93
+ __atomic_store (ptr, &tmp, (order)); \
94
+ })
95
+ #define atomic_store(object, desired) \
96
+ atomic_store_explicit (object, desired, __ATOMIC_SEQ_CST)
97
+
98
+ #define __atomic_load_n(ptr, order) \
99
+ ({ typeof(*(ptr)) __val; \
100
+ __atomic_load((ptr), &__val, (order)); \
101
+ __val; })
102
+ #define atomic_load_explicit(object, order) \
103
+ ({ __typeof__ (object) ptr = (object); \
104
+ __typeof__ ((void)0,*ptr) tmp; \
105
+ __atomic_load (ptr, &tmp, (order)); \
106
+ tmp; \
107
+ })
108
+ #define atomic_load(object) atomic_load_explicit (object, __ATOMIC_SEQ_CST)
109
+
110
+ #define atomic_exchange_explicit(object, desired, order) \
111
+ ({ __typeof__ (object) ptr = (object); \
112
+ __typeof__ (*ptr) val = (desired); \
113
+ __typeof__ (*ptr) tmp; \
114
+ __atomic_exchange (ptr, &val, &tmp, (order)); \
115
+ tmp; \
116
+ })
117
+ #define atomic_exchange(object, desired) \
118
+ atomic_exchange_explicit (object, desired, __ATOMIC_SEQ_CST)
119
+ #define __atomic_compare_exchange_n(ptr, expected, desired, weak, success, failure) \
120
+ ({ typeof(*(ptr)) __desired = (desired); \
121
+ __atomic_compare_exchange((ptr), (expected), &__desired, \
122
+ (weak), (success), (failure)); })
123
+ #define atomic_compare_exchange_strong_explicit(object, expected, desired, success, failure) \
124
+ ({ __typeof__ (object) ptr = (object); \
125
+ __typeof__ (*ptr) tmp = desired; \
126
+ __atomic_compare_exchange(ptr, expected, &tmp, 0, success, failure); \
127
+ })
128
+ #define atomic_compare_exchange_strong(object, expected, desired) \
129
+ atomic_compare_exchange_strong_explicit (object, expected, desired, \
130
+ __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)
131
+ #define atomic_compare_exchange_weak_explicit(object, expected, desired, success, failure) \
132
+ ({ __typeof__ (object) ptr = (object); \
133
+ __typeof__ (*ptr) tmp = desired; \
134
+ __atomic_compare_exchange(ptr, expected, &tmp, 1, success, failure); \
135
+ })
136
+ #define atomic_compare_exchange_weak(object, expected, desired) \
137
+ atomic_compare_exchange_weak_explicit (object, expected, desired, \
138
+ __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)
139
+
140
+ #define atomic_fetch_add(object, operand) \
141
+ __atomic_fetch_add(object, operand, __ATOMIC_SEQ_CST)
142
+ #define atomic_fetch_add_explicit __atomic_fetch_add
143
+
144
+ #define atomic_fetch_sub(object, operand) \
145
+ __atomic_fetch_sub(object, operand, __ATOMIC_SEQ_CST)
146
+ #define atomic_fetch_sub_explicit __atomic_fetch_sub
147
+
148
+ #define atomic_fetch_or(object, operand) \
149
+ __atomic_fetch_or(object, operand, __ATOMIC_SEQ_CST)
150
+ #define atomic_fetch_or_explicit __atomic_fetch_or
151
+
152
+ #define atomic_fetch_xor(object, operand) \
153
+ __atomic_fetch_xor(object, operand, __ATOMIC_SEQ_CST)
154
+ #define atomic_fetch_xor_explicit __atomic_fetch_xor
155
+
156
+ #define atomic_fetch_and(object, operand) \
157
+ __atomic_fetch_and(object, operand, __ATOMIC_SEQ_CST)
158
+ #define atomic_fetch_and_explicit __atomic_fetch_and
159
+
160
+ extern void atomic_thread_fence (memory_order);
161
+ #define __atomic_thread_fence(order) atomic_thread_fence (order)
162
+ extern void atomic_signal_fence (memory_order);
163
+ #define __atomic_signal_fence(order) atomic_signal_fence(order)
164
+ extern bool __atomic_is_lock_free(size_t size, void *ptr);
165
+ #define atomic_is_lock_free(OBJ) __atomic_is_lock_free (sizeof (*(OBJ)), (OBJ))
166
+
167
+ extern bool atomic_flag_test_and_set(void *object);
168
+ extern bool atomic_flag_test_and_set_explicit(void *object, memory_order order);
169
+ extern void atomic_flag_clear(void *object);
170
+ extern void atomic_flag_clear_explicit(void *object, memory_order order);
171
+ #endif /* _STDATOMIC_H */
@@ -0,0 +1,11 @@
1
+ #ifndef _STDBOOL_H
2
+ #define _STDBOOL_H
3
+
4
+ /* ISOC99 boolean */
5
+
6
+ #define bool _Bool
7
+ #define true 1
8
+ #define false 0
9
+ #define __bool_true_false_are_defined 1
10
+
11
+ #endif /* _STDBOOL_H */
@@ -0,0 +1,39 @@
1
+ #ifndef _STDDEF_H
2
+ #define _STDDEF_H
3
+
4
+ typedef __SIZE_TYPE__ size_t;
5
+ typedef __PTRDIFF_TYPE__ ssize_t;
6
+ typedef __WCHAR_TYPE__ wchar_t;
7
+ typedef __PTRDIFF_TYPE__ ptrdiff_t;
8
+ typedef __PTRDIFF_TYPE__ intptr_t;
9
+ typedef __SIZE_TYPE__ uintptr_t;
10
+
11
+ #if __STDC_VERSION__ >= 201112L
12
+ typedef union { long long __ll; long double __ld; } max_align_t;
13
+ #endif
14
+
15
+ #ifndef NULL
16
+ #define NULL ((void*)0)
17
+ #endif
18
+
19
+ #undef offsetof
20
+ #define offsetof(type, field) __builtin_offsetof(type, field)
21
+
22
+ void *alloca(size_t size);
23
+
24
+ #endif
25
+
26
+ /* Older glibc require a wint_t from <stddef.h> (when requested
27
+ by __need_wint_t, as otherwise stddef.h isn't allowed to
28
+ define this type). Note that this must be outside the normal
29
+ _STDDEF_H guard, so that it works even when we've included the file
30
+ already (without requiring wint_t). Some other libs define _WINT_T
31
+ if they've already provided that type, so we can use that as guard.
32
+ TCC defines __WINT_TYPE__ for us. */
33
+ #if defined (__need_wint_t)
34
+ #ifndef _WINT_T
35
+ #define _WINT_T
36
+ typedef __WINT_TYPE__ wint_t;
37
+ #endif
38
+ #undef __need_wint_t
39
+ #endif