Lines Matching refs:TCCState

1974 struct TCCState;
1976 typedef struct TCCState TCCState; typedef
1979 TCCState *tcc_new(void);
1982 void tcc_delete(TCCState *s);
1985 void tcc_enable_debug(TCCState *s);
1988 void tcc_set_error_func(TCCState *s, void *error_opaque,
1992 int tcc_set_warning(TCCState *s, const char *warning_name, int value);
1998 int tcc_add_include_path(TCCState *s, const char *pathname);
2001 int tcc_add_sysinclude_path(TCCState *s, const char *pathname);
2004 void tcc_define_symbol(TCCState *s, const char *sym, const char *value);
2007 void tcc_undefine_symbol(TCCState *s, const char *sym);
2014 int tcc_add_file(TCCState *s, const char *filename);
2018 int tcc_compile_string(TCCState *s, const char *buf);
2029 int tcc_set_output_type(TCCState *s, int output_type);
2036 int tcc_add_library_path(TCCState *s, const char *pathname);
2039 int tcc_add_library(TCCState *s, const char *libraryname);
2042 int tcc_add_symbol(TCCState *s, const char *name, unsigned long val);
2046 int tcc_output_file(TCCState *s, const char *filename);
2050 int tcc_run(TCCState *s, int argc, char **argv);
2054 int tcc_relocate(TCCState *s);
2057 int tcc_get_symbol(TCCState *s, unsigned long *pval, const char *name);
2402 static struct TCCState *tcc_state;
2407 struct TCCState { struct
5483 static int tcc_add_dll(TCCState *s, const char *filename, int flags);
5487 static int tcc_add_file_internal(TCCState *s, const char *filename, int flags);
5490 int tcc_output_coff(TCCState *s1, FILE *f);
5493 void *resolve_sym(TCCState *s1, const char *sym, int type);
5494 int pe_load_def_file(struct TCCState *s1, FILE *fp);
5495 void pe_setup_paths(struct TCCState *s1, int *p_output_type, const char **p_outfile, char *first_fi…
5496 unsigned long pe_add_runtime(struct TCCState *s1);
5497 int tcc_output_pe(struct TCCState *s1, const char *filename);
5524 static void asm_expr(TCCState *s1, ExprValue *pe);
5525 static int asm_int_expr(TCCState *s1);
5529 static int tcc_assemble(TCCState *s1, int do_preprocess);
6613 void *resolve_sym(TCCState *s1, const char *symbol, int type) in resolve_sym()
6629 void *resolve_sym(TCCState *s1, const char *sym, int type) in resolve_sym()
6816 Section *new_section(TCCState *s1, const char *name, int sh_type, int sh_flags) in new_section()
6889 Section *find_section(TCCState *s1, const char *name) in find_section()
7030 void error1(TCCState *s1, int is_warning, const char *fmt, va_list ap) in error1()
7066 void tcc_set_error_func(TCCState *s, void *error_opaque, in tcc_set_error_func()
7077 TCCState *s1 = tcc_state; in error_noabort()
7087 TCCState *s1 = tcc_state; in error()
7109 TCCState *s1 = tcc_state; in warning()
7500 BufferedFile *tcc_open(TCCState *s1, const char *filename) in tcc_open()
8381 static CachedInclude *search_cached_include(TCCState *s1, in search_cached_include()
8399 static inline void add_cached_include(TCCState *s1, int type, in add_cached_include()
8423 static void pragma_parse(TCCState *s1) in pragma_parse()
8473 TCCState *s1 = tcc_state; in preprocess()
9192 TCCState *s1 = tcc_state; in next_nomacro1()
14813 static void preprocess_init(TCCState *s1) in preprocess_init()
14828 static int tcc_compile(TCCState *s1) in tcc_compile()
14918 int tcc_compile_string(TCCState *s, const char *str) in tcc_compile_string()
14949 void tcc_define_symbol(TCCState *s1, const char *sym, const char *value) in tcc_define_symbol()
14979 void tcc_undefine_symbol(TCCState *s1, const char *sym) in tcc_undefine_symbol()
16070 static inline int get_reg_shift(TCCState *s1) in get_reg_shift()
16113 static void parse_operand(TCCState *s1, Operand *op) in parse_operand()
16303 static void asm_opcode(TCCState *s1, int opcode) in asm_opcode()
17102 static int asm_get_local_label_name(TCCState *s1, unsigned int n) in asm_get_local_label_name()
17112 static void asm_expr(TCCState *s1, ExprValue *pe);
17117 static void asm_expr_unary(TCCState *s1, ExprValue *pe) in asm_expr_unary()
17207 static void asm_expr_prod(TCCState *s1, ExprValue *pe) in asm_expr_prod()
17249 static void asm_expr_logic(TCCState *s1, ExprValue *pe) in asm_expr_logic()
17278 static inline void asm_expr_sum(TCCState *s1, ExprValue *pe) in asm_expr_sum()
17322 static void asm_expr(TCCState *s1, ExprValue *pe) in asm_expr()
17327 static int asm_int_expr(TCCState *s1) in asm_int_expr()
17338 static void asm_new_label1(TCCState *s1, int label, int is_local, in asm_new_label1()
17364 static void asm_new_label(TCCState *s1, int label, int is_local) in asm_new_label()
17369 static void asm_free_labels(TCCState *st) in asm_free_labels()
17391 static void use_section1(TCCState *s1, Section *sec) in use_section1()
17398 static void use_section(TCCState *s1, const char *name) in use_section()
17405 static void asm_parse_directive(TCCState *s1) in asm_parse_directive()
17663 static int tcc_assemble_internal(TCCState *s1, int do_preprocess) in tcc_assemble_internal()
17763 static int tcc_assemble(TCCState *s1, int do_preprocess) in tcc_assemble()
17791 static void tcc_assemble_inline(TCCState *s1, char *str, int len) in tcc_assemble_inline()
18274 int tcc_get_symbol(TCCState *s, unsigned long *pval, const char *name) in tcc_get_symbol()
18287 void *tcc_get_symbol_err(TCCState *s, const char *name) in tcc_get_symbol_err()
18423 static void sort_syms(TCCState *s1, Section *s) in sort_syms()
18508 static void relocate_syms(TCCState *s1, int do_resolve) in relocate_syms()
18559 static void relocate_section(TCCState *s1, Section *s) in relocate_section()
18704 static void relocate_rel(TCCState *s1, Section *sr) in relocate_rel()
18720 static int prepare_dynamic_rel(TCCState *s1, Section *sr) in prepare_dynamic_rel()
18751 static void put_got_offset(TCCState *s1, int index, unsigned long val) in put_got_offset()
18788 static void build_got(TCCState *s1) in build_got()
18807 static void put_got_entry(TCCState *s1, in put_got_entry()
18918 static void build_got_entries(TCCState *s1) in build_got_entries()
19006 static Section *new_symtab(TCCState *s1, in new_symtab()
19044 static void add_init_array_defines(TCCState *s1, const char *section_name) in add_init_array_defines()
19073 static void tcc_add_runtime(TCCState *s1) in tcc_add_runtime()
19123 static void tcc_add_linker_symbols(TCCState *s1) in tcc_add_linker_symbols()
19187 static void tcc_output_binary(TCCState *s1, FILE *f, in tcc_output_binary()
19211 int tcc_output_file(TCCState *s1, const char *filename) in tcc_output_file()
19861 static int tcc_load_object_file(TCCState *s1, in tcc_load_object_file()
20113 static int tcc_load_alacarte(TCCState *s1, int fd, int size) in tcc_load_alacarte()
20157 static int tcc_load_archive(TCCState *s1, int fd) in tcc_load_archive()
20211 static int tcc_load_dll(TCCState *s1, int fd, const char *filename, int level) in tcc_load_dll()
20331 static int ld_next(TCCState *s1, char *name, int name_size) in ld_next()
20399 static int tcc_load_ldscript(TCCState *s1) in tcc_load_ldscript()
20669 int tcc_relocate(TCCState *s1) in tcc_relocate()
20714 int tcc_run(TCCState *s1, int argc, char **argv) in tcc_run()
20757 TCCState *tcc_new(void) in tcc_new()
20760 TCCState *s; in tcc_new()
20764 s = tcc_mallocz(sizeof(TCCState)); in tcc_new()
20868 void tcc_delete(TCCState *s1) in tcc_delete()
20919 int tcc_add_include_path(TCCState *s1, const char *pathname) in tcc_add_include_path()
20928 int tcc_add_sysinclude_path(TCCState *s1, const char *pathname) in tcc_add_sysinclude_path()
20937 static int tcc_add_file_internal(TCCState *s1, const char *filename, int flags) in tcc_add_file_internal()
21054 int tcc_add_file(TCCState *s, const char *filename) in tcc_add_file()
21059 int tcc_add_library_path(TCCState *s, const char *pathname) in tcc_add_library_path()
21070 static int tcc_add_dll(TCCState *s, const char *filename, int flags) in tcc_add_dll()
21085 int tcc_add_library(TCCState *s, const char *libraryname) in tcc_add_library()
21111 int tcc_add_symbol(TCCState *s, const char *name, unsigned long val) in tcc_add_symbol()
21119 int tcc_set_output_type(TCCState *s, int output_type) in tcc_set_output_type()
21191 { offsetof(TCCState, warn_unsupported), 0, "unsupported" },
21192 { offsetof(TCCState, warn_write_strings), 0, "write-strings" },
21193 { offsetof(TCCState, warn_error), 0, "error" },
21194 { offsetof(TCCState, warn_implicit_function_declaration), WD_ALL,
21198 static int set_flag(TCCState *s, const FlagDef *flags, int nb_flags, in set_flag()
21224 int tcc_set_warning(TCCState *s, const char *warning_name, int value) in tcc_set_warning()
21242 { offsetof(TCCState, char_is_unsigned), 0, "unsigned-char" },
21243 { offsetof(TCCState, char_is_unsigned), FD_INVERT, "signed-char" },
21244 { offsetof(TCCState, nocommon), FD_INVERT, "common" },
21245 { offsetof(TCCState, leading_underscore), 0, "leading-underscore" },
21249 int tcc_set_flag(TCCState *s, const char *flag_name, int value) in tcc_set_flag()
21435 int parse_args(TCCState *s, int argc, char **argv) in parse_args()
21641 TCCState *s; in main2()