#include "config.h"#include "system.h"#include "cpplib.h"#include "cpphash.h"

Go to the source code of this file.
| #define BLOCK_LEN | ( | TEXT_LEN | ) | CPP_ALIGN (BLOCK_HEADER_LEN + (TEXT_LEN)) |
Definition at line 41 of file cpptrad.c.
Referenced by _cpp_copy_replacement_text(), _cpp_expansions_different_trad(), _cpp_replacement_text_len(), replace_args_and_push(), and save_replacement_text().
| enum ls |
Definition at line 881 of file cpptrad.c.
References block::arg_index, b, BLOCK_LEN, exp, memcpy, NODE_LEN, NODE_NAME, block::text, block::text_len, and uchar.
Referenced by cpp_macro_definition().
| bool _cpp_create_trad_definition | ( | cpp_reader * | pfile, | |
| cpp_macro * | macro | |||
| ) |
Definition at line 1172 of file cpptrad.c.
References block::arg_index, BLOCK_LEN, canonicalize_text(), free(), memcmp, p1, p2, block::text, block::text_len, uchar, and xmalloc().
Referenced by warn_of_redefinition().
| void _cpp_overlay_buffer | ( | cpp_reader * | pfile, | |
| const uchar * | start, | |||
| size_t | len | |||
| ) |
Definition at line 331 of file cpptrad.c.
Referenced by continue_after_nul(), and prepare_directive_trad().
| bool _cpp_read_logical_line_trad | ( | cpp_reader * | pfile | ) |
Definition at line 364 of file cpptrad.c.
Referenced by continue_after_nul(), cpp_scan_nooutput(), prepare_directive_trad(), and scan_translation_unit_trad().
| void _cpp_remove_overlay | ( | cpp_reader * | pfile | ) |
Definition at line 850 of file cpptrad.c.
References block::arg_index, b, BLOCK_LEN, exp, len, NODE_LEN, block::text_len, and uchar.
Referenced by cpp_macro_definition().
| static size_t canonicalize_text | ( | uchar * | dest, | |
| const uchar * | src, | |||
| size_t | len, | |||
| uchar * | pquote | |||
| ) | [static] |
Definition at line 1134 of file cpptrad.c.
References is_space, quote, and uchar.
Referenced by _cpp_expansions_different_trad(), and parse_assertion().
| static void check_output_buffer | ( | cpp_reader * | pfile, | |
| size_t | n | |||
| ) | [static] |
Definition at line 106 of file cpptrad.c.
References size, uchar, and xrealloc().
Referenced by _cpp_create_trad_definition(), _cpp_scan_out_logical_line(), and scan_out_logical_line().
| static const uchar* copy_comment | ( | cpp_reader * | pfile, | |
| const uchar * | cur, | |||
| int | in_define | |||
| ) | [static] |
Definition at line 176 of file cpptrad.c.
References c, cpp_error_with_line(), CPP_OPTION, discard_comments(), DL_ERROR, DL_WARNING, handle_newline(), is_vspace, out, RLIMIT, uchar, and warn_comments.
Referenced by _cpp_scan_out_logical_line(), scan_out_logical_line(), and skip_whitespace().
| static const uchar* handle_newline | ( | cpp_reader * | pfile, | |
| const uchar * | cur | |||
| ) | [static] |
| static cpp_hashnode* lex_identifier | ( | cpp_reader * | pfile, | |
| const uchar * | cur | |||
| ) | [static] |
Definition at line 302 of file cpptrad.c.
References CUR, HT_ALLOC, ht_lookup(), is_numchar, len, out, result, skip_escaped_newlines(), and uchar.
Referenced by _cpp_lex_direct(), _cpp_scan_out_logical_line(), scan_out_logical_line(), and scan_parameters().
| static void maybe_start_funlike | ( | cpp_reader * | pfile, | |
| cpp_hashnode * | node, | |||
| const uchar * | start, | |||
| struct fun_macro * | macro | |||
| ) | [static] |
Definition at line 394 of file cpptrad.c.
References _cpp_get_buff(), _cpp_release_buff(), fun_macro::argc, fun_macro::args, fun_macro::buff, BUFF_FRONT, cpp_hashnode::macro, n, fun_macro::node, fun_macro::offset, cpp_macro::paramc, and cpp_hashnode::value.
Referenced by _cpp_scan_out_logical_line(), and scan_out_logical_line().
| static void replace_args_and_push PARAMS | ( | (cpp_reader *, struct fun_macro *) | ) | [static] |
| static void maybe_start_funlike PARAMS | ( | (cpp_reader *, cpp_hashnode *, const uchar *, struct fun_macro *) | ) | [static] |
| static void save_replacement_text PARAMS | ( | (cpp_reader *, cpp_macro *, unsigned int) | ) | [static] |
| static bool scan_parameters PARAMS | ( | (cpp_reader *, cpp_macro *) | ) | [static] |
| static void push_replacement_text PARAMS | ( | (cpp_reader *, cpp_hashnode *) | ) | [static] |
| static void check_output_buffer PARAMS | ( | (cpp_reader *, size_t) | ) | [static] |
| static void scan_out_logical_line PARAMS | ( | (cpp_reader *pfile, cpp_macro *) | ) | [static] |
| static const uchar* skip_whitespace PARAMS | ( | (cpp_reader *, const uchar *, int) | ) | [static] |
| static const uchar* handle_newline PARAMS | ( | (cpp_reader *, const uchar *) | ) | [static] |
| static void push_replacement_text | ( | cpp_reader * | pfile, | |
| cpp_hashnode * | node | |||
| ) | [static] |
Definition at line 782 of file cpptrad.c.
References _cpp_builtin_macro_text(), _cpp_push_text_context(), cpp_macro::count, cpp_macro::exp, cpp_hashnode::flags, len, cpp_hashnode::macro, NODE_BUILTIN, cpp_macro::text, uchar, cpp_macro::used, ustrlen(), and cpp_hashnode::value.
Referenced by _cpp_scan_out_logical_line(), replace_args_and_push(), and scan_out_logical_line().
| static bool recursive_macro | ( | cpp_reader * | pfile, | |
| cpp_hashnode * | node | |||
| ) | [static] |
Definition at line 807 of file cpptrad.c.
References cpp_error(), DL_ERROR, cpp_hashnode::flags, cpp_macro::fun_like, cpp_hashnode::macro, cpp_context::macro, NODE_DISABLED, NODE_NAME, NULL, cpp_context::prev, and cpp_hashnode::value.
Referenced by _cpp_scan_out_logical_line(), and scan_out_logical_line().
| static void replace_args_and_push | ( | cpp_reader * | pfile, | |
| struct fun_macro * | fmacro | |||
| ) | [static] |
Definition at line 917 of file cpptrad.c.
References _cpp_get_buff(), _cpp_push_text_context(), block::arg_index, fun_macro::args, b, BLOCK_LEN, BUFF_FRONT, exp, cpp_macro::exp, len, cpp_hashnode::macro, memcpy, fun_macro::node, p, cpp_macro::paramc, push_replacement_text(), block::text, cpp_macro::text, block::text_len, uchar, and cpp_hashnode::value.
Referenced by _cpp_scan_out_logical_line(), and scan_out_logical_line().
Definition at line 413 of file cpptrad.c.
Referenced by _cpp_scan_out_logical_line(), and scan_out_logical_line().
| static void save_replacement_text | ( | cpp_reader * | pfile, | |
| cpp_macro * | macro, | |||
| unsigned int | arg_index | |||
| ) | [static] |
Definition at line 1024 of file cpptrad.c.
References _cpp_extend_buff(), _cpp_unaligned_alloc(), block::arg_index, BLOCK_LEN, BUFF_FRONT, BUFF_ROOM, cpp_macro::count, exp, cpp_macro::exp, len, memcpy, cpp_macro::paramc, block::text, cpp_macro::text, block::text_len, and uchar.
Referenced by _cpp_create_trad_definition(), _cpp_scan_out_logical_line(), and scan_out_logical_line().
| static void scan_out_logical_line | ( | cpp_reader * | pfile, | |
| cpp_macro * | macro | |||
| ) | [static] |
Definition at line 430 of file cpptrad.c.
References _cpp_arguments_ok(), _cpp_handle_directive(), _cpp_pop_context(), _cpp_release_buff(), cpp_hashnode::arg_index, fun_macro::argc, fun_macro::args, fun_macro::buff, c, check_output_buffer(), CLK_ASM, copy_comment(), cpp_error(), cpp_error_with_line(), CPP_OPTION, CUR, cur, cpp_hashnode::directive_index, DL_ERROR, DL_PEDWARN, cpp_hashnode::flags, cpp_macro::fun_like, handle_newline(), is_idstart, is_numstart, is_vspace, lex_identifier(), fun_macro::line, ls_answer, ls_defined, ls_defined_close, ls_fun_close, ls_fun_open, ls_hash, ls_none, ls_predicate, cpp_hashnode::macro, maybe_start_funlike(), node, fun_macro::node, NODE_BUILTIN, NODE_NAME, NT_MACRO, NULL, fun_macro::offset, out, cpp_macro::paramc, cpp_context::prev, push_replacement_text(), quote, recursive_macro(), replace_args_and_push(), RLIMIT, save_argument(), save_replacement_text(), skip_escaped_newlines(), skip_whitespace(), uchar, cpp_macro::used, and cpp_hashnode::value.
Referenced by _cpp_create_trad_definition(), and _cpp_read_logical_line_trad().
| static bool scan_parameters | ( | cpp_reader * | pfile, | |
| cpp_macro * | macro | |||
| ) | [static] |
Definition at line 983 of file cpptrad.c.
References _cpp_save_parameter(), CUR, cur, is_idstart, lex_identifier(), ok(), cpp_macro::paramc, skip_whitespace(), and uchar.
Referenced by _cpp_create_trad_definition().
| static const uchar* skip_escaped_newlines | ( | cpp_reader * | pfile, | |
| const uchar * | cur | |||
| ) | [static] |
Definition at line 148 of file cpptrad.c.
References cpp_error(), DL_PEDWARN, handle_newline(), is_vspace, RLIMIT, and uchar.
| static const uchar* skip_whitespace | ( | cpp_reader * | pfile, | |
| const uchar * | cur, | |||
| int | skip_comments | |||
| ) | [static] |
Definition at line 254 of file cpptrad.c.
References c, copy_comment(), is_nvspace, is_vspace, out, RLIMIT, skip_escaped_newlines(), tmp, and uchar.
1.5.6