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.
- package/bin/index.js +1 -1
- package/package.json +1 -1
- package/tcc/doc/tcc-doc.html +2418 -0
- package/tcc/doc/tcc-win32.txt +156 -0
- package/tcc/examples/dll.c +12 -0
- package/tcc/examples/fib.c +23 -0
- package/tcc/examples/hello_dll.c +19 -0
- package/tcc/examples/hello_win.c +163 -0
- package/tcc/examples/libtcc_test.c +76 -0
- package/tcc/include/_mingw.h +139 -0
- package/tcc/include/assert.h +54 -0
- package/tcc/include/conio.h +409 -0
- package/tcc/include/ctype.h +281 -0
- package/tcc/include/dir.h +31 -0
- package/tcc/include/direct.h +68 -0
- package/tcc/include/dirent.h +135 -0
- package/tcc/include/dos.h +55 -0
- package/tcc/include/errno.h +75 -0
- package/tcc/include/excpt.h +123 -0
- package/tcc/include/fcntl.h +52 -0
- package/tcc/include/fenv.h +108 -0
- package/tcc/include/float.h +57 -0
- package/tcc/include/inttypes.h +297 -0
- package/tcc/include/io.h +418 -0
- package/tcc/include/limits.h +111 -0
- package/tcc/include/locale.h +91 -0
- package/tcc/include/malloc.h +175 -0
- package/tcc/include/math.h +777 -0
- package/tcc/include/mem.h +13 -0
- package/tcc/include/memory.h +40 -0
- package/tcc/include/process.h +176 -0
- package/tcc/include/sec_api/conio_s.h +42 -0
- package/tcc/include/sec_api/crtdbg_s.h +19 -0
- package/tcc/include/sec_api/io_s.h +33 -0
- package/tcc/include/sec_api/mbstring_s.h +52 -0
- package/tcc/include/sec_api/search_s.h +25 -0
- package/tcc/include/sec_api/stdio_s.h +145 -0
- package/tcc/include/sec_api/stdlib_s.h +67 -0
- package/tcc/include/sec_api/stralign_s.h +30 -0
- package/tcc/include/sec_api/string_s.h +41 -0
- package/tcc/include/sec_api/sys/timeb_s.h +34 -0
- package/tcc/include/sec_api/tchar_s.h +266 -0
- package/tcc/include/sec_api/time_s.h +61 -0
- package/tcc/include/sec_api/wchar_s.h +128 -0
- package/tcc/include/setjmp.h +160 -0
- package/tcc/include/share.h +28 -0
- package/tcc/include/signal.h +63 -0
- package/tcc/include/stdarg.h +41 -0
- package/tcc/include/stdbool.h +10 -0
- package/tcc/include/stddef.h +28 -0
- package/tcc/include/stdint.h +209 -0
- package/tcc/include/stdio.h +429 -0
- package/tcc/include/stdlib.h +580 -0
- package/tcc/include/string.h +164 -0
- package/tcc/include/sys/fcntl.h +13 -0
- package/tcc/include/sys/file.h +14 -0
- package/tcc/include/sys/locking.h +30 -0
- package/tcc/include/sys/stat.h +290 -0
- package/tcc/include/sys/time.h +69 -0
- package/tcc/include/sys/timeb.h +133 -0
- package/tcc/include/sys/types.h +118 -0
- package/tcc/include/sys/unistd.h +14 -0
- package/tcc/include/sys/utime.h +146 -0
- package/tcc/include/tcclib.h +78 -0
- package/tcc/include/tchar.h +1102 -0
- package/tcc/include/time.h +287 -0
- package/tcc/include/vadefs.h +11 -0
- package/tcc/include/values.h +4 -0
- package/tcc/include/varargs.h +12 -0
- package/tcc/include/wchar.h +871 -0
- package/tcc/include/wctype.h +172 -0
- package/tcc/include/winapi/basetsd.h +149 -0
- package/tcc/include/winapi/basetyps.h +85 -0
- package/tcc/include/winapi/guiddef.h +151 -0
- package/tcc/include/winapi/intrin.h +11 -0
- package/tcc/include/winapi/poppack.h +8 -0
- package/tcc/include/winapi/pshpack1.h +8 -0
- package/tcc/include/winapi/pshpack2.h +8 -0
- package/tcc/include/winapi/pshpack4.h +8 -0
- package/tcc/include/winapi/pshpack8.h +8 -0
- package/tcc/include/winapi/reason.h +80 -0
- package/tcc/include/winapi/specstrings.h +7 -0
- package/tcc/include/winapi/stralign.h +154 -0
- package/tcc/include/winapi/tvout.h +79 -0
- package/tcc/include/winapi/winbase.h +2951 -0
- package/tcc/include/winapi/wincon.h +301 -0
- package/tcc/include/winapi/windef.h +293 -0
- package/tcc/include/winapi/windows.h +123 -0
- package/tcc/include/winapi/winerror.h +3166 -0
- package/tcc/include/winapi/wingdi.h +4080 -0
- package/tcc/include/winapi/winnetwk.h +476 -0
- package/tcc/include/winapi/winnls.h +765 -0
- package/tcc/include/winapi/winnt.h +5770 -0
- package/tcc/include/winapi/winreg.h +272 -0
- package/tcc/include/winapi/winuser.h +5651 -0
- package/tcc/include/winapi/winver.h +160 -0
- package/tcc/lib/gdi32.def +337 -0
- package/tcc/lib/kernel32.def +765 -0
- package/tcc/lib/libtcc1.a +0 -0
- package/tcc/lib/msvcrt.def +1399 -0
- package/tcc/lib/user32.def +654 -0
- package/tcc/libtcc/libtcc.def +38 -0
- package/tcc/libtcc/libtcc.h +100 -0
- package/tcc/libtcc.dll +0 -0
- package/tcc/tcc.exe +0 -0
- package/tcc/tiny_impdef.exe +0 -0
- package/tcc/tiny_libmaker.exe +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
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
|
package/tcc/libtcc.dll
ADDED
|
Binary file
|
package/tcc/tcc.exe
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|