#include "def.h"#include <string.h>Include dependency graph for parse.cpp:

Go to the source code of this file.
Functions | |
| int | find_includes (struct filepointer *filep, inclist *file, inclist *file_red, int recursion, bool failOK) |
| int | gobble (register struct filepointer *filep, inclist *file, inclist *file_red) |
| int | deftype (register char *line, register struct filepointer *filep, register inclist *file_red, register inclist *file, int parse_it) |
| symtab * | isdefined (register char *symbol, inclist *file, inclist **srcfile) |
| symtab * | fdefined (register char *symbol, inclist *file, inclist **srcfile) |
| int | zero_value (register char *exp, register struct filepointer *filep, register inclist *file_red) |
| void | define (char *def, inclist *file) |
| void | define2 (char *name, char *val, inclist *file) |
| symtab * | slookup (register char *symbol, register inclist *file) |
| void | undefine (char *symbol, register inclist *file) |
Variables | |
| const char * | directives [] |
| inclist | maininclist |
| void define | ( | char * | def, | |
| inclist * | file | |||
| ) |
Definition at line 412 of file parse.cpp.
References define2().
Referenced by find_includes(), and main().
| void define2 | ( | char * | name, | |
| char * | val, | |||
| inclist * | file | |||
| ) |
Definition at line 430 of file parse.cpp.
References copy(), fatalerr(), inclist::i_deflen, inclist::i_defs, inclist::i_ndefs, NULL, symtab::s_name, symtab::s_value, and SYMTABINC.
| int deftype | ( | register char * | line, | |
| register struct filepointer * | filep, | |||
| register inclist * | file_red, | |||
| register inclist * | file, | |||
| int | parse_it | |||
| ) |
Definition at line 215 of file parse.cpp.
References debug, DEFINE, directives, EJECT, ELIF, ELIFFALSE, ELIFGUESSFALSE, ELSE, ENDIF, ERROR, IDENT, IF, IFDEF, IFFALSE, IFNDEF, IMPORT, INCLUDE, INCLUDEDOT, isdefined(), match(), NULL, PRAGMA, symtab::s_name, symtab::s_value, SCCS, UNDEF, and zero_value().
Definition at line 374 of file parse.cpp.
References debug, fdefined(), inclist::i_defchecked, inclist::i_file, inclist::i_list, NULL, symtab::s_value, and slookup().
Referenced by fdefined(), and isdefined().
| int find_includes | ( | struct filepointer * | filep, | |
| inclist * | file, | |||
| inclist * | file_red, | |||
| int | recursion, | |||
| bool | failOK | |||
| ) |
Definition at line 40 of file parse.cpp.
References add_include(), debug, define(), DEFINE, deftype(), EJECT, ELIF, ELIFFALSE, ELIFGUESSFALSE, ELSE, ENDIF, ERROR, find_includes(), getline(), gobble(), inclist::i_file, IDENT, IF, IFDEF, IFFALSE, IFGUESSFALSE, IFNDEF, IMPORT, INCLUDE, INCLUDEDOT, isdefined(), NULL, PRAGMA, SCCS, UNDEF, undefine(), warning(), and warning1().
Referenced by add_include(), find_includes(), and main().
| int gobble | ( | register struct filepointer * | filep, | |
| inclist * | file, | |||
| inclist * | file_red | |||
| ) |
Definition at line 162 of file parse.cpp.
References debug, DEFINE, deftype(), directives, EJECT, ELIF, ELIFFALSE, ELIFGUESSFALSE, ELSE, ENDIF, ERROR, getline(), gobble(), inclist::i_file, IDENT, IF, IFDEF, IFFALSE, IFGUESSFALSE, IFNDEF, IMPORT, INCLUDE, INCLUDEDOT, PRAGMA, SCCS, UNDEF, and warning().
Definition at line 358 of file parse.cpp.
References debug, fdefined(), inclist::i_file, maininclist, NULL, and slookup().
Referenced by deftype(), find_includes(), and undefine().
Definition at line 506 of file parse.cpp.
References NULL, and symtab::s_name.
Referenced by fdefined(), and isdefined().
| void undefine | ( | char * | symbol, | |
| register inclist * | file | |||
| ) |
Definition at line 544 of file parse.cpp.
References inclist::i_defs, inclist::i_ndefs, isdefined(), and NULL.
Referenced by find_includes().
| int zero_value | ( | register char * | exp, | |
| register struct filepointer * | filep, | |||
| register inclist * | file_red | |||
| ) |
| const char* directives[] |
1.5.1