#define MACRO_FILE_MAX_LINE_LENGTH 1024 |
Referenced by load_macro_file().
int define_macro | ( | char * | name, | |
int | args, | |||
char * | argstr, | |||
char * | definition | |||
) |
References _MacroSegment::arg, _MacroEntry::argnames, cl_malloc(), cqpmessage(), Error, MacroAddSegment(), MacroHashAdd(), MacroHashDelete(), MacroHashLookup(), silent, and _MacroSegment::string.
Referenced by init_macros(), and load_macro_file().
int delete_macro_buffers | ( | int | trace | ) |
int expand_macro | ( | char * | name | ) |
References _MacroEntry::active, _MacroSegment::arg, buf, cl_free, cl_strdup(), cqpmessage(), _InputBuffer::data, Error, _InputBuffer::macro, macro_arg, macro_debug, macro_debug_newline_indent(), MacroHashLookup(), _MacroSegment::next, pseudo_arg_counter, PushInputBuffer(), _MacroEntry::replacement, _MacroSegment::string, yylex(), and yytext.
void init_macros | ( | void | ) |
References cqpmessage(), define_macro(), Error, MACRO_HASH_BUCKETS, and MakeMacroHash().
Referenced by initialize_cqp().
void list_macros | ( | char * | prefix | ) |
void load_macro_file | ( | char * | name | ) |
References cl_free, cl_realloc(), cl_strdup(), cqpmessage(), define_macro(), Error, input_line, line, load_macro_file(), MACRO_FILE_MAX_LINE_LENGTH, parse_macro_name(), and preprocess_input_line().
Referenced by load_macro_file().
void macro_iterator_new | ( | void | ) |
References iterator_bucket.
char* macro_iterator_next | ( | char * | prefix, | |
int * | nargs | |||
) |
References _MacroEntry::args, macro_iterator_next_macro(), and _MacroEntry::name.
char* macro_iterator_next_prototype | ( | char * | prefix | ) |
References _MacroEntry::argnames, _MacroEntry::args, cl_malloc(), macro_iterator_next_macro(), and _MacroEntry::name.
void macro_statistics | ( | void | ) |
References _MacroHashTable::hash, _MacroEntry::next, and _MacroHashTable::size.
Referenced by main().
void print_macro_definition | ( | char * | name, | |
int | args | |||
) |
int yy_input_char | ( | void | ) |
References buf, cqp_input_string, cqp_input_string_position, cqpmessage(), _InputBuffer::data, macro_debug, macro_debug_newline_indent(), PopInputBuffer(), _InputBuffer::position, QUERY_BUFFER_SIZE, QueryBuffer, QueryBufferOverflow, QueryBufferP, reading_cqprc, Warning, write_history_file, yy_input_char(), and yyin.
Referenced by yy_input_char().
int yy_input_from_macro | ( | void | ) |