@shd101wyy/yo 0.0.2

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 (339) hide show
  1. package/LICENSE.md +17 -0
  2. package/README.md +80 -0
  3. package/out/cjs/index.cjs +51 -0
  4. package/out/cjs/yo-cli.cjs +2158 -0
  5. package/out/esm/index.mjs +51 -0
  6. package/out/types/src/codegen/async/runtime.d.ts +2 -0
  7. package/out/types/src/codegen/async/state-code-gen.d.ts +10 -0
  8. package/out/types/src/codegen/async/state-machine.d.ts +13 -0
  9. package/out/types/src/codegen/c/collection.d.ts +3 -0
  10. package/out/types/src/codegen/codegen-c.d.ts +12 -0
  11. package/out/types/src/codegen/constants.d.ts +3 -0
  12. package/out/types/src/codegen/expressions/array.d.ts +4 -0
  13. package/out/types/src/codegen/expressions/generation.d.ts +11 -0
  14. package/out/types/src/codegen/expressions/index.d.ts +2 -0
  15. package/out/types/src/codegen/functions/collection.d.ts +5 -0
  16. package/out/types/src/codegen/functions/context.d.ts +57 -0
  17. package/out/types/src/codegen/functions/generation.d.ts +25 -0
  18. package/out/types/src/codegen/functions/index.d.ts +2 -0
  19. package/out/types/src/codegen/index.d.ts +20 -0
  20. package/out/types/src/codegen/parallelism/runtime.d.ts +2 -0
  21. package/out/types/src/codegen/types/collection.d.ts +8 -0
  22. package/out/types/src/codegen/types/generation.d.ts +13 -0
  23. package/out/types/src/codegen/types/index.d.ts +2 -0
  24. package/out/types/src/codegen/utils/fixup.d.ts +2 -0
  25. package/out/types/src/codegen/utils/index.d.ts +77 -0
  26. package/out/types/src/codegen/values/index.d.ts +1 -0
  27. package/out/types/src/emitter.d.ts +11 -0
  28. package/out/types/src/env.d.ts +85 -0
  29. package/out/types/src/error.d.ts +45 -0
  30. package/out/types/src/evaluator/async/await-analysis-types.d.ts +23 -0
  31. package/out/types/src/evaluator/async/await-analysis.d.ts +5 -0
  32. package/out/types/src/evaluator/builtins/alignof.d.ts +8 -0
  33. package/out/types/src/evaluator/builtins/and_or.d.ts +8 -0
  34. package/out/types/src/evaluator/builtins/arc_fns.d.ts +58 -0
  35. package/out/types/src/evaluator/builtins/array_fns.d.ts +0 -0
  36. package/out/types/src/evaluator/builtins/as.d.ts +8 -0
  37. package/out/types/src/evaluator/builtins/async_fns.d.ts +8 -0
  38. package/out/types/src/evaluator/builtins/compt_assert.d.ts +8 -0
  39. package/out/types/src/evaluator/builtins/compt_boolean_fns.d.ts +8 -0
  40. package/out/types/src/evaluator/builtins/compt_expect_error.d.ts +8 -0
  41. package/out/types/src/evaluator/builtins/compt_list_fns.d.ts +33 -0
  42. package/out/types/src/evaluator/builtins/compt_print.d.ts +8 -0
  43. package/out/types/src/evaluator/builtins/compt_string_fns.d.ts +8 -0
  44. package/out/types/src/evaluator/builtins/consume.d.ts +8 -0
  45. package/out/types/src/evaluator/builtins/drop.d.ts +8 -0
  46. package/out/types/src/evaluator/builtins/dup.d.ts +8 -0
  47. package/out/types/src/evaluator/builtins/expr_fns.d.ts +33 -0
  48. package/out/types/src/evaluator/builtins/future_fns.d.ts +8 -0
  49. package/out/types/src/evaluator/builtins/gc.d.ts +8 -0
  50. package/out/types/src/evaluator/builtins/gensym.d.ts +8 -0
  51. package/out/types/src/evaluator/builtins/impl_constraint.d.ts +8 -0
  52. package/out/types/src/evaluator/builtins/macro_expand.d.ts +8 -0
  53. package/out/types/src/evaluator/builtins/numeric_fns.d.ts +8 -0
  54. package/out/types/src/evaluator/builtins/panic.d.ts +8 -0
  55. package/out/types/src/evaluator/builtins/ptr_fns.d.ts +8 -0
  56. package/out/types/src/evaluator/builtins/quote.d.ts +13 -0
  57. package/out/types/src/evaluator/builtins/rc.d.ts +8 -0
  58. package/out/types/src/evaluator/builtins/sizeof.d.ts +8 -0
  59. package/out/types/src/evaluator/builtins/the.d.ts +8 -0
  60. package/out/types/src/evaluator/builtins/type_fns.d.ts +28 -0
  61. package/out/types/src/evaluator/builtins/va_start.d.ts +8 -0
  62. package/out/types/src/evaluator/builtins/var_fns.d.ts +18 -0
  63. package/out/types/src/evaluator/calls/array.d.ts +13 -0
  64. package/out/types/src/evaluator/calls/array_type.d.ts +11 -0
  65. package/out/types/src/evaluator/calls/closure_type.d.ts +11 -0
  66. package/out/types/src/evaluator/calls/compt_function.d.ts +19 -0
  67. package/out/types/src/evaluator/calls/compt_list_type.d.ts +11 -0
  68. package/out/types/src/evaluator/calls/function.d.ts +16 -0
  69. package/out/types/src/evaluator/calls/function_type.d.ts +15 -0
  70. package/out/types/src/evaluator/calls/helper.d.ts +42 -0
  71. package/out/types/src/evaluator/calls/iso.d.ts +15 -0
  72. package/out/types/src/evaluator/calls/module_type.d.ts +11 -0
  73. package/out/types/src/evaluator/calls/numeric_type.d.ts +15 -0
  74. package/out/types/src/evaluator/calls/pointer.d.ts +8 -0
  75. package/out/types/src/evaluator/calls/pointer_type.d.ts +14 -0
  76. package/out/types/src/evaluator/calls/type.d.ts +12 -0
  77. package/out/types/src/evaluator/context.d.ts +169 -0
  78. package/out/types/src/evaluator/exprs/_expr.d.ts +8 -0
  79. package/out/types/src/evaluator/exprs/assignment.d.ts +9 -0
  80. package/out/types/src/evaluator/exprs/begin.d.ts +10 -0
  81. package/out/types/src/evaluator/exprs/binding.d.ts +12 -0
  82. package/out/types/src/evaluator/exprs/c_include.d.ts +8 -0
  83. package/out/types/src/evaluator/exprs/cond.d.ts +8 -0
  84. package/out/types/src/evaluator/exprs/destructuring_assignment.d.ts +33 -0
  85. package/out/types/src/evaluator/exprs/exists.d.ts +0 -0
  86. package/out/types/src/evaluator/exprs/expr.d.ts +9 -0
  87. package/out/types/src/evaluator/exprs/extern.d.ts +8 -0
  88. package/out/types/src/evaluator/exprs/identifer_and_operator.d.ts +9 -0
  89. package/out/types/src/evaluator/exprs/import.d.ts +9 -0
  90. package/out/types/src/evaluator/exprs/initialization_assignment.d.ts +8 -0
  91. package/out/types/src/evaluator/exprs/match.d.ts +8 -0
  92. package/out/types/src/evaluator/exprs/open.d.ts +8 -0
  93. package/out/types/src/evaluator/exprs/property_access.d.ts +8 -0
  94. package/out/types/src/evaluator/exprs/recur.d.ts +8 -0
  95. package/out/types/src/evaluator/exprs/subtype_of.d.ts +21 -0
  96. package/out/types/src/evaluator/exprs/test.d.ts +8 -0
  97. package/out/types/src/evaluator/exprs/typeof.d.ts +8 -0
  98. package/out/types/src/evaluator/exprs/while.d.ts +8 -0
  99. package/out/types/src/evaluator/index.d.ts +26 -0
  100. package/out/types/src/evaluator/types/array.d.ts +8 -0
  101. package/out/types/src/evaluator/types/closure.d.ts +8 -0
  102. package/out/types/src/evaluator/types/compt_list.d.ts +8 -0
  103. package/out/types/src/evaluator/types/concrete_module.d.ts +8 -0
  104. package/out/types/src/evaluator/types/dyn.d.ts +8 -0
  105. package/out/types/src/evaluator/types/enum.d.ts +8 -0
  106. package/out/types/src/evaluator/types/expr_synthesizer.d.ts +14 -0
  107. package/out/types/src/evaluator/types/field.d.ts +14 -0
  108. package/out/types/src/evaluator/types/fn_module.d.ts +8 -0
  109. package/out/types/src/evaluator/types/function.d.ts +58 -0
  110. package/out/types/src/evaluator/types/future_module.d.ts +8 -0
  111. package/out/types/src/evaluator/types/module.d.ts +19 -0
  112. package/out/types/src/evaluator/types/newtype.d.ts +8 -0
  113. package/out/types/src/evaluator/types/object.d.ts +8 -0
  114. package/out/types/src/evaluator/types/proofs.d.ts +0 -0
  115. package/out/types/src/evaluator/types/slice.d.ts +8 -0
  116. package/out/types/src/evaluator/types/struct.d.ts +8 -0
  117. package/out/types/src/evaluator/types/synthesizer.d.ts +16 -0
  118. package/out/types/src/evaluator/types/tuple.d.ts +18 -0
  119. package/out/types/src/evaluator/types/union.d.ts +8 -0
  120. package/out/types/src/evaluator/types/utils.d.ts +71 -0
  121. package/out/types/src/evaluator/types/validation.d.ts +3 -0
  122. package/out/types/src/evaluator/utils/array-utils.d.ts +15 -0
  123. package/out/types/src/evaluator/utils/closure.d.ts +35 -0
  124. package/out/types/src/evaluator/utils.d.ts +4 -0
  125. package/out/types/src/evaluator/values/anonymous_function.d.ts +8 -0
  126. package/out/types/src/evaluator/values/anonymous_module.d.ts +17 -0
  127. package/out/types/src/evaluator/values/anonymous_struct.d.ts +8 -0
  128. package/out/types/src/evaluator/values/array.d.ts +8 -0
  129. package/out/types/src/evaluator/values/boolean.d.ts +3 -0
  130. package/out/types/src/evaluator/values/char.d.ts +3 -0
  131. package/out/types/src/evaluator/values/compt_list.d.ts +8 -0
  132. package/out/types/src/evaluator/values/dyn.d.ts +8 -0
  133. package/out/types/src/evaluator/values/float.d.ts +4 -0
  134. package/out/types/src/evaluator/values/integer.d.ts +4 -0
  135. package/out/types/src/evaluator/values/module.d.ts +58 -0
  136. package/out/types/src/evaluator/values/string.d.ts +3 -0
  137. package/out/types/src/evaluator/values/tuple.d.ts +32 -0
  138. package/out/types/src/expr.d.ts +456 -0
  139. package/out/types/src/function-value.d.ts +42 -0
  140. package/out/types/src/index.d.ts +4 -0
  141. package/out/types/src/lexer.d.ts +2 -0
  142. package/out/types/src/logger.d.ts +1 -0
  143. package/out/types/src/module-manager.d.ts +30 -0
  144. package/out/types/src/naming-checker.d.ts +4 -0
  145. package/out/types/src/parser.d.ts +33 -0
  146. package/out/types/src/test-runner.d.ts +30 -0
  147. package/out/types/src/tests/codegen.test.d.ts +1 -0
  148. package/out/types/src/tests/fixme.test.d.ts +1 -0
  149. package/out/types/src/tests/module-manager.test.d.ts +1 -0
  150. package/out/types/src/tests/parser.test.d.ts +1 -0
  151. package/out/types/src/tests/sample.test.d.ts +0 -0
  152. package/out/types/src/tests/std.test.d.ts +1 -0
  153. package/out/types/src/token.d.ts +40 -0
  154. package/out/types/src/type-value.d.ts +7 -0
  155. package/out/types/src/types/compatibility.d.ts +16 -0
  156. package/out/types/src/types/creators.d.ts +73 -0
  157. package/out/types/src/types/definitions.d.ts +218 -0
  158. package/out/types/src/types/guards.d.ts +70 -0
  159. package/out/types/src/types/hierarchy.d.ts +4 -0
  160. package/out/types/src/types/index.d.ts +7 -0
  161. package/out/types/src/types/module_field.d.ts +2 -0
  162. package/out/types/src/types/tags.d.ts +45 -0
  163. package/out/types/src/types/utils.d.ts +50 -0
  164. package/out/types/src/unit-value.d.ts +7 -0
  165. package/out/types/src/utils.d.ts +6 -0
  166. package/out/types/src/value-tag.d.ts +29 -0
  167. package/out/types/src/value.d.ts +110 -0
  168. package/out/types/src/yo-cli.d.ts +1 -0
  169. package/out/types/tsconfig.tsbuildinfo +1 -0
  170. package/package.json +57 -0
  171. package/scripts/check-liburing.js +76 -0
  172. package/std/alg/hash.yo +50 -0
  173. package/std/allocator.yo +113 -0
  174. package/std/allocators/c_allocator.yo +118 -0
  175. package/std/async.yo +13 -0
  176. package/std/collections/array_list.yo +415 -0
  177. package/std/collections/hash_map.yo +482 -0
  178. package/std/collections/hash_set.yo +706 -0
  179. package/std/collections/index.yo +11 -0
  180. package/std/collections/linked_list.yo +439 -0
  181. package/std/error.yo +0 -0
  182. package/std/gc.yo +10 -0
  183. package/std/index.yo +12 -0
  184. package/std/io/file.yo +191 -0
  185. package/std/io/index.yo +5 -0
  186. package/std/libc/assert.yo +39 -0
  187. package/std/libc/ctype.yo +57 -0
  188. package/std/libc/errno.yo +182 -0
  189. package/std/libc/float.yo +87 -0
  190. package/std/libc/index.yo +29 -0
  191. package/std/libc/limits.yo +65 -0
  192. package/std/libc/math.yo +679 -0
  193. package/std/libc/signal.yo +101 -0
  194. package/std/libc/stdatomic.yo +213 -0
  195. package/std/libc/stdint.yo +214 -0
  196. package/std/libc/stdio.yo +225 -0
  197. package/std/libc/stdlib.yo +204 -0
  198. package/std/libc/string.yo +151 -0
  199. package/std/libc/time.yo +92 -0
  200. package/std/libc/unistd.yo +130 -0
  201. package/std/monad.yo +152 -0
  202. package/std/prelude.yo +3094 -0
  203. package/std/string/index.yo +8 -0
  204. package/std/string/rune.yo +82 -0
  205. package/std/string/string.yo +288 -0
  206. package/std/sync.yo +95 -0
  207. package/std/thread.yo +36 -0
  208. package/std/time.yo +13 -0
  209. package/std/worker.yo +36 -0
  210. package/vendor/mimalloc/.gitattributes +12 -0
  211. package/vendor/mimalloc/CMakeLists.txt +763 -0
  212. package/vendor/mimalloc/LICENSE +21 -0
  213. package/vendor/mimalloc/SECURITY.md +41 -0
  214. package/vendor/mimalloc/azure-pipelines.yml +251 -0
  215. package/vendor/mimalloc/bin/mimalloc-redirect-arm64.dll +0 -0
  216. package/vendor/mimalloc/bin/mimalloc-redirect-arm64.lib +0 -0
  217. package/vendor/mimalloc/bin/mimalloc-redirect-arm64ec.dll +0 -0
  218. package/vendor/mimalloc/bin/mimalloc-redirect-arm64ec.lib +0 -0
  219. package/vendor/mimalloc/bin/mimalloc-redirect.dll +0 -0
  220. package/vendor/mimalloc/bin/mimalloc-redirect.lib +0 -0
  221. package/vendor/mimalloc/bin/mimalloc-redirect32.dll +0 -0
  222. package/vendor/mimalloc/bin/mimalloc-redirect32.lib +0 -0
  223. package/vendor/mimalloc/bin/minject-arm64.exe +0 -0
  224. package/vendor/mimalloc/bin/minject.exe +0 -0
  225. package/vendor/mimalloc/bin/minject32.exe +0 -0
  226. package/vendor/mimalloc/bin/readme.md +118 -0
  227. package/vendor/mimalloc/cmake/JoinPaths.cmake +23 -0
  228. package/vendor/mimalloc/cmake/mimalloc-config-version.cmake +19 -0
  229. package/vendor/mimalloc/cmake/mimalloc-config.cmake +14 -0
  230. package/vendor/mimalloc/contrib/docker/alpine/Dockerfile +23 -0
  231. package/vendor/mimalloc/contrib/docker/alpine-arm32v7/Dockerfile +28 -0
  232. package/vendor/mimalloc/contrib/docker/alpine-x86/Dockerfile +28 -0
  233. package/vendor/mimalloc/contrib/docker/manylinux-x64/Dockerfile +23 -0
  234. package/vendor/mimalloc/contrib/docker/readme.md +10 -0
  235. package/vendor/mimalloc/contrib/vcpkg/portfile.cmake +64 -0
  236. package/vendor/mimalloc/contrib/vcpkg/readme.md +40 -0
  237. package/vendor/mimalloc/contrib/vcpkg/usage +20 -0
  238. package/vendor/mimalloc/contrib/vcpkg/vcpkg-cmake-wrapper.cmake +20 -0
  239. package/vendor/mimalloc/contrib/vcpkg/vcpkg.json +48 -0
  240. package/vendor/mimalloc/doc/bench-2020/bench-c5-18xlarge-2020-01-20-a.svg +887 -0
  241. package/vendor/mimalloc/doc/bench-2020/bench-c5-18xlarge-2020-01-20-b.svg +1185 -0
  242. package/vendor/mimalloc/doc/bench-2020/bench-c5-18xlarge-2020-01-20-rss-a.svg +757 -0
  243. package/vendor/mimalloc/doc/bench-2020/bench-c5-18xlarge-2020-01-20-rss-b.svg +1028 -0
  244. package/vendor/mimalloc/doc/bench-2020/bench-r5a-1.svg +769 -0
  245. package/vendor/mimalloc/doc/bench-2020/bench-r5a-12xlarge-2020-01-16-a.svg +868 -0
  246. package/vendor/mimalloc/doc/bench-2020/bench-r5a-12xlarge-2020-01-16-b.svg +1157 -0
  247. package/vendor/mimalloc/doc/bench-2020/bench-r5a-2.svg +983 -0
  248. package/vendor/mimalloc/doc/bench-2020/bench-r5a-rss-1.svg +683 -0
  249. package/vendor/mimalloc/doc/bench-2020/bench-r5a-rss-2.svg +854 -0
  250. package/vendor/mimalloc/doc/bench-2020/bench-spec-rss.svg +713 -0
  251. package/vendor/mimalloc/doc/bench-2020/bench-spec.svg +713 -0
  252. package/vendor/mimalloc/doc/bench-2020/bench-z4-1.svg +890 -0
  253. package/vendor/mimalloc/doc/bench-2020/bench-z4-2.svg +1146 -0
  254. package/vendor/mimalloc/doc/bench-2020/bench-z4-rss-1.svg +796 -0
  255. package/vendor/mimalloc/doc/bench-2020/bench-z4-rss-2.svg +974 -0
  256. package/vendor/mimalloc/doc/bench-2021/bench-amd5950x-2021-01-30-a.svg +952 -0
  257. package/vendor/mimalloc/doc/bench-2021/bench-amd5950x-2021-01-30-b.svg +1255 -0
  258. package/vendor/mimalloc/doc/bench-2021/bench-c5-18xlarge-2021-01-30-a.svg +955 -0
  259. package/vendor/mimalloc/doc/bench-2021/bench-c5-18xlarge-2021-01-30-b.svg +1269 -0
  260. package/vendor/mimalloc/doc/bench-2021/bench-c5-18xlarge-2021-01-30-rss-a.svg +836 -0
  261. package/vendor/mimalloc/doc/bench-2021/bench-c5-18xlarge-2021-01-30-rss-b.svg +1131 -0
  262. package/vendor/mimalloc/doc/bench-2021/bench-macmini-2021-01-30.svg +766 -0
  263. package/vendor/mimalloc/doc/doxyfile +2895 -0
  264. package/vendor/mimalloc/doc/ds-logo.jpg +0 -0
  265. package/vendor/mimalloc/doc/ds-logo.png +0 -0
  266. package/vendor/mimalloc/doc/mimalloc-doc.h +1452 -0
  267. package/vendor/mimalloc/doc/mimalloc-doxygen.css +60 -0
  268. package/vendor/mimalloc/doc/mimalloc-logo-100.png +0 -0
  269. package/vendor/mimalloc/doc/mimalloc-logo.png +0 -0
  270. package/vendor/mimalloc/doc/mimalloc-logo.svg +161 -0
  271. package/vendor/mimalloc/doc/spades-logo.png +0 -0
  272. package/vendor/mimalloc/doc/unreal-logo.svg +43 -0
  273. package/vendor/mimalloc/ide/vs2022/mimalloc-lib.vcxproj +500 -0
  274. package/vendor/mimalloc/ide/vs2022/mimalloc-lib.vcxproj.filters +108 -0
  275. package/vendor/mimalloc/ide/vs2022/mimalloc-override-dll.vcxproj +508 -0
  276. package/vendor/mimalloc/ide/vs2022/mimalloc-override-dll.vcxproj.filters +111 -0
  277. package/vendor/mimalloc/ide/vs2022/mimalloc-override-test-dep.vcxproj +355 -0
  278. package/vendor/mimalloc/ide/vs2022/mimalloc-override-test.vcxproj +360 -0
  279. package/vendor/mimalloc/ide/vs2022/mimalloc-test-api.vcxproj +295 -0
  280. package/vendor/mimalloc/ide/vs2022/mimalloc-test-stress.vcxproj +292 -0
  281. package/vendor/mimalloc/ide/vs2022/mimalloc-test.vcxproj +289 -0
  282. package/vendor/mimalloc/ide/vs2022/mimalloc.sln +151 -0
  283. package/vendor/mimalloc/include/mimalloc/atomic.h +557 -0
  284. package/vendor/mimalloc/include/mimalloc/internal.h +1153 -0
  285. package/vendor/mimalloc/include/mimalloc/prim.h +421 -0
  286. package/vendor/mimalloc/include/mimalloc/track.h +145 -0
  287. package/vendor/mimalloc/include/mimalloc/types.h +685 -0
  288. package/vendor/mimalloc/include/mimalloc-new-delete.h +66 -0
  289. package/vendor/mimalloc/include/mimalloc-override.h +68 -0
  290. package/vendor/mimalloc/include/mimalloc-stats.h +103 -0
  291. package/vendor/mimalloc/include/mimalloc.h +612 -0
  292. package/vendor/mimalloc/mimalloc.pc.in +11 -0
  293. package/vendor/mimalloc/readme.md +946 -0
  294. package/vendor/mimalloc/src/alloc-aligned.c +360 -0
  295. package/vendor/mimalloc/src/alloc-override.c +316 -0
  296. package/vendor/mimalloc/src/alloc-posix.c +185 -0
  297. package/vendor/mimalloc/src/alloc.c +692 -0
  298. package/vendor/mimalloc/src/arena-abandon.c +346 -0
  299. package/vendor/mimalloc/src/arena.c +1043 -0
  300. package/vendor/mimalloc/src/bitmap.c +441 -0
  301. package/vendor/mimalloc/src/bitmap.h +119 -0
  302. package/vendor/mimalloc/src/free.c +572 -0
  303. package/vendor/mimalloc/src/heap.c +733 -0
  304. package/vendor/mimalloc/src/init.c +714 -0
  305. package/vendor/mimalloc/src/libc.c +334 -0
  306. package/vendor/mimalloc/src/options.c +663 -0
  307. package/vendor/mimalloc/src/os.c +770 -0
  308. package/vendor/mimalloc/src/page-queue.c +390 -0
  309. package/vendor/mimalloc/src/page.c +1049 -0
  310. package/vendor/mimalloc/src/prim/emscripten/prim.c +249 -0
  311. package/vendor/mimalloc/src/prim/osx/alloc-override-zone.c +461 -0
  312. package/vendor/mimalloc/src/prim/osx/prim.c +9 -0
  313. package/vendor/mimalloc/src/prim/prim.c +76 -0
  314. package/vendor/mimalloc/src/prim/readme.md +9 -0
  315. package/vendor/mimalloc/src/prim/unix/prim.c +934 -0
  316. package/vendor/mimalloc/src/prim/wasi/prim.c +284 -0
  317. package/vendor/mimalloc/src/prim/windows/etw-mimalloc.wprp +61 -0
  318. package/vendor/mimalloc/src/prim/windows/etw.h +905 -0
  319. package/vendor/mimalloc/src/prim/windows/etw.man +0 -0
  320. package/vendor/mimalloc/src/prim/windows/prim.c +878 -0
  321. package/vendor/mimalloc/src/prim/windows/readme.md +17 -0
  322. package/vendor/mimalloc/src/random.c +258 -0
  323. package/vendor/mimalloc/src/segment-map.c +142 -0
  324. package/vendor/mimalloc/src/segment.c +1702 -0
  325. package/vendor/mimalloc/src/static.c +41 -0
  326. package/vendor/mimalloc/src/stats.c +635 -0
  327. package/vendor/mimalloc/test/CMakeLists.txt +56 -0
  328. package/vendor/mimalloc/test/main-override-dep.cpp +51 -0
  329. package/vendor/mimalloc/test/main-override-dep.h +11 -0
  330. package/vendor/mimalloc/test/main-override-static.c +539 -0
  331. package/vendor/mimalloc/test/main-override.c +36 -0
  332. package/vendor/mimalloc/test/main-override.cpp +497 -0
  333. package/vendor/mimalloc/test/main.c +46 -0
  334. package/vendor/mimalloc/test/readme.md +16 -0
  335. package/vendor/mimalloc/test/test-api-fill.c +343 -0
  336. package/vendor/mimalloc/test/test-api.c +466 -0
  337. package/vendor/mimalloc/test/test-stress.c +428 -0
  338. package/vendor/mimalloc/test/test-wrong.c +92 -0
  339. package/vendor/mimalloc/test/testhelper.h +49 -0
@@ -0,0 +1,360 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup Label="ProjectConfigurations">
4
+ <ProjectConfiguration Include="Debug|ARM64">
5
+ <Configuration>Debug</Configuration>
6
+ <Platform>ARM64</Platform>
7
+ </ProjectConfiguration>
8
+ <ProjectConfiguration Include="Debug|ARM64EC">
9
+ <Configuration>Debug</Configuration>
10
+ <Platform>ARM64EC</Platform>
11
+ </ProjectConfiguration>
12
+ <ProjectConfiguration Include="Debug|Win32">
13
+ <Configuration>Debug</Configuration>
14
+ <Platform>Win32</Platform>
15
+ </ProjectConfiguration>
16
+ <ProjectConfiguration Include="Release|ARM64">
17
+ <Configuration>Release</Configuration>
18
+ <Platform>ARM64</Platform>
19
+ </ProjectConfiguration>
20
+ <ProjectConfiguration Include="Release|ARM64EC">
21
+ <Configuration>Release</Configuration>
22
+ <Platform>ARM64EC</Platform>
23
+ </ProjectConfiguration>
24
+ <ProjectConfiguration Include="Release|Win32">
25
+ <Configuration>Release</Configuration>
26
+ <Platform>Win32</Platform>
27
+ </ProjectConfiguration>
28
+ <ProjectConfiguration Include="Debug|x64">
29
+ <Configuration>Debug</Configuration>
30
+ <Platform>x64</Platform>
31
+ </ProjectConfiguration>
32
+ <ProjectConfiguration Include="Release|x64">
33
+ <Configuration>Release</Configuration>
34
+ <Platform>x64</Platform>
35
+ </ProjectConfiguration>
36
+ </ItemGroup>
37
+ <PropertyGroup Label="Globals">
38
+ <VCProjectVersion>15.0</VCProjectVersion>
39
+ <ProjectGuid>{FEF7868F-750E-4C21-A04D-22707CC66879}</ProjectGuid>
40
+ <RootNamespace>mimalloc-override-test</RootNamespace>
41
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
42
+ <ProjectName>mimalloc-test-override</ProjectName>
43
+ </PropertyGroup>
44
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
45
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
46
+ <ConfigurationType>Application</ConfigurationType>
47
+ <UseDebugLibraries>true</UseDebugLibraries>
48
+ <PlatformToolset>v143</PlatformToolset>
49
+ </PropertyGroup>
50
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
51
+ <ConfigurationType>Application</ConfigurationType>
52
+ <UseDebugLibraries>false</UseDebugLibraries>
53
+ <PlatformToolset>v143</PlatformToolset>
54
+ <WholeProgramOptimization>true</WholeProgramOptimization>
55
+ </PropertyGroup>
56
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
57
+ <ConfigurationType>Application</ConfigurationType>
58
+ <UseDebugLibraries>true</UseDebugLibraries>
59
+ <PlatformToolset>v143</PlatformToolset>
60
+ </PropertyGroup>
61
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
62
+ <ConfigurationType>Application</ConfigurationType>
63
+ <UseDebugLibraries>true</UseDebugLibraries>
64
+ <PlatformToolset>v143</PlatformToolset>
65
+ </PropertyGroup>
66
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64EC'" Label="Configuration">
67
+ <ConfigurationType>Application</ConfigurationType>
68
+ <UseDebugLibraries>true</UseDebugLibraries>
69
+ <PlatformToolset>v143</PlatformToolset>
70
+ </PropertyGroup>
71
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
72
+ <ConfigurationType>Application</ConfigurationType>
73
+ <UseDebugLibraries>false</UseDebugLibraries>
74
+ <PlatformToolset>v143</PlatformToolset>
75
+ <WholeProgramOptimization>true</WholeProgramOptimization>
76
+ </PropertyGroup>
77
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
78
+ <ConfigurationType>Application</ConfigurationType>
79
+ <UseDebugLibraries>false</UseDebugLibraries>
80
+ <PlatformToolset>v143</PlatformToolset>
81
+ <WholeProgramOptimization>true</WholeProgramOptimization>
82
+ </PropertyGroup>
83
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64EC'" Label="Configuration">
84
+ <ConfigurationType>Application</ConfigurationType>
85
+ <UseDebugLibraries>false</UseDebugLibraries>
86
+ <PlatformToolset>v143</PlatformToolset>
87
+ <WholeProgramOptimization>true</WholeProgramOptimization>
88
+ </PropertyGroup>
89
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
90
+ <ImportGroup Label="ExtensionSettings">
91
+ </ImportGroup>
92
+ <ImportGroup Label="Shared">
93
+ </ImportGroup>
94
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
95
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
96
+ </ImportGroup>
97
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
98
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
99
+ </ImportGroup>
100
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
101
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
102
+ </ImportGroup>
103
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets">
104
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
105
+ </ImportGroup>
106
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64EC'" Label="PropertySheets">
107
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
108
+ </ImportGroup>
109
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
110
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
111
+ </ImportGroup>
112
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets">
113
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
114
+ </ImportGroup>
115
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64EC'" Label="PropertySheets">
116
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
117
+ </ImportGroup>
118
+ <PropertyGroup Label="UserMacros" />
119
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
120
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
121
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
122
+ </PropertyGroup>
123
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
124
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
125
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
126
+ </PropertyGroup>
127
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
128
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
129
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
130
+ </PropertyGroup>
131
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
132
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
133
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
134
+ </PropertyGroup>
135
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64EC'">
136
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
137
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
138
+ </PropertyGroup>
139
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
140
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
141
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
142
+ </PropertyGroup>
143
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
144
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
145
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
146
+ </PropertyGroup>
147
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64EC'">
148
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
149
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
150
+ </PropertyGroup>
151
+ <PropertyGroup Label="Vcpkg">
152
+ <VcpkgEnabled>false</VcpkgEnabled>
153
+ </PropertyGroup>
154
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
155
+ <ClCompile>
156
+ <WarningLevel>Level3</WarningLevel>
157
+ <Optimization>Disabled</Optimization>
158
+ <SDLCheck>true</SDLCheck>
159
+ <ConformanceMode>true</ConformanceMode>
160
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
161
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
162
+ <ExceptionHandling>Sync</ExceptionHandling>
163
+ <CompileAs>Default</CompileAs>
164
+ <SupportJustMyCode>false</SupportJustMyCode>
165
+ </ClCompile>
166
+ <Link>
167
+ <SubSystem>Console</SubSystem>
168
+ <AdditionalDependencies>kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
169
+ </Link>
170
+ <PostBuildEvent />
171
+ <PostBuildEvent>
172
+ <Command>
173
+ </Command>
174
+ </PostBuildEvent>
175
+ </ItemDefinitionGroup>
176
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
177
+ <ClCompile>
178
+ <WarningLevel>Level3</WarningLevel>
179
+ <Optimization>Disabled</Optimization>
180
+ <SDLCheck>true</SDLCheck>
181
+ <ConformanceMode>true</ConformanceMode>
182
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
183
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
184
+ <ExceptionHandling>Sync</ExceptionHandling>
185
+ <CompileAs>Default</CompileAs>
186
+ <SupportJustMyCode>false</SupportJustMyCode>
187
+ </ClCompile>
188
+ <Link>
189
+ <SubSystem>Console</SubSystem>
190
+ <EntryPointSymbol>
191
+ </EntryPointSymbol>
192
+ <AdditionalDependencies>kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
193
+ </Link>
194
+ <PostBuildEvent />
195
+ <PostBuildEvent>
196
+ <Command>
197
+ </Command>
198
+ </PostBuildEvent>
199
+ </ItemDefinitionGroup>
200
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
201
+ <ClCompile>
202
+ <WarningLevel>Level3</WarningLevel>
203
+ <Optimization>Disabled</Optimization>
204
+ <SDLCheck>true</SDLCheck>
205
+ <ConformanceMode>true</ConformanceMode>
206
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
207
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
208
+ <ExceptionHandling>Sync</ExceptionHandling>
209
+ <CompileAs>Default</CompileAs>
210
+ <SupportJustMyCode>false</SupportJustMyCode>
211
+ </ClCompile>
212
+ <Link>
213
+ <SubSystem>Console</SubSystem>
214
+ <EntryPointSymbol>
215
+ </EntryPointSymbol>
216
+ <AdditionalDependencies>kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
217
+ </Link>
218
+ <PostBuildEvent />
219
+ <PostBuildEvent>
220
+ <Command>
221
+ </Command>
222
+ </PostBuildEvent>
223
+ </ItemDefinitionGroup>
224
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64EC'">
225
+ <ClCompile>
226
+ <WarningLevel>Level3</WarningLevel>
227
+ <Optimization>Disabled</Optimization>
228
+ <SDLCheck>true</SDLCheck>
229
+ <ConformanceMode>true</ConformanceMode>
230
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
231
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
232
+ <ExceptionHandling>Sync</ExceptionHandling>
233
+ <CompileAs>Default</CompileAs>
234
+ <SupportJustMyCode>false</SupportJustMyCode>
235
+ </ClCompile>
236
+ <Link>
237
+ <SubSystem>Console</SubSystem>
238
+ <EntryPointSymbol>
239
+ </EntryPointSymbol>
240
+ <AdditionalDependencies>kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
241
+ </Link>
242
+ <PostBuildEvent />
243
+ <PostBuildEvent>
244
+ <Command>
245
+ </Command>
246
+ </PostBuildEvent>
247
+ </ItemDefinitionGroup>
248
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
249
+ <ClCompile>
250
+ <WarningLevel>Level3</WarningLevel>
251
+ <Optimization>MaxSpeed</Optimization>
252
+ <FunctionLevelLinking>true</FunctionLevelLinking>
253
+ <IntrinsicFunctions>true</IntrinsicFunctions>
254
+ <SDLCheck>true</SDLCheck>
255
+ <ConformanceMode>true</ConformanceMode>
256
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
257
+ <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions);NDEBUG</PreprocessorDefinitions>
258
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
259
+ </ClCompile>
260
+ <Link>
261
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
262
+ <OptimizeReferences>true</OptimizeReferences>
263
+ <SubSystem>Console</SubSystem>
264
+ <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
265
+ </Link>
266
+ <PostBuildEvent>
267
+ <Command>
268
+ </Command>
269
+ </PostBuildEvent>
270
+ </ItemDefinitionGroup>
271
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
272
+ <ClCompile>
273
+ <WarningLevel>Level3</WarningLevel>
274
+ <Optimization>MaxSpeed</Optimization>
275
+ <FunctionLevelLinking>true</FunctionLevelLinking>
276
+ <IntrinsicFunctions>true</IntrinsicFunctions>
277
+ <SDLCheck>true</SDLCheck>
278
+ <ConformanceMode>true</ConformanceMode>
279
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
280
+ <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions);NDEBUG</PreprocessorDefinitions>
281
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
282
+ </ClCompile>
283
+ <Link>
284
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
285
+ <OptimizeReferences>true</OptimizeReferences>
286
+ <SubSystem>Console</SubSystem>
287
+ <EntryPointSymbol>
288
+ </EntryPointSymbol>
289
+ <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
290
+ </Link>
291
+ <PostBuildEvent>
292
+ <Command>
293
+ </Command>
294
+ </PostBuildEvent>
295
+ </ItemDefinitionGroup>
296
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
297
+ <ClCompile>
298
+ <WarningLevel>Level3</WarningLevel>
299
+ <Optimization>MaxSpeed</Optimization>
300
+ <FunctionLevelLinking>true</FunctionLevelLinking>
301
+ <IntrinsicFunctions>true</IntrinsicFunctions>
302
+ <SDLCheck>true</SDLCheck>
303
+ <ConformanceMode>true</ConformanceMode>
304
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
305
+ <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions);NDEBUG</PreprocessorDefinitions>
306
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
307
+ </ClCompile>
308
+ <Link>
309
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
310
+ <OptimizeReferences>true</OptimizeReferences>
311
+ <SubSystem>Console</SubSystem>
312
+ <EntryPointSymbol>
313
+ </EntryPointSymbol>
314
+ <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
315
+ </Link>
316
+ <PostBuildEvent>
317
+ <Command>
318
+ </Command>
319
+ </PostBuildEvent>
320
+ </ItemDefinitionGroup>
321
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64EC'">
322
+ <ClCompile>
323
+ <WarningLevel>Level3</WarningLevel>
324
+ <Optimization>MaxSpeed</Optimization>
325
+ <FunctionLevelLinking>true</FunctionLevelLinking>
326
+ <IntrinsicFunctions>true</IntrinsicFunctions>
327
+ <SDLCheck>true</SDLCheck>
328
+ <ConformanceMode>true</ConformanceMode>
329
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
330
+ <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions);NDEBUG</PreprocessorDefinitions>
331
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
332
+ </ClCompile>
333
+ <Link>
334
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
335
+ <OptimizeReferences>true</OptimizeReferences>
336
+ <SubSystem>Console</SubSystem>
337
+ <EntryPointSymbol>
338
+ </EntryPointSymbol>
339
+ <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
340
+ </Link>
341
+ <PostBuildEvent>
342
+ <Command>
343
+ </Command>
344
+ </PostBuildEvent>
345
+ </ItemDefinitionGroup>
346
+ <ItemGroup>
347
+ <ClCompile Include="..\..\test\main-override.cpp" />
348
+ </ItemGroup>
349
+ <ItemGroup>
350
+ <ProjectReference Include="mimalloc-override-dll.vcxproj">
351
+ <Project>{abb5eae7-b3e6-432e-b636-333449892ea7}</Project>
352
+ </ProjectReference>
353
+ <ProjectReference Include="mimalloc-override-test-dep.vcxproj">
354
+ <Project>{fef7869f-750e-4c21-a04d-22707cc66879}</Project>
355
+ </ProjectReference>
356
+ </ItemGroup>
357
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
358
+ <ImportGroup Label="ExtensionTargets">
359
+ </ImportGroup>
360
+ </Project>
@@ -0,0 +1,295 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup Label="ProjectConfigurations">
4
+ <ProjectConfiguration Include="Debug|ARM64">
5
+ <Configuration>Debug</Configuration>
6
+ <Platform>ARM64</Platform>
7
+ </ProjectConfiguration>
8
+ <ProjectConfiguration Include="Debug|ARM64EC">
9
+ <Configuration>Debug</Configuration>
10
+ <Platform>ARM64EC</Platform>
11
+ </ProjectConfiguration>
12
+ <ProjectConfiguration Include="Debug|Win32">
13
+ <Configuration>Debug</Configuration>
14
+ <Platform>Win32</Platform>
15
+ </ProjectConfiguration>
16
+ <ProjectConfiguration Include="Release|ARM64">
17
+ <Configuration>Release</Configuration>
18
+ <Platform>ARM64</Platform>
19
+ </ProjectConfiguration>
20
+ <ProjectConfiguration Include="Release|ARM64EC">
21
+ <Configuration>Release</Configuration>
22
+ <Platform>ARM64EC</Platform>
23
+ </ProjectConfiguration>
24
+ <ProjectConfiguration Include="Release|Win32">
25
+ <Configuration>Release</Configuration>
26
+ <Platform>Win32</Platform>
27
+ </ProjectConfiguration>
28
+ <ProjectConfiguration Include="Debug|x64">
29
+ <Configuration>Debug</Configuration>
30
+ <Platform>x64</Platform>
31
+ </ProjectConfiguration>
32
+ <ProjectConfiguration Include="Release|x64">
33
+ <Configuration>Release</Configuration>
34
+ <Platform>x64</Platform>
35
+ </ProjectConfiguration>
36
+ </ItemGroup>
37
+ <PropertyGroup Label="Globals">
38
+ <VCProjectVersion>15.0</VCProjectVersion>
39
+ <ProjectGuid>{FFF7958F-750E-4C21-A04D-22707CC66878}</ProjectGuid>
40
+ <RootNamespace>mimalloc-test-api</RootNamespace>
41
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
42
+ <ProjectName>mimalloc-test-api</ProjectName>
43
+ </PropertyGroup>
44
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
45
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
46
+ <ConfigurationType>Application</ConfigurationType>
47
+ <UseDebugLibraries>true</UseDebugLibraries>
48
+ <PlatformToolset>v143</PlatformToolset>
49
+ </PropertyGroup>
50
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
51
+ <ConfigurationType>Application</ConfigurationType>
52
+ <UseDebugLibraries>false</UseDebugLibraries>
53
+ <PlatformToolset>v143</PlatformToolset>
54
+ <WholeProgramOptimization>true</WholeProgramOptimization>
55
+ </PropertyGroup>
56
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
57
+ <ConfigurationType>Application</ConfigurationType>
58
+ <UseDebugLibraries>true</UseDebugLibraries>
59
+ <PlatformToolset>v143</PlatformToolset>
60
+ </PropertyGroup>
61
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
62
+ <ConfigurationType>Application</ConfigurationType>
63
+ <UseDebugLibraries>true</UseDebugLibraries>
64
+ <PlatformToolset>v143</PlatformToolset>
65
+ </PropertyGroup>
66
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64EC'" Label="Configuration">
67
+ <ConfigurationType>Application</ConfigurationType>
68
+ <UseDebugLibraries>true</UseDebugLibraries>
69
+ <PlatformToolset>v143</PlatformToolset>
70
+ </PropertyGroup>
71
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
72
+ <ConfigurationType>Application</ConfigurationType>
73
+ <UseDebugLibraries>false</UseDebugLibraries>
74
+ <PlatformToolset>v143</PlatformToolset>
75
+ <WholeProgramOptimization>true</WholeProgramOptimization>
76
+ </PropertyGroup>
77
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
78
+ <ConfigurationType>Application</ConfigurationType>
79
+ <UseDebugLibraries>false</UseDebugLibraries>
80
+ <PlatformToolset>v143</PlatformToolset>
81
+ <WholeProgramOptimization>true</WholeProgramOptimization>
82
+ </PropertyGroup>
83
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64EC'" Label="Configuration">
84
+ <ConfigurationType>Application</ConfigurationType>
85
+ <UseDebugLibraries>false</UseDebugLibraries>
86
+ <PlatformToolset>v143</PlatformToolset>
87
+ <WholeProgramOptimization>true</WholeProgramOptimization>
88
+ </PropertyGroup>
89
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
90
+ <ImportGroup Label="ExtensionSettings">
91
+ </ImportGroup>
92
+ <ImportGroup Label="Shared">
93
+ </ImportGroup>
94
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
95
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
96
+ </ImportGroup>
97
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
98
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
99
+ </ImportGroup>
100
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
101
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
102
+ </ImportGroup>
103
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets">
104
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
105
+ </ImportGroup>
106
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64EC'" Label="PropertySheets">
107
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
108
+ </ImportGroup>
109
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
110
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
111
+ </ImportGroup>
112
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets">
113
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
114
+ </ImportGroup>
115
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64EC'" Label="PropertySheets">
116
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
117
+ </ImportGroup>
118
+ <PropertyGroup Label="UserMacros" />
119
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
120
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
121
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
122
+ </PropertyGroup>
123
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
124
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
125
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
126
+ </PropertyGroup>
127
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
128
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
129
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
130
+ </PropertyGroup>
131
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
132
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
133
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
134
+ </PropertyGroup>
135
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64EC'">
136
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
137
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
138
+ </PropertyGroup>
139
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
140
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
141
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
142
+ </PropertyGroup>
143
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
144
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
145
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
146
+ </PropertyGroup>
147
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64EC'">
148
+ <OutDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
149
+ <IntDir>$(ProjectDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
150
+ </PropertyGroup>
151
+ <PropertyGroup Label="Vcpkg">
152
+ <VcpkgEnabled>false</VcpkgEnabled>
153
+ </PropertyGroup>
154
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
155
+ <ClCompile>
156
+ <WarningLevel>Level3</WarningLevel>
157
+ <Optimization>Disabled</Optimization>
158
+ <SDLCheck>true</SDLCheck>
159
+ <ConformanceMode>true</ConformanceMode>
160
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
161
+ </ClCompile>
162
+ <Link>
163
+ <SubSystem>Console</SubSystem>
164
+ </Link>
165
+ </ItemDefinitionGroup>
166
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
167
+ <ClCompile>
168
+ <WarningLevel>Level3</WarningLevel>
169
+ <Optimization>Disabled</Optimization>
170
+ <SDLCheck>true</SDLCheck>
171
+ <ConformanceMode>true</ConformanceMode>
172
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
173
+ </ClCompile>
174
+ <Link>
175
+ <SubSystem>Console</SubSystem>
176
+ </Link>
177
+ </ItemDefinitionGroup>
178
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
179
+ <ClCompile>
180
+ <WarningLevel>Level3</WarningLevel>
181
+ <Optimization>Disabled</Optimization>
182
+ <SDLCheck>true</SDLCheck>
183
+ <ConformanceMode>true</ConformanceMode>
184
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
185
+ </ClCompile>
186
+ <Link>
187
+ <SubSystem>Console</SubSystem>
188
+ </Link>
189
+ </ItemDefinitionGroup>
190
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64EC'">
191
+ <ClCompile>
192
+ <WarningLevel>Level3</WarningLevel>
193
+ <Optimization>Disabled</Optimization>
194
+ <SDLCheck>true</SDLCheck>
195
+ <ConformanceMode>true</ConformanceMode>
196
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
197
+ </ClCompile>
198
+ <Link>
199
+ <SubSystem>Console</SubSystem>
200
+ </Link>
201
+ </ItemDefinitionGroup>
202
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
203
+ <ClCompile>
204
+ <WarningLevel>Level3</WarningLevel>
205
+ <Optimization>MaxSpeed</Optimization>
206
+ <FunctionLevelLinking>true</FunctionLevelLinking>
207
+ <IntrinsicFunctions>true</IntrinsicFunctions>
208
+ <SDLCheck>true</SDLCheck>
209
+ <ConformanceMode>true</ConformanceMode>
210
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
211
+ <PreprocessorDefinitions>%(PreprocessorDefinitions);NDEBUG</PreprocessorDefinitions>
212
+ </ClCompile>
213
+ <Link>
214
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
215
+ <OptimizeReferences>true</OptimizeReferences>
216
+ <SubSystem>Console</SubSystem>
217
+ </Link>
218
+ </ItemDefinitionGroup>
219
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
220
+ <ClCompile>
221
+ <WarningLevel>Level3</WarningLevel>
222
+ <Optimization>MaxSpeed</Optimization>
223
+ <FunctionLevelLinking>true</FunctionLevelLinking>
224
+ <IntrinsicFunctions>true</IntrinsicFunctions>
225
+ <SDLCheck>true</SDLCheck>
226
+ <ConformanceMode>true</ConformanceMode>
227
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
228
+ <PreprocessorDefinitions>%(PreprocessorDefinitions);NDEBUG</PreprocessorDefinitions>
229
+ </ClCompile>
230
+ <Link>
231
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
232
+ <OptimizeReferences>true</OptimizeReferences>
233
+ <SubSystem>Console</SubSystem>
234
+ </Link>
235
+ </ItemDefinitionGroup>
236
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
237
+ <ClCompile>
238
+ <WarningLevel>Level3</WarningLevel>
239
+ <Optimization>MaxSpeed</Optimization>
240
+ <FunctionLevelLinking>true</FunctionLevelLinking>
241
+ <IntrinsicFunctions>true</IntrinsicFunctions>
242
+ <SDLCheck>true</SDLCheck>
243
+ <ConformanceMode>true</ConformanceMode>
244
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
245
+ <PreprocessorDefinitions>%(PreprocessorDefinitions);NDEBUG</PreprocessorDefinitions>
246
+ </ClCompile>
247
+ <Link>
248
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
249
+ <OptimizeReferences>true</OptimizeReferences>
250
+ <SubSystem>Console</SubSystem>
251
+ </Link>
252
+ </ItemDefinitionGroup>
253
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64EC'">
254
+ <ClCompile>
255
+ <WarningLevel>Level3</WarningLevel>
256
+ <Optimization>MaxSpeed</Optimization>
257
+ <FunctionLevelLinking>true</FunctionLevelLinking>
258
+ <IntrinsicFunctions>true</IntrinsicFunctions>
259
+ <SDLCheck>true</SDLCheck>
260
+ <ConformanceMode>true</ConformanceMode>
261
+ <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
262
+ <PreprocessorDefinitions>%(PreprocessorDefinitions);NDEBUG</PreprocessorDefinitions>
263
+ </ClCompile>
264
+ <Link>
265
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
266
+ <OptimizeReferences>true</OptimizeReferences>
267
+ <SubSystem>Console</SubSystem>
268
+ </Link>
269
+ </ItemDefinitionGroup>
270
+ <ItemGroup>
271
+ <ClCompile Include="..\..\test\test-api-fill.c">
272
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
273
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
274
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
275
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">true</ExcludedFromBuild>
276
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64EC'">true</ExcludedFromBuild>
277
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
278
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">true</ExcludedFromBuild>
279
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|ARM64EC'">true</ExcludedFromBuild>
280
+ </ClCompile>
281
+ <ClCompile Include="..\..\test\test-api.c">
282
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
283
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">false</ExcludedFromBuild>
284
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64EC'">false</ExcludedFromBuild>
285
+ </ClCompile>
286
+ </ItemGroup>
287
+ <ItemGroup>
288
+ <ProjectReference Include="mimalloc-lib.vcxproj">
289
+ <Project>{abb5eae7-b3e6-432e-b636-333449892ea6}</Project>
290
+ </ProjectReference>
291
+ </ItemGroup>
292
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
293
+ <ImportGroup Label="ExtensionTargets">
294
+ </ImportGroup>
295
+ </Project>