@nativescript/linux 0.0.0-stage → 0.1.0-alpha.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 (238) hide show
  1. package/framework/App_Resources/Linux/app.desktop +8 -0
  2. package/framework/App_Resources/Linux/app.metainfo.xml +15 -0
  3. package/framework/App_Resources/Linux/icon.png +0 -0
  4. package/framework/App_Resources/Linux/images/.gitkeep +0 -0
  5. package/framework/__PROJECT_NAME__/app/.gitkeep +0 -0
  6. package/framework/runtime/x64/metadata-x86_64.bin +0 -0
  7. package/framework/runtime/x64/ns-linux +4 -0
  8. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_builtin_vars.h +121 -0
  9. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_cmath.h +512 -0
  10. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_complex_builtins.h +285 -0
  11. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_device_functions.h +1558 -0
  12. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_intrinsics.h +709 -0
  13. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_libdevice_declares.h +468 -0
  14. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_math.h +348 -0
  15. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_math_forward_declares.h +284 -0
  16. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_runtime_wrapper.h +503 -0
  17. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_texture_intrinsics.h +742 -0
  18. package/framework/tools/x64/lib/clang/17/include/__clang_hip_cmath.h +842 -0
  19. package/framework/tools/x64/lib/clang/17/include/__clang_hip_libdevice_declares.h +353 -0
  20. package/framework/tools/x64/lib/clang/17/include/__clang_hip_math.h +1303 -0
  21. package/framework/tools/x64/lib/clang/17/include/__clang_hip_runtime_wrapper.h +151 -0
  22. package/framework/tools/x64/lib/clang/17/include/__clang_hip_stdlib.h +43 -0
  23. package/framework/tools/x64/lib/clang/17/include/__stddef_max_align_t.h +27 -0
  24. package/framework/tools/x64/lib/clang/17/include/__wmmintrin_aes.h +140 -0
  25. package/framework/tools/x64/lib/clang/17/include/__wmmintrin_pclmul.h +48 -0
  26. package/framework/tools/x64/lib/clang/17/include/adxintrin.h +227 -0
  27. package/framework/tools/x64/lib/clang/17/include/altivec.h +19342 -0
  28. package/framework/tools/x64/lib/clang/17/include/ammintrin.h +183 -0
  29. package/framework/tools/x64/lib/clang/17/include/amxcomplexintrin.h +169 -0
  30. package/framework/tools/x64/lib/clang/17/include/amxfp16intrin.h +58 -0
  31. package/framework/tools/x64/lib/clang/17/include/amxintrin.h +524 -0
  32. package/framework/tools/x64/lib/clang/17/include/arm64intr.h +35 -0
  33. package/framework/tools/x64/lib/clang/17/include/arm_acle.h +782 -0
  34. package/framework/tools/x64/lib/clang/17/include/arm_bf16.h +20 -0
  35. package/framework/tools/x64/lib/clang/17/include/arm_cde.h +410 -0
  36. package/framework/tools/x64/lib/clang/17/include/arm_cmse.h +217 -0
  37. package/framework/tools/x64/lib/clang/17/include/arm_fp16.h +596 -0
  38. package/framework/tools/x64/lib/clang/17/include/arm_mve.h +19187 -0
  39. package/framework/tools/x64/lib/clang/17/include/arm_neon.h +69885 -0
  40. package/framework/tools/x64/lib/clang/17/include/arm_neon_sve_bridge.h +182 -0
  41. package/framework/tools/x64/lib/clang/17/include/arm_sme_draft_spec_subject_to_change.h +642 -0
  42. package/framework/tools/x64/lib/clang/17/include/arm_sve.h +23950 -0
  43. package/framework/tools/x64/lib/clang/17/include/armintr.h +31 -0
  44. package/framework/tools/x64/lib/clang/17/include/avx2intrin.h +5263 -0
  45. package/framework/tools/x64/lib/clang/17/include/avx512bf16intrin.h +282 -0
  46. package/framework/tools/x64/lib/clang/17/include/avx512bitalgintrin.h +83 -0
  47. package/framework/tools/x64/lib/clang/17/include/avx512bwintrin.h +2024 -0
  48. package/framework/tools/x64/lib/clang/17/include/avx512cdintrin.h +123 -0
  49. package/framework/tools/x64/lib/clang/17/include/avx512dqintrin.h +1377 -0
  50. package/framework/tools/x64/lib/clang/17/include/avx512erintrin.h +271 -0
  51. package/framework/tools/x64/lib/clang/17/include/avx512fintrin.h +9775 -0
  52. package/framework/tools/x64/lib/clang/17/include/avx512fp16intrin.h +3350 -0
  53. package/framework/tools/x64/lib/clang/17/include/avx512ifmaintrin.h +68 -0
  54. package/framework/tools/x64/lib/clang/17/include/avx512ifmavlintrin.h +105 -0
  55. package/framework/tools/x64/lib/clang/17/include/avx512pfintrin.h +97 -0
  56. package/framework/tools/x64/lib/clang/17/include/avx512vbmi2intrin.h +357 -0
  57. package/framework/tools/x64/lib/clang/17/include/avx512vbmiintrin.h +105 -0
  58. package/framework/tools/x64/lib/clang/17/include/avx512vbmivlintrin.h +188 -0
  59. package/framework/tools/x64/lib/clang/17/include/avx512vlbf16intrin.h +515 -0
  60. package/framework/tools/x64/lib/clang/17/include/avx512vlbitalgintrin.h +145 -0
  61. package/framework/tools/x64/lib/clang/17/include/avx512vlbwintrin.h +3161 -0
  62. package/framework/tools/x64/lib/clang/17/include/avx512vlcdintrin.h +225 -0
  63. package/framework/tools/x64/lib/clang/17/include/avx512vldqintrin.h +1167 -0
  64. package/framework/tools/x64/lib/clang/17/include/avx512vlfp16intrin.h +2071 -0
  65. package/framework/tools/x64/lib/clang/17/include/avx512vlintrin.h +8431 -0
  66. package/framework/tools/x64/lib/clang/17/include/avx512vlvbmi2intrin.h +689 -0
  67. package/framework/tools/x64/lib/clang/17/include/avx512vlvnniintrin.h +304 -0
  68. package/framework/tools/x64/lib/clang/17/include/avx512vlvp2intersectintrin.h +121 -0
  69. package/framework/tools/x64/lib/clang/17/include/avx512vnniintrin.h +115 -0
  70. package/framework/tools/x64/lib/clang/17/include/avx512vp2intersectintrin.h +77 -0
  71. package/framework/tools/x64/lib/clang/17/include/avx512vpopcntdqintrin.h +54 -0
  72. package/framework/tools/x64/lib/clang/17/include/avx512vpopcntdqvlintrin.h +91 -0
  73. package/framework/tools/x64/lib/clang/17/include/avxifmaintrin.h +177 -0
  74. package/framework/tools/x64/lib/clang/17/include/avxintrin.h +5108 -0
  75. package/framework/tools/x64/lib/clang/17/include/avxneconvertintrin.h +484 -0
  76. package/framework/tools/x64/lib/clang/17/include/avxvnniint16intrin.h +473 -0
  77. package/framework/tools/x64/lib/clang/17/include/avxvnniint8intrin.h +471 -0
  78. package/framework/tools/x64/lib/clang/17/include/avxvnniintrin.h +225 -0
  79. package/framework/tools/x64/lib/clang/17/include/bmi2intrin.h +255 -0
  80. package/framework/tools/x64/lib/clang/17/include/bmiintrin.h +431 -0
  81. package/framework/tools/x64/lib/clang/17/include/builtins.h +16 -0
  82. package/framework/tools/x64/lib/clang/17/include/cet.h +66 -0
  83. package/framework/tools/x64/lib/clang/17/include/cetintrin.h +115 -0
  84. package/framework/tools/x64/lib/clang/17/include/cldemoteintrin.h +36 -0
  85. package/framework/tools/x64/lib/clang/17/include/clflushoptintrin.h +36 -0
  86. package/framework/tools/x64/lib/clang/17/include/clwbintrin.h +38 -0
  87. package/framework/tools/x64/lib/clang/17/include/clzerointrin.h +38 -0
  88. package/framework/tools/x64/lib/clang/17/include/cmpccxaddintrin.h +70 -0
  89. package/framework/tools/x64/lib/clang/17/include/cpuid.h +331 -0
  90. package/framework/tools/x64/lib/clang/17/include/crc32intrin.h +100 -0
  91. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/algorithm +116 -0
  92. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/bits/basic_string.h +9 -0
  93. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/bits/basic_string.tcc +9 -0
  94. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/bits/shared_ptr_base.h +9 -0
  95. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/cmath +90 -0
  96. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/complex +90 -0
  97. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/new +106 -0
  98. package/framework/tools/x64/lib/clang/17/include/emmintrin.h +4775 -0
  99. package/framework/tools/x64/lib/clang/17/include/enqcmdintrin.h +63 -0
  100. package/framework/tools/x64/lib/clang/17/include/f16cintrin.h +162 -0
  101. package/framework/tools/x64/lib/clang/17/include/float.h +168 -0
  102. package/framework/tools/x64/lib/clang/17/include/fma4intrin.h +218 -0
  103. package/framework/tools/x64/lib/clang/17/include/fmaintrin.h +780 -0
  104. package/framework/tools/x64/lib/clang/17/include/fxsrintrin.h +91 -0
  105. package/framework/tools/x64/lib/clang/17/include/gfniintrin.h +194 -0
  106. package/framework/tools/x64/lib/clang/17/include/hexagon_circ_brev_intrinsics.h +298 -0
  107. package/framework/tools/x64/lib/clang/17/include/hexagon_protos.h +8439 -0
  108. package/framework/tools/x64/lib/clang/17/include/hexagon_types.h +2621 -0
  109. package/framework/tools/x64/lib/clang/17/include/hresetintrin.h +49 -0
  110. package/framework/tools/x64/lib/clang/17/include/htmintrin.h +212 -0
  111. package/framework/tools/x64/lib/clang/17/include/htmxlintrin.h +345 -0
  112. package/framework/tools/x64/lib/clang/17/include/hvx_hexagon_protos.h +5183 -0
  113. package/framework/tools/x64/lib/clang/17/include/ia32intrin.h +441 -0
  114. package/framework/tools/x64/lib/clang/17/include/immintrin.h +758 -0
  115. package/framework/tools/x64/lib/clang/17/include/intrin.h +620 -0
  116. package/framework/tools/x64/lib/clang/17/include/inttypes.h +97 -0
  117. package/framework/tools/x64/lib/clang/17/include/invpcidintrin.h +23 -0
  118. package/framework/tools/x64/lib/clang/17/include/iso646.h +27 -0
  119. package/framework/tools/x64/lib/clang/17/include/keylockerintrin.h +530 -0
  120. package/framework/tools/x64/lib/clang/17/include/larchintrin.h +234 -0
  121. package/framework/tools/x64/lib/clang/17/include/limits.h +127 -0
  122. package/framework/tools/x64/lib/clang/17/include/llvm_libc_wrappers/ctype.h +85 -0
  123. package/framework/tools/x64/lib/clang/17/include/llvm_libc_wrappers/inttypes.h +34 -0
  124. package/framework/tools/x64/lib/clang/17/include/llvm_libc_wrappers/stdio.h +34 -0
  125. package/framework/tools/x64/lib/clang/17/include/llvm_libc_wrappers/stdlib.h +42 -0
  126. package/framework/tools/x64/lib/clang/17/include/llvm_libc_wrappers/string.h +37 -0
  127. package/framework/tools/x64/lib/clang/17/include/lwpintrin.h +136 -0
  128. package/framework/tools/x64/lib/clang/17/include/lzcntintrin.h +104 -0
  129. package/framework/tools/x64/lib/clang/17/include/mm3dnow.h +157 -0
  130. package/framework/tools/x64/lib/clang/17/include/mm_malloc.h +67 -0
  131. package/framework/tools/x64/lib/clang/17/include/mmintrin.h +1562 -0
  132. package/framework/tools/x64/lib/clang/17/include/module.modulemap +164 -0
  133. package/framework/tools/x64/lib/clang/17/include/movdirintrin.h +49 -0
  134. package/framework/tools/x64/lib/clang/17/include/msa.h +573 -0
  135. package/framework/tools/x64/lib/clang/17/include/mwaitxintrin.h +62 -0
  136. package/framework/tools/x64/lib/clang/17/include/nmmintrin.h +20 -0
  137. package/framework/tools/x64/lib/clang/17/include/opencl-c-base.h +820 -0
  138. package/framework/tools/x64/lib/clang/17/include/opencl-c.h +18356 -0
  139. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/__clang_openmp_device_functions.h +105 -0
  140. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/cmath +132 -0
  141. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/complex +55 -0
  142. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/complex.h +35 -0
  143. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/complex_cmath.h +388 -0
  144. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/math.h +61 -0
  145. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/new +48 -0
  146. package/framework/tools/x64/lib/clang/17/include/pconfigintrin.h +40 -0
  147. package/framework/tools/x64/lib/clang/17/include/pkuintrin.h +34 -0
  148. package/framework/tools/x64/lib/clang/17/include/pmmintrin.h +300 -0
  149. package/framework/tools/x64/lib/clang/17/include/popcntintrin.h +59 -0
  150. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/bmi2intrin.h +134 -0
  151. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/bmiintrin.h +165 -0
  152. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/emmintrin.h +2269 -0
  153. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/immintrin.h +27 -0
  154. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/mm_malloc.h +45 -0
  155. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/mmintrin.h +1453 -0
  156. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/pmmintrin.h +145 -0
  157. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/smmintrin.h +663 -0
  158. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/tmmintrin.h +453 -0
  159. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/x86gprintrin.h +17 -0
  160. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/x86intrin.h +28 -0
  161. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/xmmintrin.h +1827 -0
  162. package/framework/tools/x64/lib/clang/17/include/prfchiintrin.h +61 -0
  163. package/framework/tools/x64/lib/clang/17/include/prfchwintrin.h +58 -0
  164. package/framework/tools/x64/lib/clang/17/include/ptwriteintrin.h +37 -0
  165. package/framework/tools/x64/lib/clang/17/include/raointintrin.h +203 -0
  166. package/framework/tools/x64/lib/clang/17/include/rdpruintrin.h +57 -0
  167. package/framework/tools/x64/lib/clang/17/include/rdseedintrin.h +105 -0
  168. package/framework/tools/x64/lib/clang/17/include/riscv_ntlh.h +28 -0
  169. package/framework/tools/x64/lib/clang/17/include/rtmintrin.h +45 -0
  170. package/framework/tools/x64/lib/clang/17/include/s390intrin.h +25 -0
  171. package/framework/tools/x64/lib/clang/17/include/serializeintrin.h +30 -0
  172. package/framework/tools/x64/lib/clang/17/include/sgxintrin.h +60 -0
  173. package/framework/tools/x64/lib/clang/17/include/sha512intrin.h +200 -0
  174. package/framework/tools/x64/lib/clang/17/include/shaintrin.h +189 -0
  175. package/framework/tools/x64/lib/clang/17/include/sifive_vector.h +16 -0
  176. package/framework/tools/x64/lib/clang/17/include/sm3intrin.h +238 -0
  177. package/framework/tools/x64/lib/clang/17/include/sm4intrin.h +269 -0
  178. package/framework/tools/x64/lib/clang/17/include/smmintrin.h +2328 -0
  179. package/framework/tools/x64/lib/clang/17/include/stdalign.h +26 -0
  180. package/framework/tools/x64/lib/clang/17/include/stdarg.h +51 -0
  181. package/framework/tools/x64/lib/clang/17/include/stdatomic.h +196 -0
  182. package/framework/tools/x64/lib/clang/17/include/stdbool.h +34 -0
  183. package/framework/tools/x64/lib/clang/17/include/stddef.h +133 -0
  184. package/framework/tools/x64/lib/clang/17/include/stdint.h +979 -0
  185. package/framework/tools/x64/lib/clang/17/include/stdnoreturn.h +29 -0
  186. package/framework/tools/x64/lib/clang/17/include/tbmintrin.h +140 -0
  187. package/framework/tools/x64/lib/clang/17/include/tgmath.h +1368 -0
  188. package/framework/tools/x64/lib/clang/17/include/tmmintrin.h +775 -0
  189. package/framework/tools/x64/lib/clang/17/include/tsxldtrkintrin.h +56 -0
  190. package/framework/tools/x64/lib/clang/17/include/uintrintrin.h +157 -0
  191. package/framework/tools/x64/lib/clang/17/include/unwind.h +332 -0
  192. package/framework/tools/x64/lib/clang/17/include/vadefs.h +51 -0
  193. package/framework/tools/x64/lib/clang/17/include/vaesintrin.h +85 -0
  194. package/framework/tools/x64/lib/clang/17/include/varargs.h +12 -0
  195. package/framework/tools/x64/lib/clang/17/include/vecintrin.h +11127 -0
  196. package/framework/tools/x64/lib/clang/17/include/velintrin.h +71 -0
  197. package/framework/tools/x64/lib/clang/17/include/velintrin_approx.h +120 -0
  198. package/framework/tools/x64/lib/clang/17/include/velintrin_gen.h +1257 -0
  199. package/framework/tools/x64/lib/clang/17/include/vpclmulqdqintrin.h +30 -0
  200. package/framework/tools/x64/lib/clang/17/include/waitpkgintrin.h +42 -0
  201. package/framework/tools/x64/lib/clang/17/include/wasm_simd128.h +1997 -0
  202. package/framework/tools/x64/lib/clang/17/include/wbnoinvdintrin.h +24 -0
  203. package/framework/tools/x64/lib/clang/17/include/wmmintrin.h +23 -0
  204. package/framework/tools/x64/lib/clang/17/include/x86gprintrin.h +65 -0
  205. package/framework/tools/x64/lib/clang/17/include/x86intrin.h +67 -0
  206. package/framework/tools/x64/lib/clang/17/include/xmmintrin.h +3017 -0
  207. package/framework/tools/x64/lib/clang/17/include/xopintrin.h +770 -0
  208. package/framework/tools/x64/lib/clang/17/include/xsavecintrin.h +84 -0
  209. package/framework/tools/x64/lib/clang/17/include/xsaveintrin.h +63 -0
  210. package/framework/tools/x64/lib/clang/17/include/xsaveoptintrin.h +34 -0
  211. package/framework/tools/x64/lib/clang/17/include/xsavesintrin.h +44 -0
  212. package/framework/tools/x64/lib/clang/17/include/xtestintrin.h +27 -0
  213. package/framework/tools/x64/metadata-generator +4 -0
  214. package/framework/tools/x64/ns-bundle +0 -0
  215. package/framework/tools/x64/ns-metadata-filter +0 -0
  216. package/framework/typings/c!EGL.d.ts +431 -0
  217. package/framework/typings/c!GLES.d.ts +5002 -0
  218. package/framework/typings/c!GLib.d.ts +14488 -0
  219. package/framework/typings/c!Gtk.d.ts +17630 -0
  220. package/framework/typings/c!X11.d.ts +7054 -0
  221. package/framework/typings/c!_Builtin_intrinsics.d.ts +106 -0
  222. package/framework/typings/c!_Builtin_stddef_max_align_t.d.ts +6 -0
  223. package/framework/typings/c!cairo.d.ts +1248 -0
  224. package/framework/typings/c!fontconfig.d.ts +819 -0
  225. package/framework/typings/c!freetype.d.ts +1068 -0
  226. package/framework/typings/c!gdk_pixbuf.d.ts +326 -0
  227. package/framework/typings/c!graphene.d.ts +320 -0
  228. package/framework/typings/c!harfbuzz.d.ts +1292 -0
  229. package/framework/typings/c!icu.d.ts +3330 -0
  230. package/framework/typings/c!libc.d.ts +11639 -0
  231. package/framework/typings/c!libxml2.d.ts +7029 -0
  232. package/framework/typings/c!pango.d.ts +2225 -0
  233. package/framework/typings/c!uuid.d.ts +68 -0
  234. package/framework/typings/c!zlib.d.ts +276 -0
  235. package/framework/typings/index.d.ts +10 -0
  236. package/framework/typings/linux-runtime.d.ts +90 -0
  237. package/package.json +9 -4
  238. package/README.md +0 -3
@@ -0,0 +1,26 @@
1
+ /*===---- stdalign.h - Standard header for alignment ------------------------===
2
+ *
3
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ * See https://llvm.org/LICENSE.txt for license information.
5
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ *
7
+ *===-----------------------------------------------------------------------===
8
+ */
9
+
10
+ #ifndef __STDALIGN_H
11
+ #define __STDALIGN_H
12
+
13
+ /* FIXME: This is using the placeholder dates Clang produces for these macros
14
+ in C2x mode; switch to the correct values once they've been published. */
15
+ #if defined(__cplusplus) || \
16
+ (defined(__STDC_VERSION__) && __STDC_VERSION__ < 202000L)
17
+ #ifndef __cplusplus
18
+ #define alignas _Alignas
19
+ #define alignof _Alignof
20
+ #endif
21
+
22
+ #define __alignas_is_defined 1
23
+ #define __alignof_is_defined 1
24
+ #endif /* __STDC_VERSION__ */
25
+
26
+ #endif /* __STDALIGN_H */
@@ -0,0 +1,51 @@
1
+ /*===---- stdarg.h - Variable argument handling ----------------------------===
2
+ *
3
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ * See https://llvm.org/LICENSE.txt for license information.
5
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ *
7
+ *===-----------------------------------------------------------------------===
8
+ */
9
+
10
+ #ifndef __STDARG_H
11
+
12
+ #ifndef __GNUC_VA_LIST
13
+ #define __GNUC_VA_LIST
14
+ typedef __builtin_va_list __gnuc_va_list;
15
+ #endif
16
+
17
+ #ifdef __need___va_list
18
+ #undef __need___va_list
19
+ #else
20
+ #define __STDARG_H
21
+ #ifndef _VA_LIST
22
+ typedef __builtin_va_list va_list;
23
+ #define _VA_LIST
24
+ #endif
25
+
26
+ /* FIXME: This is using the placeholder dates Clang produces for these macros
27
+ in C2x mode; switch to the correct values once they've been published. */
28
+ #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L
29
+ /* C2x does not require the second parameter for va_start. */
30
+ #define va_start(ap, ...) __builtin_va_start(ap, 0)
31
+ #else
32
+ /* Versions before C2x do require the second parameter. */
33
+ #define va_start(ap, param) __builtin_va_start(ap, param)
34
+ #endif
35
+ #define va_end(ap) __builtin_va_end(ap)
36
+ #define va_arg(ap, type) __builtin_va_arg(ap, type)
37
+
38
+ /* GCC always defines __va_copy, but does not define va_copy unless in c99 mode
39
+ * or -ansi is not specified, since it was not part of C90.
40
+ */
41
+ #define __va_copy(d,s) __builtin_va_copy(d,s)
42
+
43
+ #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
44
+ (defined(__cplusplus) && __cplusplus >= 201103L) || \
45
+ !defined(__STRICT_ANSI__)
46
+ #define va_copy(dest, src) __builtin_va_copy(dest, src)
47
+ #endif
48
+
49
+ #endif /* __STDARG_H */
50
+
51
+ #endif /* not __STDARG_H */
@@ -0,0 +1,196 @@
1
+ /*===---- stdatomic.h - Standard header for atomic types and operations -----===
2
+ *
3
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ * See https://llvm.org/LICENSE.txt for license information.
5
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ *
7
+ *===-----------------------------------------------------------------------===
8
+ */
9
+
10
+ #ifndef __CLANG_STDATOMIC_H
11
+ #define __CLANG_STDATOMIC_H
12
+
13
+ /* If we're hosted, fall back to the system's stdatomic.h. FreeBSD, for
14
+ * example, already has a Clang-compatible stdatomic.h header.
15
+ *
16
+ * Exclude the MSVC path as well as the MSVC header as of the 14.31.30818
17
+ * explicitly disallows `stdatomic.h` in the C mode via an `#error`. Fallback
18
+ * to the clang resource header until that is fully supported. The
19
+ * `stdatomic.h` header requires C++ 23 or newer.
20
+ */
21
+ #if __STDC_HOSTED__ && \
22
+ __has_include_next(<stdatomic.h>) && \
23
+ (!defined(_MSC_VER) || (defined(__cplusplus) && __cplusplus >= 202002L))
24
+ # include_next <stdatomic.h>
25
+ #else
26
+
27
+ #include <stddef.h>
28
+ #include <stdint.h>
29
+
30
+ #ifdef __cplusplus
31
+ extern "C" {
32
+ #endif
33
+
34
+ /* 7.17.1 Introduction */
35
+
36
+ #define ATOMIC_BOOL_LOCK_FREE __CLANG_ATOMIC_BOOL_LOCK_FREE
37
+ #define ATOMIC_CHAR_LOCK_FREE __CLANG_ATOMIC_CHAR_LOCK_FREE
38
+ #define ATOMIC_CHAR16_T_LOCK_FREE __CLANG_ATOMIC_CHAR16_T_LOCK_FREE
39
+ #define ATOMIC_CHAR32_T_LOCK_FREE __CLANG_ATOMIC_CHAR32_T_LOCK_FREE
40
+ #define ATOMIC_WCHAR_T_LOCK_FREE __CLANG_ATOMIC_WCHAR_T_LOCK_FREE
41
+ #define ATOMIC_SHORT_LOCK_FREE __CLANG_ATOMIC_SHORT_LOCK_FREE
42
+ #define ATOMIC_INT_LOCK_FREE __CLANG_ATOMIC_INT_LOCK_FREE
43
+ #define ATOMIC_LONG_LOCK_FREE __CLANG_ATOMIC_LONG_LOCK_FREE
44
+ #define ATOMIC_LLONG_LOCK_FREE __CLANG_ATOMIC_LLONG_LOCK_FREE
45
+ #define ATOMIC_POINTER_LOCK_FREE __CLANG_ATOMIC_POINTER_LOCK_FREE
46
+
47
+ /* 7.17.2 Initialization */
48
+ /* FIXME: This is using the placeholder dates Clang produces for these macros
49
+ in C2x mode; switch to the correct values once they've been published. */
50
+ #if (defined(__STDC_VERSION__) && __STDC_VERSION__ < 202000L) || \
51
+ defined(__cplusplus)
52
+ /* ATOMIC_VAR_INIT was removed in C2x, but still remains in C++23. */
53
+ #define ATOMIC_VAR_INIT(value) (value)
54
+ #endif
55
+
56
+ #if ((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201710L && \
57
+ __STDC_VERSION__ < 202000L) || \
58
+ (defined(__cplusplus) && __cplusplus >= 202002L)) && \
59
+ !defined(_CLANG_DISABLE_CRT_DEPRECATION_WARNINGS)
60
+ /* ATOMIC_VAR_INIT was deprecated in C17 and C++20. */
61
+ #pragma clang deprecated(ATOMIC_VAR_INIT)
62
+ #endif
63
+ #define atomic_init __c11_atomic_init
64
+
65
+ /* 7.17.3 Order and consistency */
66
+
67
+ typedef enum memory_order {
68
+ memory_order_relaxed = __ATOMIC_RELAXED,
69
+ memory_order_consume = __ATOMIC_CONSUME,
70
+ memory_order_acquire = __ATOMIC_ACQUIRE,
71
+ memory_order_release = __ATOMIC_RELEASE,
72
+ memory_order_acq_rel = __ATOMIC_ACQ_REL,
73
+ memory_order_seq_cst = __ATOMIC_SEQ_CST
74
+ } memory_order;
75
+
76
+ #define kill_dependency(y) (y)
77
+
78
+ /* 7.17.4 Fences */
79
+
80
+ /* These should be provided by the libc implementation. */
81
+ void atomic_thread_fence(memory_order);
82
+ void atomic_signal_fence(memory_order);
83
+
84
+ #define atomic_thread_fence(order) __c11_atomic_thread_fence(order)
85
+ #define atomic_signal_fence(order) __c11_atomic_signal_fence(order)
86
+
87
+ /* 7.17.5 Lock-free property */
88
+
89
+ #define atomic_is_lock_free(obj) __c11_atomic_is_lock_free(sizeof(*(obj)))
90
+
91
+ /* 7.17.6 Atomic integer types */
92
+
93
+ #ifdef __cplusplus
94
+ typedef _Atomic(bool) atomic_bool;
95
+ #else
96
+ typedef _Atomic(_Bool) atomic_bool;
97
+ #endif
98
+ typedef _Atomic(char) atomic_char;
99
+ typedef _Atomic(signed char) atomic_schar;
100
+ typedef _Atomic(unsigned char) atomic_uchar;
101
+ typedef _Atomic(short) atomic_short;
102
+ typedef _Atomic(unsigned short) atomic_ushort;
103
+ typedef _Atomic(int) atomic_int;
104
+ typedef _Atomic(unsigned int) atomic_uint;
105
+ typedef _Atomic(long) atomic_long;
106
+ typedef _Atomic(unsigned long) atomic_ulong;
107
+ typedef _Atomic(long long) atomic_llong;
108
+ typedef _Atomic(unsigned long long) atomic_ullong;
109
+ typedef _Atomic(uint_least16_t) atomic_char16_t;
110
+ typedef _Atomic(uint_least32_t) atomic_char32_t;
111
+ typedef _Atomic(wchar_t) atomic_wchar_t;
112
+ typedef _Atomic(int_least8_t) atomic_int_least8_t;
113
+ typedef _Atomic(uint_least8_t) atomic_uint_least8_t;
114
+ typedef _Atomic(int_least16_t) atomic_int_least16_t;
115
+ typedef _Atomic(uint_least16_t) atomic_uint_least16_t;
116
+ typedef _Atomic(int_least32_t) atomic_int_least32_t;
117
+ typedef _Atomic(uint_least32_t) atomic_uint_least32_t;
118
+ typedef _Atomic(int_least64_t) atomic_int_least64_t;
119
+ typedef _Atomic(uint_least64_t) atomic_uint_least64_t;
120
+ typedef _Atomic(int_fast8_t) atomic_int_fast8_t;
121
+ typedef _Atomic(uint_fast8_t) atomic_uint_fast8_t;
122
+ typedef _Atomic(int_fast16_t) atomic_int_fast16_t;
123
+ typedef _Atomic(uint_fast16_t) atomic_uint_fast16_t;
124
+ typedef _Atomic(int_fast32_t) atomic_int_fast32_t;
125
+ typedef _Atomic(uint_fast32_t) atomic_uint_fast32_t;
126
+ typedef _Atomic(int_fast64_t) atomic_int_fast64_t;
127
+ typedef _Atomic(uint_fast64_t) atomic_uint_fast64_t;
128
+ typedef _Atomic(intptr_t) atomic_intptr_t;
129
+ typedef _Atomic(uintptr_t) atomic_uintptr_t;
130
+ typedef _Atomic(size_t) atomic_size_t;
131
+ typedef _Atomic(ptrdiff_t) atomic_ptrdiff_t;
132
+ typedef _Atomic(intmax_t) atomic_intmax_t;
133
+ typedef _Atomic(uintmax_t) atomic_uintmax_t;
134
+
135
+ /* 7.17.7 Operations on atomic types */
136
+
137
+ #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
138
+ #define atomic_store_explicit __c11_atomic_store
139
+
140
+ #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
141
+ #define atomic_load_explicit __c11_atomic_load
142
+
143
+ #define atomic_exchange(object, desired) __c11_atomic_exchange(object, desired, __ATOMIC_SEQ_CST)
144
+ #define atomic_exchange_explicit __c11_atomic_exchange
145
+
146
+ #define atomic_compare_exchange_strong(object, expected, desired) __c11_atomic_compare_exchange_strong(object, expected, desired, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)
147
+ #define atomic_compare_exchange_strong_explicit __c11_atomic_compare_exchange_strong
148
+
149
+ #define atomic_compare_exchange_weak(object, expected, desired) __c11_atomic_compare_exchange_weak(object, expected, desired, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)
150
+ #define atomic_compare_exchange_weak_explicit __c11_atomic_compare_exchange_weak
151
+
152
+ #define atomic_fetch_add(object, operand) __c11_atomic_fetch_add(object, operand, __ATOMIC_SEQ_CST)
153
+ #define atomic_fetch_add_explicit __c11_atomic_fetch_add
154
+
155
+ #define atomic_fetch_sub(object, operand) __c11_atomic_fetch_sub(object, operand, __ATOMIC_SEQ_CST)
156
+ #define atomic_fetch_sub_explicit __c11_atomic_fetch_sub
157
+
158
+ #define atomic_fetch_or(object, operand) __c11_atomic_fetch_or(object, operand, __ATOMIC_SEQ_CST)
159
+ #define atomic_fetch_or_explicit __c11_atomic_fetch_or
160
+
161
+ #define atomic_fetch_xor(object, operand) __c11_atomic_fetch_xor(object, operand, __ATOMIC_SEQ_CST)
162
+ #define atomic_fetch_xor_explicit __c11_atomic_fetch_xor
163
+
164
+ #define atomic_fetch_and(object, operand) __c11_atomic_fetch_and(object, operand, __ATOMIC_SEQ_CST)
165
+ #define atomic_fetch_and_explicit __c11_atomic_fetch_and
166
+
167
+ /* 7.17.8 Atomic flag type and operations */
168
+
169
+ typedef struct atomic_flag { atomic_bool _Value; } atomic_flag;
170
+
171
+ #define ATOMIC_FLAG_INIT { 0 }
172
+
173
+ /* These should be provided by the libc implementation. */
174
+ #ifdef __cplusplus
175
+ bool atomic_flag_test_and_set(volatile atomic_flag *);
176
+ bool atomic_flag_test_and_set_explicit(volatile atomic_flag *, memory_order);
177
+ #else
178
+ _Bool atomic_flag_test_and_set(volatile atomic_flag *);
179
+ _Bool atomic_flag_test_and_set_explicit(volatile atomic_flag *, memory_order);
180
+ #endif
181
+ void atomic_flag_clear(volatile atomic_flag *);
182
+ void atomic_flag_clear_explicit(volatile atomic_flag *, memory_order);
183
+
184
+ #define atomic_flag_test_and_set(object) __c11_atomic_exchange(&(object)->_Value, 1, __ATOMIC_SEQ_CST)
185
+ #define atomic_flag_test_and_set_explicit(object, order) __c11_atomic_exchange(&(object)->_Value, 1, order)
186
+
187
+ #define atomic_flag_clear(object) __c11_atomic_store(&(object)->_Value, 0, __ATOMIC_SEQ_CST)
188
+ #define atomic_flag_clear_explicit(object, order) __c11_atomic_store(&(object)->_Value, 0, order)
189
+
190
+ #ifdef __cplusplus
191
+ }
192
+ #endif
193
+
194
+ #endif /* __STDC_HOSTED__ */
195
+ #endif /* __CLANG_STDATOMIC_H */
196
+
@@ -0,0 +1,34 @@
1
+ /*===---- stdbool.h - Standard header for booleans -------------------------===
2
+ *
3
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ * See https://llvm.org/LICENSE.txt for license information.
5
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ *
7
+ *===-----------------------------------------------------------------------===
8
+ */
9
+
10
+ #ifndef __STDBOOL_H
11
+ #define __STDBOOL_H
12
+
13
+ #define __bool_true_false_are_defined 1
14
+
15
+ #if defined(__STDC_VERSION__) && __STDC_VERSION__ > 201710L
16
+ /* FIXME: We should be issuing a deprecation warning here, but cannot yet due
17
+ * to system headers which include this header file unconditionally.
18
+ */
19
+ #elif !defined(__cplusplus)
20
+ #define bool _Bool
21
+ #define true 1
22
+ #define false 0
23
+ #elif defined(__GNUC__) && !defined(__STRICT_ANSI__)
24
+ /* Define _Bool as a GNU extension. */
25
+ #define _Bool bool
26
+ #if defined(__cplusplus) && __cplusplus < 201103L
27
+ /* For C++98, define bool, false, true as a GNU extension. */
28
+ #define bool bool
29
+ #define false false
30
+ #define true true
31
+ #endif
32
+ #endif
33
+
34
+ #endif /* __STDBOOL_H */
@@ -0,0 +1,133 @@
1
+ /*===---- stddef.h - Basic type definitions --------------------------------===
2
+ *
3
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ * See https://llvm.org/LICENSE.txt for license information.
5
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ *
7
+ *===-----------------------------------------------------------------------===
8
+ */
9
+
10
+ #if !defined(__STDDEF_H) || defined(__need_ptrdiff_t) || \
11
+ defined(__need_size_t) || defined(__need_wchar_t) || \
12
+ defined(__need_NULL) || defined(__need_wint_t)
13
+
14
+ #if !defined(__need_ptrdiff_t) && !defined(__need_size_t) && \
15
+ !defined(__need_wchar_t) && !defined(__need_NULL) && \
16
+ !defined(__need_wint_t)
17
+ /* Always define miscellaneous pieces when modules are available. */
18
+ #if !__has_feature(modules)
19
+ #define __STDDEF_H
20
+ #endif
21
+ #define __need_ptrdiff_t
22
+ #define __need_size_t
23
+ #define __need_wchar_t
24
+ #define __need_NULL
25
+ #define __need_STDDEF_H_misc
26
+ /* __need_wint_t is intentionally not defined here. */
27
+ #endif
28
+
29
+ #if defined(__need_ptrdiff_t)
30
+ #if !defined(_PTRDIFF_T) || __has_feature(modules)
31
+ /* Always define ptrdiff_t when modules are available. */
32
+ #if !__has_feature(modules)
33
+ #define _PTRDIFF_T
34
+ #endif
35
+ typedef __PTRDIFF_TYPE__ ptrdiff_t;
36
+ #endif
37
+ #undef __need_ptrdiff_t
38
+ #endif /* defined(__need_ptrdiff_t) */
39
+
40
+ #if defined(__need_size_t)
41
+ #if !defined(_SIZE_T) || __has_feature(modules)
42
+ /* Always define size_t when modules are available. */
43
+ #if !__has_feature(modules)
44
+ #define _SIZE_T
45
+ #endif
46
+ typedef __SIZE_TYPE__ size_t;
47
+ #endif
48
+ #undef __need_size_t
49
+ #endif /*defined(__need_size_t) */
50
+
51
+ #if defined(__need_STDDEF_H_misc)
52
+ /* ISO9899:2011 7.20 (C11 Annex K): Define rsize_t if __STDC_WANT_LIB_EXT1__ is
53
+ * enabled. */
54
+ #if (defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 && \
55
+ !defined(_RSIZE_T)) || __has_feature(modules)
56
+ /* Always define rsize_t when modules are available. */
57
+ #if !__has_feature(modules)
58
+ #define _RSIZE_T
59
+ #endif
60
+ typedef __SIZE_TYPE__ rsize_t;
61
+ #endif
62
+ #endif /* defined(__need_STDDEF_H_misc) */
63
+
64
+ #if defined(__need_wchar_t)
65
+ #if !defined(__cplusplus) || (defined(_MSC_VER) && !_NATIVE_WCHAR_T_DEFINED)
66
+ /* Always define wchar_t when modules are available. */
67
+ #if !defined(_WCHAR_T) || __has_feature(modules)
68
+ #if !__has_feature(modules)
69
+ #define _WCHAR_T
70
+ #if defined(_MSC_EXTENSIONS)
71
+ #define _WCHAR_T_DEFINED
72
+ #endif
73
+ #endif
74
+ typedef __WCHAR_TYPE__ wchar_t;
75
+ #endif
76
+ #endif
77
+ #undef __need_wchar_t
78
+ #endif /* defined(__need_wchar_t) */
79
+
80
+ #if defined(__need_NULL)
81
+ #undef NULL
82
+ #ifdef __cplusplus
83
+ # if !defined(__MINGW32__) && !defined(_MSC_VER)
84
+ # define NULL __null
85
+ # else
86
+ # define NULL 0
87
+ # endif
88
+ #else
89
+ # define NULL ((void*)0)
90
+ #endif
91
+ #ifdef __cplusplus
92
+ #if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED)
93
+ namespace std { typedef decltype(nullptr) nullptr_t; }
94
+ using ::std::nullptr_t;
95
+ #endif
96
+ #endif
97
+ #undef __need_NULL
98
+ #endif /* defined(__need_NULL) */
99
+
100
+ /* FIXME: This is using the placeholder dates Clang produces for these macros
101
+ in C2x mode; switch to the correct values once they've been published. */
102
+ #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L
103
+ typedef typeof(nullptr) nullptr_t;
104
+ #endif /* defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L */
105
+
106
+ #if defined(__need_STDDEF_H_misc) && defined(__STDC_VERSION__) && \
107
+ __STDC_VERSION__ >= 202000L
108
+ #define unreachable() __builtin_unreachable()
109
+ #endif /* defined(__need_STDDEF_H_misc) && >= C23 */
110
+
111
+ #if defined(__need_STDDEF_H_misc)
112
+ #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || \
113
+ (defined(__cplusplus) && __cplusplus >= 201103L)
114
+ #include "__stddef_max_align_t.h"
115
+ #endif
116
+ #define offsetof(t, d) __builtin_offsetof(t, d)
117
+ #undef __need_STDDEF_H_misc
118
+ #endif /* defined(__need_STDDEF_H_misc) */
119
+
120
+ /* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use
121
+ __WINT_TYPE__ directly; accommodate both by requiring __need_wint_t */
122
+ #if defined(__need_wint_t)
123
+ /* Always define wint_t when modules are available. */
124
+ #if !defined(_WINT_T) || __has_feature(modules)
125
+ #if !__has_feature(modules)
126
+ #define _WINT_T
127
+ #endif
128
+ typedef __WINT_TYPE__ wint_t;
129
+ #endif
130
+ #undef __need_wint_t
131
+ #endif /* __need_wint_t */
132
+
133
+ #endif