Home
last modified time | relevance | path

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

123

/NextBSD/contrib/gcclibs/libcpp/include/
HDcpplib.h35 typedef struct cpp_reader cpp_reader; typedef
459 typedef const char *(*missing_header_cb)(cpp_reader *, const char *header, cpp_dir **);
465 void (*line_change) (cpp_reader *, const cpp_token *, int);
471 void (*file_change) (cpp_reader *, const struct line_map *);
473 void (*dir_change) (cpp_reader *, const char *);
474 void (*include) (cpp_reader *, unsigned int, const unsigned char *,
476 void (*define) (cpp_reader *, unsigned int, cpp_hashnode *);
477 void (*undef) (cpp_reader *, unsigned int, cpp_hashnode *);
478 void (*ident) (cpp_reader *, unsigned int, const cpp_string *);
479 void (*def_pragma) (cpp_reader *, unsigned int);
[all …]
HDsymtab.h59 struct cpp_reader *pfile;
86 typedef int (*ht_cb) (struct cpp_reader *, hashnode, const void *);
/NextBSD/contrib/gcclibs/libcpp/
HDinternal.h105 extern _cpp_buff *_cpp_get_buff (cpp_reader *, size_t);
106 extern void _cpp_release_buff (cpp_reader *, _cpp_buff *);
107 extern void _cpp_extend_buff (cpp_reader *, _cpp_buff **, size_t);
108 extern _cpp_buff *_cpp_append_extend_buff (cpp_reader *, _cpp_buff *, size_t);
110 extern unsigned char *_cpp_aligned_alloc (cpp_reader *, size_t);
111 extern unsigned char *_cpp_unaligned_alloc (cpp_reader *, size_t);
315 struct cpp_reader struct
493 static inline int cpp_in_system_header (cpp_reader *);
495 cpp_in_system_header (cpp_reader *pfile) in cpp_in_system_header()
503 extern int _cpp_begin_message (cpp_reader *, int,
[all …]
HDdirectives.c42 typedef void (*pragma_cb) (cpp_reader *);
79 typedef void (*directive_handler) (cpp_reader *);
92 static void skip_rest_of_line (cpp_reader *);
93 static void check_eol (cpp_reader *);
94 static void start_directive (cpp_reader *);
95 static void prepare_directive_trad (cpp_reader *);
96 static void end_directive (cpp_reader *, int);
97 static void directive_diagnostics (cpp_reader *, const directive *, int);
98 static void run_directive (cpp_reader *, int, const char *, size_t);
99 static char *glue_header_name (cpp_reader *);
[all …]
HDfiles.c153 static bool pch_open_file (cpp_reader *pfile, _cpp_file *file,
155 static bool find_file_in_dir (cpp_reader *pfile, _cpp_file *file,
157 static bool read_file_guts (cpp_reader *pfile, _cpp_file *file);
158 static bool read_file (cpp_reader *pfile, _cpp_file *file);
159 static bool should_stack_file (cpp_reader *, _cpp_file *file, bool import);
160 static struct cpp_dir *search_path_head (cpp_reader *, const char *fname,
163 static void open_file_failed (cpp_reader *pfile, _cpp_file *file, int);
166 static _cpp_file *make_cpp_file (cpp_reader *, cpp_dir *, const char *fname);
168 static cpp_dir *make_cpp_dir (cpp_reader *, const char *dir_name, int sysp);
169 static void allocate_file_hash_entries (cpp_reader *pfile);
[all …]
HDmacro.c44 static int enter_macro_context (cpp_reader *, cpp_hashnode *);
45 static int builtin_macro (cpp_reader *, cpp_hashnode *);
46 static void push_ptoken_context (cpp_reader *, cpp_hashnode *, _cpp_buff *,
48 static _cpp_buff *collect_args (cpp_reader *, const cpp_hashnode *);
49 static cpp_context *next_context (cpp_reader *);
50 static const cpp_token *padding_token (cpp_reader *, const cpp_token *);
51 static void expand_arg (cpp_reader *, macro_arg *);
52 static const cpp_token *new_string_token (cpp_reader *, uchar *, unsigned int);
53 static const cpp_token *stringify_arg (cpp_reader *, macro_arg *);
54 static void paste_all_tokens (cpp_reader *, const cpp_token *);
[all …]
HDinit.c30 static void mark_named_operators (cpp_reader *);
31 static void read_original_filename (cpp_reader *);
32 static void read_original_directory (cpp_reader *);
33 static void post_options (cpp_reader *);
99 cpp_set_lang (cpp_reader *pfile, enum c_lang lang) in cpp_set_lang()
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()
[all …]
HDpch.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 *);
33 static int collect_ht_nodes (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 *);
49 write_macdef (cpp_reader *pfile, cpp_hashnode *hn, void *file_p) in write_macdef()
123 save_idents (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *hn, void *ss_p) in save_idents()
193 cpp_save_state (cpp_reader *r, FILE *f) in cpp_save_state()
210 count_defs (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *hn, void *ss_p) in count_defs()
[all …]
HDtraditional.c82 static const uchar *skip_whitespace (cpp_reader *, const uchar *, int);
83 static cpp_hashnode *lex_identifier (cpp_reader *, const uchar *);
84 static const uchar *copy_comment (cpp_reader *, const uchar *, int);
85 static void check_output_buffer (cpp_reader *, size_t);
86 static void push_replacement_text (cpp_reader *, cpp_hashnode *);
87 static bool scan_parameters (cpp_reader *, cpp_macro *);
88 static bool recursive_macro (cpp_reader *, cpp_hashnode *);
89 static void save_replacement_text (cpp_reader *, cpp_macro *, unsigned int);
90 static void maybe_start_funlike (cpp_reader *, cpp_hashnode *, const uchar *,
93 static void replace_args_and_push (cpp_reader *, struct fun_macro *);
[all …]
HDidentifiers.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()
HDlex.c54 static int skip_line_comment (cpp_reader *);
55 static void skip_whitespace (cpp_reader *, cppchar_t);
56 static void lex_string (cpp_reader *, cpp_token *, const uchar *);
57 static void save_comment (cpp_reader *, cpp_token *, const uchar *, cppchar_t);
58 static void create_literal (cpp_reader *, cpp_token *, const uchar *,
60 static bool warn_in_comment (cpp_reader *, _cpp_line_note *);
61 static int name_p (cpp_reader *, const cpp_string *);
100 _cpp_clean_line (cpp_reader *pfile) in _cpp_clean_line()
236 warn_in_comment (cpp_reader *pfile, _cpp_line_note *note) in warn_in_comment()
264 _cpp_process_line_notes (cpp_reader *pfile, int in_comment) in _cpp_process_line_notes()
[all …]
HDerrors.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()
HDexpr.c46 static cpp_num num_unary_op (cpp_reader *, cpp_num, enum cpp_ttype);
47 static cpp_num num_binary_op (cpp_reader *, cpp_num, cpp_num, enum cpp_ttype);
49 static cpp_num num_bitwise_op (cpp_reader *, cpp_num, cpp_num, enum cpp_ttype);
50 static cpp_num num_inequality_op (cpp_reader *, cpp_num, cpp_num,
52 static cpp_num num_equality_op (cpp_reader *, cpp_num, cpp_num,
54 static cpp_num num_mul (cpp_reader *, cpp_num, cpp_num);
55 static cpp_num num_div_op (cpp_reader *, cpp_num, cpp_num, enum cpp_ttype);
60 static cpp_num parse_defined (cpp_reader *);
61 static cpp_num eval_token (cpp_reader *, const cpp_token *);
62 static struct op *reduce (cpp_reader *, struct op *, enum cpp_ttype);
[all …]
HDcharset.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()
1036 convert_ucn (cpp_reader *pfile, const uchar *from, const uchar *limit, in convert_ucn()
1071 emit_numeric_escape (cpp_reader *pfile, cppchar_t n, in emit_numeric_escape()
1121 convert_hex (cpp_reader *pfile, const uchar *from, const uchar *limit, in convert_hex()
1172 convert_oct (cpp_reader *pfile, const uchar *from, const uchar *limit, in convert_oct()
[all …]
HDmakedepend.c129 static cpp_reader *
132 cpp_reader *reader; in reader_init()
164 cpp_reader *reader = reader_init (&line_table); in process_file()
/NextBSD/contrib/gcc/
HDc-ppoutput.c43 static void scan_translation_unit (cpp_reader *);
45 static void scan_translation_unit_directives_only (cpp_reader *);
46 static void scan_translation_unit_trad (cpp_reader *);
48 static int dump_macro (cpp_reader *, cpp_hashnode *, void *);
55 static void cb_line_change (cpp_reader *, const cpp_token *, int);
56 static void cb_define (cpp_reader *, source_location, cpp_hashnode *);
57 static void cb_undef (cpp_reader *, source_location, cpp_hashnode *);
58 static void cb_include (cpp_reader *, source_location, const unsigned char *,
60 static void cb_ident (cpp_reader *, source_location, const cpp_string *);
61 static void cb_def_pragma (cpp_reader *, source_location);
[all …]
HDscan-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()
HDc-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()
HDc-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()
HDc-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()
HDc-pragma.h56 extern struct cpp_reader* parse_in;
84 typedef void (*pragma_handler)(struct cpp_reader *);
/NextBSD/contrib/gcc/config/
HDdarwin-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 *);
HDdarwin-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()
HDsol2-c.c85 solaris_pragma_align (cpp_reader *pfile ATTRIBUTE_UNUSED) in solaris_pragma_align()
151 solaris_pragma_init (cpp_reader *pfile ATTRIBUTE_UNUSED) in solaris_pragma_init()
209 solaris_pragma_fini (cpp_reader *pfile ATTRIBUTE_UNUSED) in solaris_pragma_fini()
/NextBSD/contrib/gcc/cp/
HDlex.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