feisty meow concerns codebase  2.140
parse.cpp File Reference
#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)
 
symtabisdefined (register char *symbol, inclist *file, inclist **srcfile)
 
struct symtabfdefined (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)
 
struct symtabslookup (register char *symbol, register inclist *file)
 
void undefine (char *symbol, register inclist *file)
 

Variables

const char * directives []
 
inclist maininclist
 

Function Documentation

◆ define()

void define ( char *  def,
inclist file 
)

Definition at line 416 of file parse.cpp.

References define2().

Referenced by find_includes(), and main().

◆ define2()

void define2 ( char *  name,
char *  val,
inclist file 
)

◆ deftype()

int deftype ( register char *  line,
register struct filepointer filep,
register inclist file_red,
register inclist file,
int  parse_it 
)

◆ fdefined()

struct symtab* fdefined ( register char *  symbol,
inclist file,
inclist **  srcfile 
)

Definition at line 378 of file parse.cpp.

References debug, fdefined(), inclist::i_defchecked, inclist::i_file, inclist::i_list, symtab::s_value, and slookup().

Referenced by fdefined(), and isdefined().

◆ find_includes()

int find_includes ( struct filepointer filep,
inclist file,
inclist file_red,
int  recursion,
bool  failOK 
)

◆ gobble()

int gobble ( register struct filepointer filep,
inclist file,
inclist file_red 
)

◆ isdefined()

symtab* isdefined ( register char *  symbol,
inclist file,
inclist **  srcfile 
)

Definition at line 362 of file parse.cpp.

References debug, fdefined(), inclist::i_file, maininclist, and slookup().

Referenced by deftype(), find_includes(), and undefine().

◆ slookup()

struct symtab* slookup ( register char *  symbol,
register inclist file 
)

Definition at line 510 of file parse.cpp.

References inclist::i_defs, inclist::i_ndefs, and symtab::s_name.

Referenced by fdefined(), and isdefined().

◆ undefine()

void undefine ( char *  symbol,
register inclist file 
)

Definition at line 548 of file parse.cpp.

References inclist::i_defs, inclist::i_ndefs, and isdefined().

Referenced by find_includes().

◆ zero_value()

int zero_value ( register char *  exp,
register struct filepointer filep,
register inclist file_red 
)

Definition at line 407 of file parse.cpp.

References cppsetup(), IF, and IFFALSE.

Referenced by deftype().

Variable Documentation

◆ directives

const char* directives[]
extern

Definition at line 76 of file makedep.cpp.

Referenced by deftype(), and gobble().

◆ maininclist

inclist maininclist
extern

Definition at line 100 of file makedep.cpp.

Referenced by isdefined(), and main().