Home
last modified time | relevance | path

Searched refs:cpp_reader (Results 1 – 25 of 59) sorted by relevance

123

/freebsd-12.1/contrib/gcclibs/libcpp/include/
H A Dcpplib.h35 typedef struct cpp_reader cpp_reader; typedef
646 extern struct deps *cpp_get_deps (cpp_reader *);
664 extern void cpp_post_options (cpp_reader *);
667 extern void cpp_init_iconv (cpp_reader *);
679 extern void cpp_destroy (cpp_reader *);
682 extern unsigned int cpp_errors (cpp_reader *);
689 void (*) (cpp_reader *), bool);
703 extern bool cpp_interpret_string (cpp_reader *,
721 extern void cpp_undef_all (cpp_reader *);
838 extern void cpp_scan_nooutput (cpp_reader *);
[all …]
H A Dsymtab.h59 struct cpp_reader *pfile;
86 typedef int (*ht_cb) (struct cpp_reader *, hashnode, const void *);
/freebsd-12.1/contrib/gcclibs/libcpp/
H A Dinternal.h315 struct cpp_reader struct
496 cpp_in_system_header (cpp_reader *pfile) in cpp_in_system_header()
510 extern void _cpp_pop_context (cpp_reader *);
538 extern void _cpp_init_files (cpp_reader *);
539 extern void _cpp_cleanup_files (cpp_reader *);
546 extern bool _cpp_parse_expr (cpp_reader *);
551 extern void _cpp_clean_line (cpp_reader *);
552 extern bool _cpp_get_fresh_line (cpp_reader *);
569 extern void _cpp_do__Pragma (cpp_reader *);
574 extern void _cpp_pop_buffer (cpp_reader *);
[all …]
H A Ddirectives.c211 check_eol (cpp_reader *pfile) in check_eol()
548 do_define (cpp_reader *pfile) in do_define()
567 do_undef (cpp_reader *pfile) in do_undef()
838 do_line (cpp_reader *pfile) in do_line()
1004 do_error (cpp_reader *pfile) in do_error()
1018 do_ident (cpp_reader *pfile) in do_ident()
1626 do_ifdef (cpp_reader *pfile) in do_ifdef()
1673 do_if (cpp_reader *pfile) in do_if()
1687 do_else (cpp_reader *pfile) in do_else()
1720 do_elif (cpp_reader *pfile) in do_elif()
[all …]
H A Dfiles.c546 read_file_guts (cpp_reader *pfile, _cpp_file *file) in read_file_guts()
635 read_file (cpp_reader *pfile, _cpp_file *file) in read_file()
1004 allocate_file_hash_entries (cpp_reader *pfile) in allocate_file_hash_entries()
1014 new_file_hash_entry (cpp_reader *pfile) in new_file_hash_entry()
1026 cpp_included (cpp_reader *pfile, const char *fname) in cpp_included()
1080 _cpp_init_files (cpp_reader *pfile) in _cpp_init_files()
1097 _cpp_cleanup_files (cpp_reader *pfile) in _cpp_cleanup_files()
1173 _cpp_report_missing_guards (cpp_reader *pfile) in _cpp_report_missing_guards()
1380 remap_filename (cpp_reader *pfile, _cpp_file *file) in remap_filename()
1468 cpp_get_buffer (cpp_reader *pfile) in cpp_get_buffer()
[all …]
H A Dmacro.c45 static int builtin_macro (cpp_reader *, cpp_hashnode *);
49 static cpp_context *next_context (cpp_reader *);
51 static void expand_arg (cpp_reader *, macro_arg *);
67 static bool parse_params (cpp_reader *, cpp_macro *);
352 stringify_arg (cpp_reader *pfile, macro_arg *arg) in stringify_arg()
958 next_context (cpp_reader *pfile) in next_context()
1024 expand_arg (cpp_reader *pfile, macro_arg *arg) in expand_arg()
1069 _cpp_pop_context (cpp_reader *pfile) in _cpp_pop_context()
1094 cpp_get_token (cpp_reader *pfile) in cpp_get_token()
1171 cpp_sys_macro_p (cpp_reader *pfile) in cpp_sys_macro_p()
[all …]
H A Dinit.c30 static void mark_named_operators (cpp_reader *);
33 static void post_options (cpp_reader *);
137 cpp_reader *
141 cpp_reader *pfile; in cpp_create_reader()
146 pfile = XCNEW (cpp_reader); in cpp_create_reader()
235 cpp_destroy (cpp_reader *pfile) in cpp_destroy()
340 mark_named_operators (cpp_reader *pfile) in mark_named_operators()
410 static void sanity_checks (cpp_reader *);
463 cpp_post_options (cpp_reader *pfile) in cpp_post_options()
511 read_original_filename (cpp_reader *pfile) in read_original_filename()
[all …]
H A Dpch.c26 static int write_macdef (cpp_reader *, cpp_hashnode *, void *);
27 static int save_idents (cpp_reader *, cpp_hashnode *, void *);
31 static int count_defs (cpp_reader *, cpp_hashnode *, void *);
34 static int write_defs (cpp_reader *, cpp_hashnode *, void *);
35 static int save_macros (cpp_reader *, cpp_hashnode *, void *);
193 cpp_save_state (cpp_reader *r, FILE *f) in cpp_save_state()
300 cpp_write_pch_deps (cpp_reader *r, FILE *f) in cpp_write_pch_deps()
355 cpp_write_pch_state (cpp_reader *r, FILE *f) in cpp_write_pch_state()
434 cpp_valid_state (cpp_reader *r, const char *name, int fd) in cpp_valid_state()
605 save_macros (cpp_reader *r, cpp_hashnode *h, void *data_p) in save_macros()
[all …]
H A Dtraditional.c85 static void check_output_buffer (cpp_reader *, size_t);
87 static bool scan_parameters (cpp_reader *, cpp_macro *);
88 static bool recursive_macro (cpp_reader *, cpp_hashnode *);
99 check_output_buffer (cpp_reader *pfile, size_t n) in check_output_buffer()
119 skip_macro_block_comment (cpp_reader *pfile) in skip_macro_block_comment()
244 lex_identifier (cpp_reader *pfile, const uchar *cur) in lex_identifier()
283 _cpp_remove_overlay (cpp_reader *pfile) in _cpp_remove_overlay()
298 _cpp_read_logical_line_trad (cpp_reader *pfile) in _cpp_read_logical_line_trad()
713 recursive_macro (cpp_reader *pfile, cpp_hashnode *node) in recursive_macro()
882 scan_parameters (cpp_reader *pfile, cpp_macro *macro) in scan_parameters()
[all …]
H A Didentifiers.c48 _cpp_init_hashtable (cpp_reader *pfile, hash_table *table) in _cpp_init_hashtable()
80 _cpp_destroy_hashtable (cpp_reader *pfile) in _cpp_destroy_hashtable()
92 cpp_lookup (cpp_reader *pfile, const unsigned char *str, unsigned int len) in cpp_lookup()
100 cpp_defined (cpp_reader *pfile, const unsigned char *str, int len) in cpp_defined()
113 cpp_forall_identifiers (cpp_reader *pfile, cpp_cb cb, void *v) in cpp_forall_identifiers()
H A Dlex.c54 static int skip_line_comment (cpp_reader *);
100 _cpp_clean_line (cpp_reader *pfile) in _cpp_clean_line()
326 _cpp_skip_block_comment (cpp_reader *pfile) in _cpp_skip_block_comment()
384 skip_line_comment (cpp_reader *pfile) in skip_line_comment()
398 skip_whitespace (cpp_reader *pfile, cppchar_t c) in skip_whitespace()
445 warn_about_normalization (cpp_reader *pfile, in warn_about_normalization()
743 _cpp_temp_token (cpp_reader *pfile) in _cpp_temp_token()
763 _cpp_lex_token (cpp_reader *pfile) in _cpp_lex_token()
830 _cpp_get_fresh_line (cpp_reader *pfile) in _cpp_get_fresh_line()
900 _cpp_lex_direct (cpp_reader *pfile) in _cpp_lex_direct()
[all …]
H A Derrors.c31 static void print_location (cpp_reader *, source_location, unsigned int);
38 print_location (cpp_reader *pfile, source_location line, unsigned int col) in print_location()
80 _cpp_begin_message (cpp_reader *pfile, int code, in _cpp_begin_message()
136 cpp_error (cpp_reader * pfile, int level, const char *msgid, ...) in cpp_error()
181 cpp_error_with_line (cpp_reader *pfile, int level, in cpp_error_with_line()
196 cpp_errno (cpp_reader *pfile, int level, const char *msgid) in cpp_errno()
H A Dexpr.c54 static cpp_num num_mul (cpp_reader *, cpp_num, cpp_num);
60 static cpp_num parse_defined (cpp_reader *);
61 static cpp_num eval_token (cpp_reader *, const cpp_token *);
523 parse_defined (cpp_reader *pfile) in parse_defined()
593 eval_token (cpp_reader *pfile, const cpp_token *token) in eval_token()
756 _cpp_parse_expr (cpp_reader *pfile) in _cpp_parse_expr()
1044 _cpp_expand_op_stack (cpp_reader *pfile) in _cpp_expand_op_stack()
1058 check_promotion (cpp_reader *pfile, const struct op *op) in check_promotion()
1176 num_bitwise_op (cpp_reader *pfile ATTRIBUTE_UNUSED, in num_bitwise_op()
1227 num_equality_op (cpp_reader *pfile ATTRIBUTE_UNUSED, in num_equality_op()
[all …]
H A Dcharset.c618 init_iconv_desc (cpp_reader *pfile, const char *to, const char *from) in init_iconv_desc()
679 cpp_init_iconv (cpp_reader *pfile) in cpp_init_iconv()
707 _cpp_destroy_iconv (cpp_reader *pfile) in _cpp_destroy_iconv()
731 cpp_host_to_exec_charset (cpp_reader *pfile, cppchar_t c) in cpp_host_to_exec_charset()
825 ucn_valid_in_identifier (cpp_reader *pfile, cppchar_t c, in ucn_valid_in_identifier()
938 _cpp_valid_ucn (cpp_reader *pfile, const uchar **pstr, in _cpp_valid_ucn()
1071 emit_numeric_escape (cpp_reader *pfile, cppchar_t n, in emit_numeric_escape()
1381 narrow_str_to_charconst (cpp_reader *pfile, cpp_string str, in narrow_str_to_charconst()
1450 wide_str_to_charconst (cpp_reader *pfile, cpp_string str, in wide_str_to_charconst()
1500 cpp_interpret_charconst (cpp_reader *pfile, const cpp_token *token, in cpp_interpret_charconst()
[all …]
H A Dmakedepend.c129 static cpp_reader *
132 cpp_reader *reader; in reader_init()
164 cpp_reader *reader = reader_init (&line_table); in process_file()
H A DChangeLog.gcc4324 * internal.h (struct cpp_reader): Add counter member.
28 * internal.h (struct cpp_reader): Add new fields:
60 * macro.c (lex_expansion_token): Save and restore cpp_reader's
/freebsd-12.1/contrib/gcc/
H A Dc-ppoutput.c43 static void scan_translation_unit (cpp_reader *);
46 static void scan_translation_unit_trad (cpp_reader *);
48 static int dump_macro (cpp_reader *, cpp_hashnode *, void *);
61 static void cb_def_pragma (cpp_reader *, source_location);
67 preprocess_file (cpp_reader *pfile) in preprocess_file()
141 scan_translation_unit (cpp_reader *pfile) in scan_translation_unit()
197 scan_translation_unit_directives_only (cpp_reader *pfile) in scan_translation_unit_directives_only()
218 scan_translation_unit_trad (cpp_reader *pfile) in scan_translation_unit_trad()
301 cb_line_change (cpp_reader *pfile, const cpp_token *token, in cb_line_change()
447 cb_def_pragma (cpp_reader *pfile, source_location line) in cb_def_pragma()
[all …]
H A Dscan-decls.c28 static void skip_to_closing_brace (cpp_reader *);
29 static const cpp_token *get_a_token (cpp_reader *);
48 get_a_token (cpp_reader *pfile) in get_a_token()
59 skip_to_closing_brace (cpp_reader *pfile) in skip_to_closing_brace()
98 scan_decls (cpp_reader *pfile, int argc ATTRIBUTE_UNUSED, in scan_decls()
H A Dc-pragma.c57 static void handle_pragma_pack (cpp_reader *);
145 handle_pragma_pack (cpp_reader * ARG_UNUSED (dummy)) in handle_pragma_pack()
252 static void handle_pragma_weak (cpp_reader *);
335 handle_pragma_weak (cpp_reader * ARG_UNUSED (dummy)) in handle_pragma_weak()
410 static void handle_pragma_redefine_extname (cpp_reader *);
414 handle_pragma_redefine_extname (cpp_reader * ARG_UNUSED (dummy)) in handle_pragma_redefine_extname()
484 handle_pragma_extern_prefix (cpp_reader * ARG_UNUSED (dummy)) in handle_pragma_extern_prefix()
595 static void handle_pragma_visibility (cpp_reader *);
637 handle_pragma_visibility (cpp_reader *dummy ATTRIBUTE_UNUSED) in handle_pragma_visibility()
684 handle_pragma_diagnostic(cpp_reader *ARG_UNUSED(dummy)) in handle_pragma_diagnostic()
H A Dc-lex.c72 static void cb_line_change (cpp_reader *, const cpp_token *, int);
73 static void cb_ident (cpp_reader *, unsigned int, const cpp_string *);
74 static void cb_def_pragma (cpp_reader *, unsigned int);
75 static void cb_define (cpp_reader *, unsigned int, cpp_hashnode *);
76 static void cb_undef (cpp_reader *, unsigned int, cpp_hashnode *);
177 cb_ident (cpp_reader * ARG_UNUSED (pfile), in cb_ident()
198 cb_line_change (cpp_reader * ARG_UNUSED (pfile), const cpp_token *token, in cb_line_change()
274 cb_def_pragma (cpp_reader *pfile, source_location loc) in cb_def_pragma()
309 cb_define (cpp_reader *pfile, source_location loc, cpp_hashnode *node) in cb_define()
318 cb_undef (cpp_reader * ARG_UNUSED (pfile), source_location loc, in cb_undef()
H A Dc-incpath.c54 static void merge_include_chains (cpp_reader *, int);
55 static struct cpp_dir *remove_duplicates (cpp_reader *, struct cpp_dir *,
185 remove_duplicates (cpp_reader *pfile, struct cpp_dir *head, in remove_duplicates()
270 merge_include_chains (cpp_reader *pfile, int verbose) in merge_include_chains()
368 register_include_chains (cpp_reader *pfile, const char *sysroot, in register_include_chains()
H A Dc-pragma.h56 extern struct cpp_reader* parse_in;
84 typedef void (*pragma_handler)(struct cpp_reader *);
/freebsd-12.1/contrib/gcc/config/
H A Ddarwin-protos.h67 extern void darwin_pragma_ignore (struct cpp_reader *);
68 extern void darwin_pragma_options (struct cpp_reader *);
69 extern void darwin_pragma_unused (struct cpp_reader *);
70 extern void darwin_pragma_ms_struct (struct cpp_reader *);
89 extern void darwin_cpp_builtins (struct cpp_reader *);
H A Ddarwin-c.c52 static const char *find_subframework_header (cpp_reader *pfile, const char *header,
93 darwin_pragma_ignore (cpp_reader *pfile ATTRIBUTE_UNUSED) in darwin_pragma_ignore()
101 darwin_pragma_options (cpp_reader *pfile ATTRIBUTE_UNUSED) in darwin_pragma_options()
133 darwin_pragma_unused (cpp_reader *pfile ATTRIBUTE_UNUSED) in darwin_pragma_unused()
165 darwin_pragma_ms_struct (cpp_reader *pfile ATTRIBUTE_UNUSED) in darwin_pragma_ms_struct()
545 find_subframework_header (cpp_reader *pfile, const char *header, cpp_dir **dirp) in find_subframework_header()
610 darwin_cpp_builtins (cpp_reader *pfile) in darwin_cpp_builtins()
/freebsd-12.1/contrib/gcc/cp/
H A Dlex.c45 static void handle_pragma_vtable (cpp_reader *);
46 static void handle_pragma_unit (cpp_reader *);
47 static void handle_pragma_interface (cpp_reader *);
48 static void handle_pragma_implementation (cpp_reader *);
49 static void handle_pragma_java_exceptions (cpp_reader *);
479 handle_pragma_vtable (cpp_reader* dfile ATTRIBUTE_UNUSED ) in handle_pragma_vtable()
486 handle_pragma_unit (cpp_reader* dfile ATTRIBUTE_UNUSED ) in handle_pragma_unit()
493 handle_pragma_interface (cpp_reader* dfile ATTRIBUTE_UNUSED ) in handle_pragma_interface()
533 handle_pragma_implementation (cpp_reader* dfile ATTRIBUTE_UNUSED ) in handle_pragma_implementation()
582 handle_pragma_java_exceptions (cpp_reader* dfile ATTRIBUTE_UNUSED) in handle_pragma_java_exceptions()

123