#include "syswords2.h"
Include dependency graph for header.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
#define repeat while(true) |
Definition at line 7 of file header.h.
Referenced by convert_numeric_string(), find_in_m(), find_word(), get_input(), look_for_name(), next_real_char(), next_token(), read_AE(), read_among(), read_C_connection(), read_C_list(), read_chars(), read_define_grouping(), read_literal_string(), read_names(), read_options(), read_program_(), and read_token().
#define unless | ( | C | ) | if(!(C)) |
Definition at line 8 of file header.h.
Referenced by check_modifyable(), check_routine_mode(), compare_words(), convert_numeric_string(), error(), generate_among(), generate_among_table(), get_token(), main(), make_among(), name_to_node(), print_node_(), read_AE(), read_among(), read_C(), read_define(), read_define_grouping(), read_define_routine(), read_literal_string(), read_names(), read_program(), read_program_(), and read_token().
#define until | ( | C | ) | while(!(C)) |
Definition at line 9 of file header.h.
Referenced by close_analyser(), close_tokeniser(), generate_among(), generate_amongs(), generate_and(), generate_bra(), generate_groupings(), generate_header_file(), generate_or(), generate_program_c(), generate_routine_headers(), K_needed(), main(), make_among(), read_program(), read_token(), repeat_score(), reverse_b(), and wp().
#define MALLOC check_malloc |
#define FREE check_free |
Definition at line 12 of file header.h.
Referenced by close_analyser(), close_generator_c(), close_tokeniser(), lose_b(), main(), and read_token().
#define NEW | ( | type, | |||
p | ) | struct type * p = (struct type *) MALLOC(sizeof(struct type)) |
Definition at line 14 of file header.h.
Referenced by create_analyser(), create_generator_c(), create_tokeniser(), main(), make_among(), new_literalstring(), new_node(), read_define_grouping(), read_names(), read_options(), and read_token().
#define NEWVEC | ( | type, | |||
p, | |||||
n | ) | struct type * p = (struct type *) MALLOC(sizeof(struct type) * n) |
#define STARTSIZE 10 |
#define SIZE | ( | p | ) | ((int *)(p))[-1] |
Definition at line 18 of file header.h.
Referenced by add_s_to_b(), add_to_b(), alter_grouping(), b_to_s(), convert_numeric_string(), copy_b(), create_b(), eq_s(), Xapian::Stem::Internal::eq_v(), Xapian::Stem::Internal::eq_v_b(), find_in_m(), generate_data_address(), generate_grouping_table(), generate_literalstring(), get_input(), increase_capacity(), Xapian::Stem::Internal::insert_v(), look_for_name(), main(), make_among(), move_to_b(), next_char(), next_token(), read_define_grouping(), read_literal_string(), read_token(), Xapian::Stem::Internal::replace_s(), report_b(), reverse_b(), Xapian::Stem::Internal::slice_from_v(), str_append(), str_append_b(), str_clear(), str_len(), wlitarray(), and wlitref().
#define CAPACITY | ( | p | ) | ((int *)(p))[-2] |
Definition at line 19 of file header.h.
Referenced by add_s_to_b(), add_to_b(), Xapian::Stem::Internal::assign_to(), create_b(), get_input(), increase_capacity(), move_to_b(), Xapian::Stem::Internal::replace_s(), and Xapian::Stem::Internal::slice_to().
enum token_codes |
enum name_types |
enum analyser_modes |
symbol* create_b | ( | int | n | ) |
Definition at line 53 of file space.c.
References CAPACITY, HEAD, MALLOC, and SIZE.
Referenced by add_s_to_b(), copy_b(), create_tokeniser(), generate_grouping_table(), get_input(), increase_capacity(), read_define_grouping(), and str_new().
void report_b | ( | FILE * | out, | |
symbol * | p | |||
) |
Definition at line 60 of file space.c.
References SIZE.
Referenced by error2(), error3(), error4(), print_node_(), and read_program().
void lose_b | ( | symbol * | p | ) |
Definition at line 65 of file space.c.
Referenced by close_analyser(), close_tokeniser(), generate_grouping_table(), increase_capacity(), main(), read_token(), and str_delete().
Definition at line 70 of file space.c.
References CAPACITY, create_b(), EXTENDER, lose_b(), and SIZE.
Referenced by add_s_to_b(), add_to_b(), get_input(), and move_to_b().
Definition at line 77 of file space.c.
References CAPACITY, increase_capacity(), and SIZE.
Referenced by copy_b(), next_token(), and read_chars().
Definition at line 83 of file space.c.
References CAPACITY, increase_capacity(), and SIZE.
Referenced by alter_grouping(), read_literal_string(), read_token(), str_append(), str_append_b(), and str_append_ch().
Definition at line 89 of file space.c.
References create_b(), move_to_b(), and SIZE.
Referenced by new_literalstring(), read_names(), and read_token().
char* b_to_s | ( | symbol * | p | ) |
Definition at line 110 of file space.c.
References SIZE.
Referenced by get_input(), get_output(), and output_str().
Definition at line 130 of file space.c.
References CAPACITY, create_b(), increase_capacity(), and SIZE.
Referenced by main(), read_options(), and str_append_string().
struct str* str_new | ( | void | ) | [read] |
Definition at line 156 of file space.c.
References create_b(), and str::data.
Referenced by generate_program_c(), and str_copy().
void str_delete | ( | struct str * | str | ) |
Definition at line 164 of file space.c.
References str::data, and lose_b().
Referenced by generate_program_c().
Definition at line 171 of file space.c.
References add_to_b(), str::data, and SIZE.
Referenced by str_copy().
void str_append_ch | ( | struct str * | str, | |
char | add | |||
) |
Definition at line 186 of file space.c.
References add_to_b(), str::data, and SIZE.
Referenced by generate_header_file(), wc(), and wvn().
void str_append_string | ( | struct str * | str, | |
const char * | s | |||
) |
Definition at line 192 of file space.c.
References add_s_to_b(), and str::data.
Referenced by str_append_int(), str_assign(), and ws().
void str_append_int | ( | struct str * | str, | |
int | i | |||
) |
void str_clear | ( | struct str * | str | ) |
Definition at line 206 of file space.c.
References str::data, and SIZE.
Referenced by generate_program_c(), and str_assign().
void str_assign | ( | struct str * | str, | |
char * | s | |||
) |
int str_len | ( | struct str * | str | ) |
int get_utf8 | ( | const symbol * | p, | |
int * | slot | |||
) |
int put_utf8 | ( | int | ch, | |
symbol * | p | |||
) |
Definition at line 21 of file tokeniser.c.
References b_to_s(), CAPACITY, create_b(), increase_capacity(), repeat, size, SIZE, and STARTSIZE.
Referenced by main(), and read_token().
Definition at line 428 of file tokeniser.c.
References create_b(), NEW, and tokeniser::p.
Referenced by main().
int read_token | ( | struct tokeniser * | t | ) |
Definition at line 300 of file tokeniser.c.
References add_to_b(), tokeniser::b, include::b, tokeniser::b2, tokeniser::c, c_comment1, c_comment2, c_decimal, c_get, c_hex, c_literalstring, c_stringdef, c_stringescapes, convert_numeric_string(), copy_b(), eq_s(), error(), error1(), error2(), FREE, tokeniser::get_depth, get_input(), tokeniser::includes, tokeniser::line_number, lose_b(), tokeniser::m_end, tokeniser::m_pairs, tokeniser::m_start, m_pair::name, NEW, include::next, tokeniser::next, next_real_char(), next_token(), tokeniser::p, input::p, tokeniser::previous_token, read_chars(), read_token(), repeat, SIZE, tokeniser::token, tokeniser::token_held, unless, and until.
Referenced by C_style(), get_token(), read_AE(), read_AE_test(), read_among(), read_C(), read_C_connection(), read_C_list(), read_define_grouping(), read_names(), read_program_(), and read_token().
byte* name_of_token | ( | int | code | ) |
Definition at line 409 of file tokeniser.c.
References c_booltest, c_call, c_grouping, c_literalstring, c_mathassign, c_name, c_neg, c_number, system_word::code, and vocab.
Referenced by error2(), print_node_(), and wc().
void close_tokeniser | ( | struct tokeniser * | t | ) |
Definition at line 446 of file tokeniser.c.
References tokeniser::b, tokeniser::b2, FREE, lose_b(), tokeniser::m_pairs, m_pair::name, m_pair::next, tokeniser::next, input::next, until, and m_pair::value.
Referenced by main().
void* check_malloc | ( | int | n | ) |
void check_free | ( | void * | p | ) |
void print_program | ( | struct analyser * | a | ) |
Definition at line 34 of file analyser.c.
References print_node_(), and analyser::program.
Referenced by main().
void close_analyser | ( | struct analyser * | a | ) |
Definition at line 921 of file analyser.c.
References analyser::amongs, grouping::b, among::b, literalstring::b, name::b, FREE, analyser::groupings, analyser::literalstrings, lose_b(), analyser::names, grouping::next, among::next, literalstring::next, name::next, node::next, analyser::nodes, and until.
Referenced by main().
void read_program | ( | struct analyser * | a | ) |
Definition at line 857 of file analyser.c.
References name::b, name::definition, error4(), tokeniser::error_count, name::grouping, analyser::names, name::next, read_program_(), name::referenced, report_b(), t_external, t_grouping, t_routine, analyser::tokeniser, name::type, unless, until, and name::used.
Referenced by main().
void close_generator_c | ( | struct generator * | g | ) |
void generate_program_c | ( | struct generator * | g | ) |
Definition at line 1740 of file generator.c.
References generator::analyser, generator::declarations, generate(), generate_amongs(), generate_close(), generate_create(), generate_create_and_close_templates(), generate_groupings(), generate_head(), generate_header_file(), generate_routine_headers(), generate_start_comment(), generator::literalstring_count, options::make_lang, generator::options, generator::outbuf, options::output_c, options::output_h, output_str(), analyser::program, node::right, str_clear(), str_delete(), str_new(), until, and w().
Referenced by main().
Referenced by main().
int space_count |