#include "md_preprocessor.h"Go to the source code of this file.
Functions | |
| void | print_usage (char *fmt,...) |
| void | read_command_line_parameters (int argc, char **arg_ptr) |
| void | L_punt (char *fmt,...) |
| void | Perror (Pptr *pptr, char *fmt,...) |
| void | Pputc (Pptr *pptr, int ch) |
| main (int argc, char **argv, char **envp) | |
| Pptr * | process_body (Pptr *pptr) |
| Pptr * | skip_body (Pptr *pptr) |
| Pptr * | process_def_directive (Pptr *pptr) |
| Pptr * | process_undef_directive (Pptr *pptr) |
| Value_List * | get_for_value_list (Pptr *pptr, Pptr *placemark) |
| Pptr * | process_for_directive (Pptr *pptr, Pptr *placemark) |
| Pptr * | process_if_directive (Pptr *pptr, Pptr *placemark) |
| Pptr * | process_include_directive (Pptr *pptr, Pptr *placemark) |
| Pptr * | process_directive (Pptr *pptr) |
| char * | Pget_alnum_string (Pptr *pptr) |
| char * | Pget_identifier (Pptr *pptr) |
| char * | Pget_stripped_line (Pptr *pptr) |
| char * | Pget_quoted_string (Pptr *pptr, int strip_quotes) |
| char * | Pget_for_string (Pptr *pptr) |
| char * | Pget_bounded_string (Pptr *pptr) |
| void | Pskip_whitespace (Pptr *pptr) |
| void | Pskip_whitespace_no_nl (Pptr *pptr) |
| Pptr * | create_Pptr (Mfile *mfile) |
| Pptr * | copy_Pptr (Pptr *orig_pptr) |
| void | move_Pptr (Pptr *old_pptr, Pptr *new_pptr) |
| void | free_Pptr (Pptr *pptr) |
| void | Pexpand_directive (Pptr *source_pptr) |
| int | Pexpand_text (Pptr *pptr) |
| int | Pgetc (Pptr *pptr) |
| int | Ppeekc (Pptr *pptr) |
| int | Pcalc_C_int_expr (Pptr *pptr, int current_precedence) |
| int | Pcalc_C_int_factor (Pptr *pptr) |
| double | Pcalc_C_float_expr (Pptr *pptr, int current_precedence) |
| double | Pcalc_C_float_factor (Pptr *pptr) |
| Pdef * | create_Pdef (char *name, char *val, int allow_implicit_replacement, int level) |
| void | free_Pdef (void *def_v) |
| void | add_Pdef (char *name, char *val, int allow_implicit_replacement, int level) |
| void | delete_Pdef (char *name) |
| char * | Plookup (char *name, int implicit_replacement) |
Variables | |
| char | copyright [] |
| FILE * | out |
| Mfile * | current_file |
| Psymbol_Table * | Pdef_table = NULL |
| Psymbol_Table * | Mfile_table = NULL |
| int | allow_text_replacement = 1 |
| int | disable_implicit_text_replacement = 0 |
| Mbuf * | temp_mbuf = NULL |
| Mbuf * | pptr_mbuf = NULL |
| Pptr * | temp_placemark = NULL |
| Mptr * | expand_placemark = NULL |
| L_Alloc_Pool * | Pptr_pool = NULL |
| L_Alloc_Pool * | Pdef_pool = NULL |
| L_Alloc_Pool * | String_Node_pool = NULL |
| L_Alloc_Pool * | Value_List_pool = NULL |
| char * | program_name = NULL |
| char * | input_file_name = NULL |
| char * | output_file_name = NULL |
| int | using_stdin = 0 |
| int | print_line_directives = 1 |
| int | print_alloc_usage = 0 |
|
||||||||||||||||||||
|
Definition at line 3633 of file md_preprocessor.c. References add_Psymbol(), Pdef::allow_implicit_replacement, create_Pdef(), Psymbol::data, find_Psymbol(), free(), Pdef::level, Pdef_table, strdup(), and Pdef::val. Referenced by main(), process_def_directive(), process_for_directive(), and read_command_line_parameters(). |
|
|
Definition at line 2141 of file md_preprocessor.c. References adds_to_Mbuf(), copy_Mptr(), create_Mbuf(), Pptr::expanded, Pptr::expanded_pos, get_Mbuf_buf(), L_alloc(), Pptr::mptr, Pptr_pool, Pptr::quoted, and Pptr::scanned. Referenced by Pcalc_C_float_expr(), Pcalc_C_float_factor(), Pcalc_C_int_expr(), Pcalc_C_int_factor(), Pexpand_directive(), process_directive(), and process_for_directive(). |
|
||||||||||||||||||||
|
Definition at line 3606 of file md_preprocessor.c. References Pdef::allow_implicit_replacement, L_alloc(), Pdef::level, Pdef::name, Pdef_pool, strdup(), and Pdef::val. Referenced by add_Pdef(). |
|
|
Definition at line 2123 of file md_preprocessor.c. References create_Mbuf(), create_Mptr(), Pptr::expanded, Pptr::expanded_pos, L_alloc(), Pptr::mptr, Pptr_pool, Pptr::quoted, and Pptr::scanned. Referenced by main(), and process_include_directive(). |
|
|
Definition at line 3665 of file md_preprocessor.c. References delete_Psymbol(), find_Psymbol(), free_Pdef(), and Pdef_table. Referenced by process_for_directive(), and process_undef_directive(). |
|
|
Definition at line 3621 of file md_preprocessor.c. References free(), L_free(), Pdef::name, Pdef_pool, and Pdef::val. |
|
|
Definition at line 2187 of file md_preprocessor.c. References Pptr::expanded, free_Mbuf(), free_Mptr(), L_free(), Pptr::mptr, and Pptr_pool. Referenced by main(), Pcalc_C_float_expr(), Pcalc_C_float_factor(), Pcalc_C_int_expr(), Pcalc_C_int_factor(), Pexpand_directive(), process_directive(), process_for_directive(), and process_include_directive(). |
|
||||||||||||
|
Definition at line 1086 of file md_preprocessor.c. References Value_List::allow_implicit_replacement, disable_implicit_text_replacement, Value_List::first_value, L_alloc(), Value_List::last_value, move_Pptr(), Value_List::name, String_Node::next, Perror(), Pget_for_string(), Pget_identifier(), Pgetc(), Ppeekc(), Pskip_whitespace(), String_Node::string, String_Node_pool, Value_List::value_count, and Value_List_pool. Referenced by process_for_directive(). |
|
||||||||||||
|
||||||||||||||||
|
||||||||||||
|
Definition at line 2166 of file md_preprocessor.c. References adds_to_Mbuf(), clear_Mbuf(), Pptr::expanded, Pptr::expanded_pos, get_Mbuf_buf(), L_punt(), move_Mptr(), Pptr::mptr, Pptr::quoted, and Pptr::scanned. Referenced by get_for_value_list(), Pcalc_C_float_expr(), Pcalc_C_float_factor(), Pcalc_C_int_expr(), Pcalc_C_int_factor(), Pget_bounded_string(), Pget_for_string(), Pget_quoted_string(), process_def_directive(), process_for_directive(), and process_if_directive(). |
|
||||||||||||
|
Definition at line 3199 of file md_preprocessor.c. References copy_Pptr(), free_Pptr(), move_Pptr(), Pcalc_C_float_factor(), Perror(), Pgetc(), Ppeekc(), and Pskip_whitespace(). Referenced by Pcalc_C_float_factor(), and Pexpand_directive(). |
|
|
Definition at line 3391 of file md_preprocessor.c. References addc_to_Mbuf(), copy_Pptr(), create_Mbuf(), free_Mbuf(), free_Pptr(), get_Mbuf_buf(), move_Pptr(), Pcalc_C_float_expr(), Perror(), Pgetc(), Ppeekc(), Pskip_whitespace(), and strtod(). Referenced by Pcalc_C_float_expr(). |
|
||||||||||||
|
Definition at line 2839 of file md_preprocessor.c. References copy_Pptr(), free_Pptr(), move_Pptr(), Pcalc_C_int_factor(), Perror(), Pgetc(), Ppeekc(), and Pskip_whitespace(). Referenced by Pcalc_C_int_factor(), Pexpand_directive(), and process_if_directive(). |
|
|
Definition at line 3035 of file md_preprocessor.c. References copy_Pptr(), free_Pptr(), move_Pptr(), Pcalc_C_int_expr(), Perror(), Pgetc(), Ppeekc(), and Pskip_whitespace(). Referenced by Pcalc_C_int_expr(), and Pexpand_directive(). |
|
||||||||||||||||
|
|
Definition at line 2202 of file md_preprocessor.c. References addc_to_Mbuf(), adds_to_Mbuf(), allow_text_replacement, copy_Pptr(), create_Mbuf(), disable_implicit_text_replacement, Pptr::expanded, Pptr::expanded_pos, free_Mbuf(), free_Pptr(), get_Mbuf_buf(), i, Merror(), Mgetc(), move_Mptr(), Mpeekc(), Pptr::mptr, Pcalc_C_float_expr(), Pcalc_C_int_expr(), Pcalc_C_int_factor(), Perror(), Pgetc(), Plookup(), Ppeekc(), Pskip_whitespace(), Pptr::scanned, and sprintf(). Referenced by Pexpand_text(). |
|
|
Definition at line 2586 of file md_preprocessor.c. References addc_to_Mbuf(), adds_to_Mbuf(), allow_text_replacement, clear_Mbuf(), Mbuf::cur_len, disable_implicit_text_replacement, expand_placemark, Pptr::expanded, Pptr::expanded_pos, get_Mbuf_buf(), Merror(), Mgetc(), move_Mptr(), Mpeekc(), Pptr::mptr, Mptr_pos(), Pexpand_directive(), Plookup(), pptr_mbuf, Pptr::quoted, and Pptr::scanned. |
|
|
Definition at line 1747 of file md_preprocessor.c. References addc_to_Mbuf(), clear_Mbuf(), copy_Mbuf_buf(), Pgetc(), Ppeekc(), and temp_mbuf. Referenced by process_directive(), and process_if_directive(). |
|
|
Definition at line 2017 of file md_preprocessor.c. References addc_to_Mbuf(), clear_Mbuf(), copy_Mbuf_buf(), L_punt(), move_Pptr(), Perror(), Pgetc(), Ppeekc(), Pskip_whitespace_no_nl(), temp_mbuf, and temp_placemark. Referenced by Pget_for_string(), and process_def_directive(). |
|
|
Definition at line 1922 of file md_preprocessor.c. References addc_to_Mbuf(), clear_Mbuf(), copy_Mbuf_buf(), move_Pptr(), Perror(), Pget_bounded_string(), Pget_quoted_string(), Pgetc(), Ppeekc(), Pskip_whitespace_no_nl(), temp_mbuf, and temp_placemark. Referenced by get_for_value_list(). |
|
|
Definition at line 1772 of file md_preprocessor.c. References addc_to_Mbuf(), clear_Mbuf(), copy_Mbuf_buf(), Perror(), Pgetc(), Ppeekc(), and temp_mbuf. Referenced by get_for_value_list(), process_def_directive(), and process_undef_directive(). |
|
||||||||||||
|
Definition at line 1838 of file md_preprocessor.c. References addc_to_Mbuf(), clear_Mbuf(), copy_Mbuf_buf(), move_Pptr(), Perror(), Pgetc(), Ppeekc(), Pskip_whitespace_no_nl(), temp_mbuf, and temp_placemark. Referenced by Pget_for_string(), and process_include_directive(). |
|
|
Definition at line 1808 of file md_preprocessor.c. References addc_to_Mbuf(), clear_Mbuf(), copy_Mbuf_buf(), Pgetc(), Ppeekc(), Pskip_whitespace_no_nl(), strip_Mbuf(), and temp_mbuf. Referenced by process_def_directive(). |
|
|
||||||||||||
|
Definition at line 3680 of file md_preprocessor.c. References Pdef::allow_implicit_replacement, Psymbol::data, find_Psymbol(), Pdef_table, and Pdef::val. Referenced by Pexpand_directive(), and Pexpand_text(). |
|
|
||||||||||||
|
Definition at line 502 of file md_preprocessor.c. References fprintf(), free(), Mline::line_no, Mptr::mfile, Mptr::mline, Pptr::mptr, Mfile::name, out, print_line_directives, strcmp(), and strdup(). Referenced by main(), process_body(), and process_include_directive(). |
|
||||||||||||
|
Definition at line 162 of file md_preprocessor.c. References exit(), fprintf(), program_name, and vfprintf(). Referenced by read_command_line_parameters(). |
|
|
Definition at line 762 of file md_preprocessor.c. References Pgetc(), Ppeekc(), Pputc(), and process_directive(). Referenced by main(), process_for_directive(), process_if_directive(), and process_include_directive(). |
|
|
Definition at line 941 of file md_preprocessor.c. References add_Pdef(), disable_implicit_text_replacement, free(), move_Pptr(), Perror(), Pget_bounded_string(), Pget_identifier(), Pget_stripped_line(), Pgetc(), Ppeekc(), Pskip_whitespace_no_nl(), strdup(), and temp_placemark. Referenced by process_directive(). |
|
|
Definition at line 1642 of file md_preprocessor.c. References copy_Pptr(), free(), free_Pptr(), L_punt(), Perror(), Pget_alnum_string(), Pgetc(), process_def_directive(), process_for_directive(), process_if_directive(), process_include_directive(), process_undef_directive(), and strcmp(). Referenced by process_body(). |
|
||||||||||||
|
Definition at line 1200 of file md_preprocessor.c. References add_Pdef(), Value_List::allow_implicit_replacement, copy_Pptr(), delete_Pdef(), Value_List::first_value, free(), free_Pptr(), get_for_value_list(), L_free(), Value_List::last_value, move_Pptr(), Value_List::name, String_Node::next, Value_List::next_list, Perror(), Pgetc(), Ppeekc(), process_body(), Pskip_whitespace(), strcmp(), String_Node::string, String_Node_pool, Value_List::value_count, and Value_List_pool. Referenced by process_directive(). |
|
||||||||||||
|
Definition at line 1386 of file md_preprocessor.c. References free(), move_Pptr(), Pcalc_C_int_expr(), Perror(), Pget_alnum_string(), Pgetc(), Ppeekc(), process_body(), Pskip_whitespace(), skip_body(), and strcmp(). Referenced by process_directive(). |
|
||||||||||||
|
Definition at line 1556 of file md_preprocessor.c. References add_Psymbol(), create_Mfile(), create_Pptr(), Psymbol::data, find_Psymbol(), fopen(), free(), free_Pptr(), Mfile_table, Pptr::mptr, Mfile::name, Perror(), Pget_quoted_string(), Pgetc(), Mptr::pos, Ppeekc(), Pputc(), process_body(), and Pskip_whitespace_no_nl(). Referenced by process_directive(). |
|
|
Definition at line 1058 of file md_preprocessor.c. References delete_Pdef(), disable_implicit_text_replacement, free(), Pget_identifier(), and Pskip_whitespace_no_nl(). Referenced by process_directive(). |
|
|
Definition at line 2095 of file md_preprocessor.c. References Pgetc(), and Ppeekc(). Referenced by get_for_value_list(), Pcalc_C_float_expr(), Pcalc_C_float_factor(), Pcalc_C_int_expr(), Pcalc_C_int_factor(), Pexpand_directive(), process_for_directive(), and process_if_directive(). |
|
|
Definition at line 2108 of file md_preprocessor.c. References Pgetc(), and Ppeekc(). Referenced by Pget_bounded_string(), Pget_for_string(), Pget_quoted_string(), Pget_stripped_line(), process_def_directive(), process_include_directive(), and process_undef_directive(). |
|
||||||||||||
|
Definition at line 193 of file md_preprocessor.c. References add_Pdef(), bypass_alloc_routines, free(), input_file_name, output_file_name, print_alloc_usage, print_line_directives, print_usage(), program_name, strcmp(), strdup(), and using_stdin. Referenced by main(). |
|
|
Definition at line 856 of file md_preprocessor.c. References allow_text_replacement, Pgetc(), and Ppeekc(). Referenced by process_if_directive(). |
|
|
Definition at line 125 of file md_preprocessor.c. Referenced by Pexpand_directive(), Pexpand_text(), and skip_body(). |
|
|
Initial value: "@(#) Copyright (c) 1994 The Board of Trustees of the University of Illinois.\ \nAll rights reserved.\n" Definition at line 105 of file md_preprocessor.c. |
|
|
Definition at line 116 of file md_preprocessor.c. Referenced by main(). |
|
|
Definition at line 136 of file md_preprocessor.c. Referenced by get_for_value_list(), Pexpand_directive(), Pexpand_text(), process_def_directive(), and process_undef_directive(). |
|
|
Definition at line 144 of file md_preprocessor.c. Referenced by main(), and Pexpand_text(). |
|
|
Definition at line 155 of file md_preprocessor.c. Referenced by create_Mfile(), handle_top_region_c(), init_in_file(), init_spread_out_file(), main(), options(), read_command_line_parameters(), and write_out_c_op(). |
|
|
Definition at line 120 of file md_preprocessor.c. Referenced by main(), and process_include_directive(). |
|
|
|
Definition at line 156 of file md_preprocessor.c. |
|
|
Definition at line 148 of file md_preprocessor.c. Referenced by create_Pdef(), free_Pdef(), and main(). |
|
|
Definition at line 119 of file md_preprocessor.c. Referenced by add_Pdef(), delete_Pdef(), main(), and Plookup(). |
|
|
Definition at line 140 of file md_preprocessor.c. Referenced by main(), and Pexpand_text(). |
|
|
Definition at line 147 of file md_preprocessor.c. Referenced by copy_Pptr(), create_Pptr(), free_Pptr(), and main(). |
|
|
Definition at line 159 of file md_preprocessor.c. Referenced by main(), and read_command_line_parameters(). |
|
|
Definition at line 158 of file md_preprocessor.c. Referenced by Pputc(), and read_command_line_parameters(). |
|
|
Definition at line 152 of file md_preprocessor.c. |
|
|
Definition at line 149 of file md_preprocessor.c. Referenced by get_for_value_list(), main(), and process_for_directive(). |
|
|
Definition at line 139 of file md_preprocessor.c. Referenced by main(), Pget_alnum_string(), Pget_bounded_string(), Pget_for_string(), Pget_identifier(), Pget_quoted_string(), and Pget_stripped_line(). |
|
|
Definition at line 143 of file md_preprocessor.c. Referenced by main(), Pget_bounded_string(), Pget_for_string(), Pget_quoted_string(), and process_def_directive(). |
|
|
Definition at line 157 of file md_preprocessor.c. |
|
|
Definition at line 150 of file md_preprocessor.c. Referenced by get_for_value_list(), main(), and process_for_directive(). |
1.3.2