typenative 0.0.4 → 0.0.6

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 (107) hide show
  1. package/bin/index.js +1 -1
  2. package/package.json +1 -1
  3. package/tcc/doc/tcc-doc.html +2418 -0
  4. package/tcc/doc/tcc-win32.txt +156 -0
  5. package/tcc/examples/dll.c +12 -0
  6. package/tcc/examples/fib.c +23 -0
  7. package/tcc/examples/hello_dll.c +19 -0
  8. package/tcc/examples/hello_win.c +163 -0
  9. package/tcc/examples/libtcc_test.c +76 -0
  10. package/tcc/include/_mingw.h +139 -0
  11. package/tcc/include/assert.h +54 -0
  12. package/tcc/include/conio.h +409 -0
  13. package/tcc/include/ctype.h +281 -0
  14. package/tcc/include/dir.h +31 -0
  15. package/tcc/include/direct.h +68 -0
  16. package/tcc/include/dirent.h +135 -0
  17. package/tcc/include/dos.h +55 -0
  18. package/tcc/include/errno.h +75 -0
  19. package/tcc/include/excpt.h +123 -0
  20. package/tcc/include/fcntl.h +52 -0
  21. package/tcc/include/fenv.h +108 -0
  22. package/tcc/include/float.h +57 -0
  23. package/tcc/include/inttypes.h +297 -0
  24. package/tcc/include/io.h +418 -0
  25. package/tcc/include/limits.h +111 -0
  26. package/tcc/include/locale.h +91 -0
  27. package/tcc/include/malloc.h +175 -0
  28. package/tcc/include/math.h +777 -0
  29. package/tcc/include/mem.h +13 -0
  30. package/tcc/include/memory.h +40 -0
  31. package/tcc/include/process.h +176 -0
  32. package/tcc/include/sec_api/conio_s.h +42 -0
  33. package/tcc/include/sec_api/crtdbg_s.h +19 -0
  34. package/tcc/include/sec_api/io_s.h +33 -0
  35. package/tcc/include/sec_api/mbstring_s.h +52 -0
  36. package/tcc/include/sec_api/search_s.h +25 -0
  37. package/tcc/include/sec_api/stdio_s.h +145 -0
  38. package/tcc/include/sec_api/stdlib_s.h +67 -0
  39. package/tcc/include/sec_api/stralign_s.h +30 -0
  40. package/tcc/include/sec_api/string_s.h +41 -0
  41. package/tcc/include/sec_api/sys/timeb_s.h +34 -0
  42. package/tcc/include/sec_api/tchar_s.h +266 -0
  43. package/tcc/include/sec_api/time_s.h +61 -0
  44. package/tcc/include/sec_api/wchar_s.h +128 -0
  45. package/tcc/include/setjmp.h +160 -0
  46. package/tcc/include/share.h +28 -0
  47. package/tcc/include/signal.h +63 -0
  48. package/tcc/include/stdarg.h +41 -0
  49. package/tcc/include/stdbool.h +10 -0
  50. package/tcc/include/stddef.h +28 -0
  51. package/tcc/include/stdint.h +209 -0
  52. package/tcc/include/stdio.h +429 -0
  53. package/tcc/include/stdlib.h +580 -0
  54. package/tcc/include/string.h +164 -0
  55. package/tcc/include/sys/fcntl.h +13 -0
  56. package/tcc/include/sys/file.h +14 -0
  57. package/tcc/include/sys/locking.h +30 -0
  58. package/tcc/include/sys/stat.h +290 -0
  59. package/tcc/include/sys/time.h +69 -0
  60. package/tcc/include/sys/timeb.h +133 -0
  61. package/tcc/include/sys/types.h +118 -0
  62. package/tcc/include/sys/unistd.h +14 -0
  63. package/tcc/include/sys/utime.h +146 -0
  64. package/tcc/include/tcclib.h +78 -0
  65. package/tcc/include/tchar.h +1102 -0
  66. package/tcc/include/time.h +287 -0
  67. package/tcc/include/vadefs.h +11 -0
  68. package/tcc/include/values.h +4 -0
  69. package/tcc/include/varargs.h +12 -0
  70. package/tcc/include/wchar.h +871 -0
  71. package/tcc/include/wctype.h +172 -0
  72. package/tcc/include/winapi/basetsd.h +149 -0
  73. package/tcc/include/winapi/basetyps.h +85 -0
  74. package/tcc/include/winapi/guiddef.h +151 -0
  75. package/tcc/include/winapi/intrin.h +11 -0
  76. package/tcc/include/winapi/poppack.h +8 -0
  77. package/tcc/include/winapi/pshpack1.h +8 -0
  78. package/tcc/include/winapi/pshpack2.h +8 -0
  79. package/tcc/include/winapi/pshpack4.h +8 -0
  80. package/tcc/include/winapi/pshpack8.h +8 -0
  81. package/tcc/include/winapi/reason.h +80 -0
  82. package/tcc/include/winapi/specstrings.h +7 -0
  83. package/tcc/include/winapi/stralign.h +154 -0
  84. package/tcc/include/winapi/tvout.h +79 -0
  85. package/tcc/include/winapi/winbase.h +2951 -0
  86. package/tcc/include/winapi/wincon.h +301 -0
  87. package/tcc/include/winapi/windef.h +293 -0
  88. package/tcc/include/winapi/windows.h +123 -0
  89. package/tcc/include/winapi/winerror.h +3166 -0
  90. package/tcc/include/winapi/wingdi.h +4080 -0
  91. package/tcc/include/winapi/winnetwk.h +476 -0
  92. package/tcc/include/winapi/winnls.h +765 -0
  93. package/tcc/include/winapi/winnt.h +5770 -0
  94. package/tcc/include/winapi/winreg.h +272 -0
  95. package/tcc/include/winapi/winuser.h +5651 -0
  96. package/tcc/include/winapi/winver.h +160 -0
  97. package/tcc/lib/gdi32.def +337 -0
  98. package/tcc/lib/kernel32.def +765 -0
  99. package/tcc/lib/libtcc1.a +0 -0
  100. package/tcc/lib/msvcrt.def +1399 -0
  101. package/tcc/lib/user32.def +654 -0
  102. package/tcc/libtcc/libtcc.def +38 -0
  103. package/tcc/libtcc/libtcc.h +100 -0
  104. package/tcc/libtcc.dll +0 -0
  105. package/tcc/tcc.exe +0 -0
  106. package/tcc/tiny_impdef.exe +0 -0
  107. package/tcc/tiny_libmaker.exe +0 -0
package/bin/index.js CHANGED
@@ -34,7 +34,7 @@ import { transpileToC } from './transpiler.js';
34
34
  const cCode = transpileToC(tsCode);
35
35
  await fs.ensureDir('dist');
36
36
  await fs.writeFile('dist/code.c', cCode, { encoding: 'utf-8' });
37
- shell.exec(`${path.resolve()}\\tcc\\tcc.exe -g ${path.resolve()}/dist/code.c -o ${path.resolve()}/dist/native.exe ${scriptMode ? '-run' : ''}`);
37
+ shell.exec(`${__dirname ?? path.resolve()}/tcc/tcc.exe -g ${path.resolve()}/dist/code.c -o ${path.resolve()}/dist/native.exe ${scriptMode ? '-run' : ''}`);
38
38
  if (answers.output) {
39
39
  await fs.copy('dist/native.exe', answers.output, { overwrite: true });
40
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typenative",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Build native applications using Typescript.",
5
5
  "type": "module",
6
6
  "bin": {