Home
last modified time | relevance | path

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

1234

/dflybsd-src/contrib/gcc-8.0/libcpp/include/
H A Dcpplib.h29 typedef struct cpp_reader cpp_reader; typedef
559 typedef const char *(*missing_header_cb)(cpp_reader *, const char *header, cpp_dir **);
565 void (*line_change) (cpp_reader *, const cpp_token *, int);
571 void (*file_change) (cpp_reader *, const line_map_ordinary *);
573 void (*dir_change) (cpp_reader *, const char *);
574 void (*include) (cpp_reader *, source_location, const unsigned char *,
576 void (*define) (cpp_reader *, source_location, cpp_hashnode *);
577 void (*undef) (cpp_reader *, source_location, cpp_hashnode *);
578 void (*ident) (cpp_reader *, source_location, const cpp_string *);
579 void (*def_pragma) (cpp_reader *, source_location);
[all …]
/dflybsd-src/contrib/gcc-4.7/libcpp/include/
H A Dcpplib.h31 typedef struct cpp_reader cpp_reader; typedef
496 typedef const char *(*missing_header_cb)(cpp_reader *, const char *header, cpp_dir **);
502 void (*line_change) (cpp_reader *, const cpp_token *, int);
508 void (*file_change) (cpp_reader *, const struct line_map *);
510 void (*dir_change) (cpp_reader *, const char *);
511 void (*include) (cpp_reader *, source_location, const unsigned char *,
513 void (*define) (cpp_reader *, source_location, cpp_hashnode *);
514 void (*undef) (cpp_reader *, source_location, cpp_hashnode *);
515 void (*ident) (cpp_reader *, source_location, const cpp_string *);
516 void (*def_pragma) (cpp_reader *, source_location);
[all …]
/dflybsd-src/contrib/gcc-4.7/libcpp/
H A Dinternal.h107 extern _cpp_buff *_cpp_get_buff (cpp_reader *, size_t);
108 extern void _cpp_release_buff (cpp_reader *, _cpp_buff *);
109 extern void _cpp_extend_buff (cpp_reader *, _cpp_buff **, size_t);
110 extern _cpp_buff *_cpp_append_extend_buff (cpp_reader *, _cpp_buff *, size_t);
112 extern unsigned char *_cpp_aligned_alloc (cpp_reader *, size_t);
113 extern unsigned char *_cpp_unaligned_alloc (cpp_reader *, size_t);
380 struct cpp_reader struct
585 static inline int cpp_in_system_header (cpp_reader *);
587 cpp_in_system_header (cpp_reader *pfile) in cpp_in_system_header()
594 static inline int cpp_in_primary_file (cpp_reader *);
[all …]
H A Ddirectives.c43 typedef void (*pragma_cb) (cpp_reader *);
81 typedef void (*directive_handler) (cpp_reader *);
94 static void skip_rest_of_line (cpp_reader *);
95 static void check_eol (cpp_reader *, bool);
96 static void start_directive (cpp_reader *);
97 static void prepare_directive_trad (cpp_reader *);
98 static void end_directive (cpp_reader *, int);
99 static void directive_diagnostics (cpp_reader *, const directive *, int);
100 static void run_directive (cpp_reader *, int, const char *, size_t);
101 static char *glue_header_name (cpp_reader *);
[all …]
H A Dfiles.c170 static bool pch_open_file (cpp_reader *pfile, _cpp_file *file,
172 static bool find_file_in_dir (cpp_reader *pfile, _cpp_file *file,
174 static bool read_file_guts (cpp_reader *pfile, _cpp_file *file);
175 static bool read_file (cpp_reader *pfile, _cpp_file *file);
176 static bool should_stack_file (cpp_reader *, _cpp_file *file, bool import);
177 static struct cpp_dir *search_path_head (cpp_reader *, const char *fname,
180 static void open_file_failed (cpp_reader *pfile, _cpp_file *file, int);
183 static _cpp_file *make_cpp_file (cpp_reader *, cpp_dir *, const char *fname);
185 static cpp_dir *make_cpp_dir (cpp_reader *, const char *dir_name, int sysp);
186 static void allocate_file_hash_entries (cpp_reader *pfile);
[all …]
H A Derrors.c35 cpp_diagnostic (cpp_reader * pfile, int level, int reason, in cpp_diagnostic()
72 cpp_error (cpp_reader * pfile, int level, const char *msgid, ...) in cpp_error()
88 cpp_warning (cpp_reader * pfile, int reason, const char *msgid, ...) in cpp_warning()
104 cpp_pedwarning (cpp_reader * pfile, int reason, const char *msgid, ...) in cpp_pedwarning()
121 cpp_warning_syshdr (cpp_reader * pfile, int reason, const char *msgid, ...) in cpp_warning_syshdr()
138 cpp_diagnostic_with_line (cpp_reader * pfile, int level, int reason, in cpp_diagnostic_with_line()
154 cpp_error_with_line (cpp_reader *pfile, int level, in cpp_error_with_line()
173 cpp_warning_with_line (cpp_reader *pfile, int reason, in cpp_warning_with_line()
192 cpp_pedwarning_with_line (cpp_reader *pfile, int reason, in cpp_pedwarning_with_line()
212 cpp_warning_with_line_syshdr (cpp_reader *pfile, int reason, in cpp_warning_with_line_syshdr()
[all …]
H A Dinit.c32 static void mark_named_operators (cpp_reader *, int);
33 static void read_original_filename (cpp_reader *);
34 static void read_original_directory (cpp_reader *);
35 static void post_options (cpp_reader *);
108 cpp_set_lang (cpp_reader *pfile, enum c_lang lang) in cpp_set_lang()
151 cpp_reader *
155 cpp_reader *pfile; in cpp_create_reader()
160 pfile = XCNEW (cpp_reader); in cpp_create_reader()
252 cpp_set_line_map (cpp_reader *pfile, struct line_maps *line_table) in cpp_set_line_map()
260 cpp_destroy (cpp_reader *pfile) in cpp_destroy()
[all …]
H A Dmacro.c87 static int enter_macro_context (cpp_reader *, cpp_hashnode *,
89 static int builtin_macro (cpp_reader *, cpp_hashnode *);
90 static void push_ptoken_context (cpp_reader *, cpp_hashnode *, _cpp_buff *,
92 static void push_extended_tokens_context (cpp_reader *, cpp_hashnode *,
95 static _cpp_buff *collect_args (cpp_reader *, const cpp_hashnode *,
97 static cpp_context *next_context (cpp_reader *);
98 static const cpp_token *padding_token (cpp_reader *, const cpp_token *);
99 static void expand_arg (cpp_reader *, macro_arg *);
100 static const cpp_token *new_string_token (cpp_reader *, uchar *, unsigned int);
101 static const cpp_token *stringify_arg (cpp_reader *, macro_arg *);
[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 *);
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 *);
36 static int _cpp_save_pushed_macros (cpp_reader *, FILE *);
37 static int _cpp_restore_pushed_macros (cpp_reader *, FILE *);
51 write_macdef (cpp_reader *pfile, cpp_hashnode *hn, void *file_p) in write_macdef()
127 save_idents (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *hn, void *ss_p) in save_idents()
[all …]
H A Dtraditional.c83 static const uchar *skip_whitespace (cpp_reader *, const uchar *, int);
84 static cpp_hashnode *lex_identifier (cpp_reader *, const uchar *);
85 static const uchar *copy_comment (cpp_reader *, const uchar *, int);
86 static void check_output_buffer (cpp_reader *, size_t);
87 static void push_replacement_text (cpp_reader *, cpp_hashnode *);
88 static bool scan_parameters (cpp_reader *, cpp_macro *);
89 static bool recursive_macro (cpp_reader *, cpp_hashnode *);
90 static void save_replacement_text (cpp_reader *, cpp_macro *, unsigned int);
91 static void maybe_start_funlike (cpp_reader *, cpp_hashnode *, const uchar *,
94 static void replace_args_and_push (cpp_reader *, struct fun_macro *);
[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()
118 cpp_forall_identifiers (cpp_reader *pfile, cpp_cb cb, void *v) in cpp_forall_identifiers()
H A Dlex.c55 static int skip_line_comment (cpp_reader *);
56 static void skip_whitespace (cpp_reader *, cppchar_t);
57 static void lex_string (cpp_reader *, cpp_token *, const uchar *);
58 static void save_comment (cpp_reader *, cpp_token *, const uchar *, cppchar_t);
59 static void store_comment (cpp_reader *, cpp_token *);
60 static void create_literal (cpp_reader *, cpp_token *, const uchar *,
62 static bool warn_in_comment (cpp_reader *, _cpp_line_note *);
63 static int name_p (cpp_reader *, const cpp_string *);
655 _cpp_clean_line (cpp_reader *pfile) in _cpp_clean_line()
799 warn_in_comment (cpp_reader *pfile, _cpp_line_note *note) in warn_in_comment()
[all …]
/dflybsd-src/contrib/gcc-8.0/libcpp/
H A Dinternal.h108 extern _cpp_buff *_cpp_get_buff (cpp_reader *, size_t);
109 extern void _cpp_release_buff (cpp_reader *, _cpp_buff *);
110 extern void _cpp_extend_buff (cpp_reader *, _cpp_buff **, size_t);
111 extern _cpp_buff *_cpp_append_extend_buff (cpp_reader *, _cpp_buff *, size_t);
113 extern unsigned char *_cpp_aligned_alloc (cpp_reader *, size_t);
114 extern unsigned char *_cpp_unaligned_alloc (cpp_reader *, size_t);
389 struct cpp_reader struct
608 static inline int cpp_in_system_header (cpp_reader *);
610 cpp_in_system_header (cpp_reader *pfile) in cpp_in_system_header()
617 static inline int cpp_in_primary_file (cpp_reader *);
[all …]
H A Ddirectives.c41 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 *, bool);
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 …]
H A Derrors.c34 cpp_diagnostic_at (cpp_reader * pfile, int level, int reason, in cpp_diagnostic_at()
51 cpp_diagnostic (cpp_reader * pfile, int level, int reason, in cpp_diagnostic()
80 cpp_error (cpp_reader * pfile, int level, const char *msgid, ...) in cpp_error()
96 cpp_warning (cpp_reader * pfile, int reason, const char *msgid, ...) in cpp_warning()
112 cpp_pedwarning (cpp_reader * pfile, int reason, const char *msgid, ...) in cpp_pedwarning()
129 cpp_warning_syshdr (cpp_reader * pfile, int reason, const char *msgid, ...) in cpp_warning_syshdr()
146 cpp_diagnostic_with_line (cpp_reader * pfile, int level, int reason, in cpp_diagnostic_with_line()
165 cpp_error_with_line (cpp_reader *pfile, int level, in cpp_error_with_line()
184 cpp_warning_with_line (cpp_reader *pfile, int reason, in cpp_warning_with_line()
203 cpp_pedwarning_with_line (cpp_reader *pfile, int reason, in cpp_pedwarning_with_line()
[all …]
H A Dfiles.c171 static bool pch_open_file (cpp_reader *pfile, _cpp_file *file,
173 static bool find_file_in_dir (cpp_reader *pfile, _cpp_file *file,
175 static bool read_file_guts (cpp_reader *pfile, _cpp_file *file,
177 static bool read_file (cpp_reader *pfile, _cpp_file *file,
179 static bool should_stack_file (cpp_reader *, _cpp_file *file, bool import,
181 static struct cpp_dir *search_path_head (cpp_reader *, const char *fname,
184 static void open_file_failed (cpp_reader *pfile, _cpp_file *file, int,
188 static _cpp_file *make_cpp_file (cpp_reader *, cpp_dir *, const char *fname);
190 static cpp_dir *make_cpp_dir (cpp_reader *, const char *dir_name, int sysp);
191 static void allocate_file_hash_entries (cpp_reader *pfile);
[all …]
H A Dpch.c25 static int write_macdef (cpp_reader *, cpp_hashnode *, void *);
26 static int save_idents (cpp_reader *, cpp_hashnode *, void *);
30 static int count_defs (cpp_reader *, cpp_hashnode *, void *);
32 static int collect_ht_nodes (cpp_reader *, cpp_hashnode *, void *);
33 static int write_defs (cpp_reader *, cpp_hashnode *, void *);
34 static int save_macros (cpp_reader *, cpp_hashnode *, void *);
35 static int _cpp_save_pushed_macros (cpp_reader *, FILE *);
36 static int _cpp_restore_pushed_macros (cpp_reader *, FILE *);
50 write_macdef (cpp_reader *pfile, cpp_hashnode *hn, void *file_p) in write_macdef()
128 save_idents (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *hn, void *ss_p) in save_idents()
[all …]
H A Dmacro.c104 vaopt_state (cpp_reader *pfile, bool is_variadic, bool any_args) in vaopt_state()
219 cpp_reader *m_pfile;
245 static int enter_macro_context (cpp_reader *, cpp_hashnode *,
247 static int builtin_macro (cpp_reader *, cpp_hashnode *,
249 static void push_ptoken_context (cpp_reader *, cpp_hashnode *, _cpp_buff *,
251 static void push_extended_tokens_context (cpp_reader *, cpp_hashnode *,
254 static _cpp_buff *collect_args (cpp_reader *, const cpp_hashnode *,
256 static cpp_context *next_context (cpp_reader *);
257 static const cpp_token *padding_token (cpp_reader *, const cpp_token *);
258 static void expand_arg (cpp_reader *, macro_arg *);
[all …]
H A Dinit.c38 static void mark_named_operators (cpp_reader *, int);
39 static void read_original_filename (cpp_reader *);
40 static void read_original_directory (cpp_reader *);
41 static void post_options (cpp_reader *);
123 cpp_set_lang (cpp_reader *pfile, enum c_lang lang) in cpp_set_lang()
170 cpp_reader *
174 cpp_reader *pfile; in cpp_create_reader()
179 pfile = XCNEW (cpp_reader); in cpp_create_reader()
286 cpp_set_line_map (cpp_reader *pfile, struct line_maps *line_table) in cpp_set_line_map()
294 cpp_destroy (cpp_reader *pfile) in cpp_destroy()
[all …]
H A Dtraditional.c87 static const uchar *skip_whitespace (cpp_reader *, const uchar *, int);
88 static cpp_hashnode *lex_identifier (cpp_reader *, const uchar *);
89 static const uchar *copy_comment (cpp_reader *, const uchar *, int);
90 static void check_output_buffer (cpp_reader *, size_t);
91 static void push_replacement_text (cpp_reader *, cpp_hashnode *);
92 static bool scan_parameters (cpp_reader *, cpp_macro *);
93 static bool recursive_macro (cpp_reader *, cpp_hashnode *);
94 static void save_replacement_text (cpp_reader *, cpp_macro *, unsigned int);
95 static void maybe_start_funlike (cpp_reader *, cpp_hashnode *, const uchar *,
98 static void replace_args_and_push (cpp_reader *, struct fun_macro *);
[all …]
H A Didentifiers.c47 _cpp_init_hashtable (cpp_reader *pfile, cpp_hash_table *table) in _cpp_init_hashtable()
81 _cpp_destroy_hashtable (cpp_reader *pfile) in _cpp_destroy_hashtable()
93 cpp_lookup (cpp_reader *pfile, const unsigned char *str, unsigned int len) in cpp_lookup()
101 cpp_defined (cpp_reader *pfile, const unsigned char *str, int len) in cpp_defined()
119 cpp_forall_identifiers (cpp_reader *pfile, cpp_cb cb, void *v) in cpp_forall_identifiers()
/dflybsd-src/contrib/gcc-4.7/gcc/c-family/
H A Dc-ppoutput.c54 static void scan_translation_unit (cpp_reader *);
56 static void scan_translation_unit_directives_only (cpp_reader *);
57 static void scan_translation_unit_trad (cpp_reader *);
59 static int dump_macro (cpp_reader *, cpp_hashnode *, void *);
60 static void dump_queued_macros (cpp_reader *);
66 static void do_line_change (cpp_reader *, const cpp_token *,
71 static void cb_line_change (cpp_reader *, const cpp_token *, int);
72 static void cb_define (cpp_reader *, source_location, cpp_hashnode *);
73 static void cb_undef (cpp_reader *, source_location, cpp_hashnode *);
74 static void cb_used_define (cpp_reader *, source_location, cpp_hashnode *);
[all …]
/dflybsd-src/contrib/gcc-8.0/gcc/c-family/
H A Dc-ppoutput.c54 static void scan_translation_unit (cpp_reader *);
56 static void scan_translation_unit_directives_only (cpp_reader *);
57 static void scan_translation_unit_trad (cpp_reader *);
59 static int dump_macro (cpp_reader *, cpp_hashnode *, void *);
60 static void dump_queued_macros (cpp_reader *);
66 static bool do_line_change (cpp_reader *, const cpp_token *,
71 static void cb_line_change (cpp_reader *, const cpp_token *, int);
72 static void cb_define (cpp_reader *, source_location, cpp_hashnode *);
73 static void cb_undef (cpp_reader *, source_location, cpp_hashnode *);
74 static void cb_used_define (cpp_reader *, source_location, cpp_hashnode *);
[all …]
/dflybsd-src/contrib/gcc-4.7/gcc/
H A Dcppbuiltin.c60 define__GNUC__ (cpp_reader *pfile) in define__GNUC__()
81 define_builtin_macros_for_compilation_flags (cpp_reader *pfile) in define_builtin_macros_for_compilation_flags()
111 define_builtin_macros_for_lp64 (cpp_reader *pfile) in define_builtin_macros_for_lp64()
125 define_builtin_macros_for_type_sizes (cpp_reader *pfile) in define_builtin_macros_for_type_sizes()
181 define_language_independent_builtin_macros (cpp_reader *pfile) in define_language_independent_builtin_macros()
/dflybsd-src/contrib/gcc-8.0/gcc/
H A Dcppbuiltin.c59 define__GNUC__ (cpp_reader *pfile) in define__GNUC__()
80 define_builtin_macros_for_compilation_flags (cpp_reader *pfile) in define_builtin_macros_for_compilation_flags()
121 define_builtin_macros_for_lp64 (cpp_reader *pfile) in define_builtin_macros_for_lp64()
135 define_builtin_macros_for_type_sizes (cpp_reader *pfile) in define_builtin_macros_for_type_sizes()
191 define_language_independent_builtin_macros (cpp_reader *pfile) in define_language_independent_builtin_macros()

1234