RCS Header: /home/amb/cxref/RCS/var.c 1.13 1999/01/24 16:53:49 amb Exp
C Cross Referencing & Documentation tool. Version 1.5.
Collects the variable definition stuff.
Included Files
Preprocessor definitions
Control the output of debugging information from this file.
#define DEBUG 0
External Variables
CurFile
The file that is currently being documented.
extern File CurFile
in_header
When in a header file make a note of which one for the included variables.
extern int in_header
Local Variables
variable
A list of the variables found at each level of the scope.
static StringList2* variable
max_scope
The number of levels of scope depth allocated.
static int max_scope
cur_scope
The current scope depth.
static int cur_scope
Delete the specified Variable type.
void DeleteVariableType ( Variable var )
- Variable var
- The Variable type to be deleted.
Called when an old scope is exited.
void DownScope ( void )
Check through the scope variables to look for the named one.
int IsAScopeVariable ( char* name )
- int IsAScopeVariable
- Returns 1 if the name does refer to a variable that is scoped.
- char* name
- The name of the variable to search for.
Tidy up all of the local variables in case of a problem and abnormal parser termination.
void ResetVariableAnalyser ( void )
Add a variable to the list of known variables.
void SeenScopeVariable ( char* name )
- char* name
- The name of the variable.
Function that is called when a variable definition is seen.
void SeenVariableDefinition ( char* name, char* type, int scope )
- char* name
- The name of the variable.
- char* type
- The type of the variable.
- int scope
- The scope of variable that has been seen.
Called when a new scope is entered.
void UpScope ( void )
Create a new variable type.
static Variable NewVariableType ( char* name, char* type )
- Variable NewVariableType
- Returns a new Variable type.
- char* name
- The name of the variable.
- char* type
- The type of the variable.