typenative 0.0.8 → 0.0.10

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 (111) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +42 -9
  3. package/bin/index.js +11 -5
  4. package/bin/transpiler.js +89 -13
  5. package/package.json +11 -8
  6. package/types/typenative.d.ts +1 -3
  7. package/bin/tcc/doc/tcc-doc.html +0 -2418
  8. package/bin/tcc/doc/tcc-win32.txt +0 -156
  9. package/bin/tcc/examples/dll.c +0 -12
  10. package/bin/tcc/examples/fib.c +0 -23
  11. package/bin/tcc/examples/hello_dll.c +0 -19
  12. package/bin/tcc/examples/hello_win.c +0 -163
  13. package/bin/tcc/examples/libtcc_test.c +0 -76
  14. package/bin/tcc/include/_mingw.h +0 -139
  15. package/bin/tcc/include/assert.h +0 -54
  16. package/bin/tcc/include/conio.h +0 -409
  17. package/bin/tcc/include/ctype.h +0 -281
  18. package/bin/tcc/include/dir.h +0 -31
  19. package/bin/tcc/include/direct.h +0 -68
  20. package/bin/tcc/include/dirent.h +0 -135
  21. package/bin/tcc/include/dos.h +0 -55
  22. package/bin/tcc/include/errno.h +0 -75
  23. package/bin/tcc/include/excpt.h +0 -123
  24. package/bin/tcc/include/fcntl.h +0 -52
  25. package/bin/tcc/include/fenv.h +0 -108
  26. package/bin/tcc/include/float.h +0 -57
  27. package/bin/tcc/include/inttypes.h +0 -297
  28. package/bin/tcc/include/io.h +0 -418
  29. package/bin/tcc/include/limits.h +0 -111
  30. package/bin/tcc/include/locale.h +0 -91
  31. package/bin/tcc/include/malloc.h +0 -175
  32. package/bin/tcc/include/math.h +0 -777
  33. package/bin/tcc/include/mem.h +0 -13
  34. package/bin/tcc/include/memory.h +0 -40
  35. package/bin/tcc/include/process.h +0 -176
  36. package/bin/tcc/include/sec_api/conio_s.h +0 -42
  37. package/bin/tcc/include/sec_api/crtdbg_s.h +0 -19
  38. package/bin/tcc/include/sec_api/io_s.h +0 -33
  39. package/bin/tcc/include/sec_api/mbstring_s.h +0 -52
  40. package/bin/tcc/include/sec_api/search_s.h +0 -25
  41. package/bin/tcc/include/sec_api/stdio_s.h +0 -145
  42. package/bin/tcc/include/sec_api/stdlib_s.h +0 -67
  43. package/bin/tcc/include/sec_api/stralign_s.h +0 -30
  44. package/bin/tcc/include/sec_api/string_s.h +0 -41
  45. package/bin/tcc/include/sec_api/sys/timeb_s.h +0 -34
  46. package/bin/tcc/include/sec_api/tchar_s.h +0 -266
  47. package/bin/tcc/include/sec_api/time_s.h +0 -61
  48. package/bin/tcc/include/sec_api/wchar_s.h +0 -128
  49. package/bin/tcc/include/setjmp.h +0 -160
  50. package/bin/tcc/include/share.h +0 -28
  51. package/bin/tcc/include/signal.h +0 -63
  52. package/bin/tcc/include/stdarg.h +0 -41
  53. package/bin/tcc/include/stdbool.h +0 -10
  54. package/bin/tcc/include/stddef.h +0 -28
  55. package/bin/tcc/include/stdint.h +0 -209
  56. package/bin/tcc/include/stdio.h +0 -429
  57. package/bin/tcc/include/stdlib.h +0 -580
  58. package/bin/tcc/include/string.h +0 -164
  59. package/bin/tcc/include/sys/fcntl.h +0 -13
  60. package/bin/tcc/include/sys/file.h +0 -14
  61. package/bin/tcc/include/sys/locking.h +0 -30
  62. package/bin/tcc/include/sys/stat.h +0 -290
  63. package/bin/tcc/include/sys/time.h +0 -69
  64. package/bin/tcc/include/sys/timeb.h +0 -133
  65. package/bin/tcc/include/sys/types.h +0 -118
  66. package/bin/tcc/include/sys/unistd.h +0 -14
  67. package/bin/tcc/include/sys/utime.h +0 -146
  68. package/bin/tcc/include/tcclib.h +0 -78
  69. package/bin/tcc/include/tchar.h +0 -1102
  70. package/bin/tcc/include/time.h +0 -287
  71. package/bin/tcc/include/vadefs.h +0 -11
  72. package/bin/tcc/include/values.h +0 -4
  73. package/bin/tcc/include/varargs.h +0 -12
  74. package/bin/tcc/include/wchar.h +0 -871
  75. package/bin/tcc/include/wctype.h +0 -172
  76. package/bin/tcc/include/winapi/basetsd.h +0 -149
  77. package/bin/tcc/include/winapi/basetyps.h +0 -85
  78. package/bin/tcc/include/winapi/guiddef.h +0 -151
  79. package/bin/tcc/include/winapi/intrin.h +0 -11
  80. package/bin/tcc/include/winapi/poppack.h +0 -8
  81. package/bin/tcc/include/winapi/pshpack1.h +0 -8
  82. package/bin/tcc/include/winapi/pshpack2.h +0 -8
  83. package/bin/tcc/include/winapi/pshpack4.h +0 -8
  84. package/bin/tcc/include/winapi/pshpack8.h +0 -8
  85. package/bin/tcc/include/winapi/reason.h +0 -80
  86. package/bin/tcc/include/winapi/specstrings.h +0 -7
  87. package/bin/tcc/include/winapi/stralign.h +0 -154
  88. package/bin/tcc/include/winapi/tvout.h +0 -79
  89. package/bin/tcc/include/winapi/winbase.h +0 -2951
  90. package/bin/tcc/include/winapi/wincon.h +0 -301
  91. package/bin/tcc/include/winapi/windef.h +0 -293
  92. package/bin/tcc/include/winapi/windows.h +0 -123
  93. package/bin/tcc/include/winapi/winerror.h +0 -3166
  94. package/bin/tcc/include/winapi/wingdi.h +0 -4080
  95. package/bin/tcc/include/winapi/winnetwk.h +0 -476
  96. package/bin/tcc/include/winapi/winnls.h +0 -765
  97. package/bin/tcc/include/winapi/winnt.h +0 -5770
  98. package/bin/tcc/include/winapi/winreg.h +0 -272
  99. package/bin/tcc/include/winapi/winuser.h +0 -5651
  100. package/bin/tcc/include/winapi/winver.h +0 -160
  101. package/bin/tcc/lib/gdi32.def +0 -337
  102. package/bin/tcc/lib/kernel32.def +0 -765
  103. package/bin/tcc/lib/libtcc1.a +0 -0
  104. package/bin/tcc/lib/msvcrt.def +0 -1399
  105. package/bin/tcc/lib/user32.def +0 -654
  106. package/bin/tcc/libtcc/libtcc.def +0 -38
  107. package/bin/tcc/libtcc/libtcc.h +0 -100
  108. package/bin/tcc/libtcc.dll +0 -0
  109. package/bin/tcc/tcc.exe +0 -0
  110. package/bin/tcc/tiny_impdef.exe +0 -0
  111. package/bin/tcc/tiny_libmaker.exe +0 -0
@@ -1,100 +0,0 @@
1
- #ifndef LIBTCC_H
2
- #define LIBTCC_H
3
-
4
- #ifndef LIBTCCAPI
5
- # define LIBTCCAPI
6
- #endif
7
-
8
- #ifdef __cplusplus
9
- extern "C" {
10
- #endif
11
-
12
- struct TCCState;
13
-
14
- typedef struct TCCState TCCState;
15
-
16
- /* create a new TCC compilation context */
17
- LIBTCCAPI TCCState *tcc_new(void);
18
-
19
- /* free a TCC compilation context */
20
- LIBTCCAPI void tcc_delete(TCCState *s);
21
-
22
- /* set CONFIG_TCCDIR at runtime */
23
- LIBTCCAPI void tcc_set_lib_path(TCCState *s, const char *path);
24
-
25
- /* set error/warning display callback */
26
- LIBTCCAPI void tcc_set_error_func(TCCState *s, void *error_opaque,
27
- void (*error_func)(void *opaque, const char *msg));
28
-
29
- /* set options as from command line (multiple supported) */
30
- LIBTCCAPI int tcc_set_options(TCCState *s, const char *str);
31
-
32
- /*****************************/
33
- /* preprocessor */
34
-
35
- /* add include path */
36
- LIBTCCAPI int tcc_add_include_path(TCCState *s, const char *pathname);
37
-
38
- /* add in system include path */
39
- LIBTCCAPI int tcc_add_sysinclude_path(TCCState *s, const char *pathname);
40
-
41
- /* define preprocessor symbol 'sym'. Can put optional value */
42
- LIBTCCAPI void tcc_define_symbol(TCCState *s, const char *sym, const char *value);
43
-
44
- /* undefine preprocess symbol 'sym' */
45
- LIBTCCAPI void tcc_undefine_symbol(TCCState *s, const char *sym);
46
-
47
- /*****************************/
48
- /* compiling */
49
-
50
- /* add a file (C file, dll, object, library, ld script). Return -1 if error. */
51
- LIBTCCAPI int tcc_add_file(TCCState *s, const char *filename);
52
-
53
- /* compile a string containing a C source. Return -1 if error. */
54
- LIBTCCAPI int tcc_compile_string(TCCState *s, const char *buf);
55
-
56
- /*****************************/
57
- /* linking commands */
58
-
59
- /* set output type. MUST BE CALLED before any compilation */
60
- LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type);
61
- #define TCC_OUTPUT_MEMORY 0 /* output will be run in memory (default) */
62
- #define TCC_OUTPUT_EXE 1 /* executable file */
63
- #define TCC_OUTPUT_DLL 2 /* dynamic library */
64
- #define TCC_OUTPUT_OBJ 3 /* object file */
65
- #define TCC_OUTPUT_PREPROCESS 4 /* only preprocess (used internally) */
66
-
67
- /* equivalent to -Lpath option */
68
- LIBTCCAPI int tcc_add_library_path(TCCState *s, const char *pathname);
69
-
70
- /* the library name is the same as the argument of the '-l' option */
71
- LIBTCCAPI int tcc_add_library(TCCState *s, const char *libraryname);
72
-
73
- /* add a symbol to the compiled program */
74
- LIBTCCAPI int tcc_add_symbol(TCCState *s, const char *name, const void *val);
75
-
76
- /* output an executable, library or object file. DO NOT call
77
- tcc_relocate() before. */
78
- LIBTCCAPI int tcc_output_file(TCCState *s, const char *filename);
79
-
80
- /* link and run main() function and return its value. DO NOT call
81
- tcc_relocate() before. */
82
- LIBTCCAPI int tcc_run(TCCState *s, int argc, char **argv);
83
-
84
- /* do all relocations (needed before using tcc_get_symbol()) */
85
- LIBTCCAPI int tcc_relocate(TCCState *s1, void *ptr);
86
- /* possible values for 'ptr':
87
- - TCC_RELOCATE_AUTO : Allocate and manage memory internally
88
- - NULL : return required memory size for the step below
89
- - memory address : copy code to memory passed by the caller
90
- returns -1 if error. */
91
- #define TCC_RELOCATE_AUTO (void*)1
92
-
93
- /* return symbol value or NULL if not found */
94
- LIBTCCAPI void *tcc_get_symbol(TCCState *s, const char *name);
95
-
96
- #ifdef __cplusplus
97
- }
98
- #endif
99
-
100
- #endif
Binary file
package/bin/tcc/tcc.exe DELETED
Binary file
Binary file
Binary file