C Cross Referencing & Documentation tool. Version 1.6e.
Collects the variable definition stuff.
Control the output of debugging information from this file.
The file that is currently being documented.
extern File CurFile
Defined in: | cxref.c |
When in a header file make a note of which one for the included variables.
extern int in_header
Defined in: | preproc.c |
A list of the variables found at each level of the scope.
Used in: | DownScope() | |
IsAScopeVariable() | ||
ResetVariableAnalyser() | ||
SeenScopeVariable() | ||
UpScope() |
The number of levels of scope depth allocated.
Used in: | ResetVariableAnalyser() | |
UpScope() |
The current scope depth.
Used in: | DownScope() | |
IsAScopeVariable() | ||
ResetVariableAnalyser() | ||
SeenScopeVariable() | ||
UpScope() |
Delete the specified Variable type.
void DeleteVariableType ( Variable var )
Prototyped in: | cxref.h | |
Calls: | DeleteStringList2() | slist.c |
SafeFree() | memory.c | |
Called by: | DeleteFile() | file.c |
Called when an old scope is exited.
Prototyped in: | cxref.h | |
Calls: | DeleteStringList2() | slist.c |
exit(), fprintf() | ||
Called by: | yyparse() | parse-yacc.c |
References Variables: | cur_scope | var.c |
variable | var.c |
Check through the scope variables to look for the named one.
int IsAScopeVariable ( char* name )
Prototyped in: | cxref.h | |
Calls: | strcmp() | |
Called by: | CheckFunctionVariableRef() | func.c |
yylex() | parse-lex.c | |
yyparse() | parse-yacc.c | |
References Variables: | cur_scope | var.c |
variable | var.c |
Tidy up all of the local variables in case of a problem and abnormal parser termination.
void ResetVariableAnalyser ( void )
Prototyped in: | cxref.h | |
Calls: | DeleteStringList2() | slist.c |
SafeFree() | memory.c | |
Called by: | main() | cxref.c |
References Variables: | cur_scope | var.c |
max_scope | var.c | |
variable | var.c |
Add a variable to the list of known variables.
void SeenScopeVariable ( char* name )
Prototyped in: | cxref.h | |
Calls: | AddToStringList2() | slist.c |
Called by: | yyparse() | parse-yacc.c |
References Variables: | cur_scope | var.c |
variable | var.c |
Function that is called when a variable definition is seen.
void SeenVariableDefinition ( char* name, char* type, int scope )
Prototyped in: | cxref.h | |
Calls: | GetCurrentComment() | comment.c |
NewVariableType() | var.c | |
SafeFree() | memory.c | |
SafeMallocString() | memory.c | |
strcmp() | ||
Called by: | yyparse() | parse-yacc.c |
References Variables: | CurFile | cxref.c |
in_header | preproc.c | |
parse_file | parse-lex.c | |
parse_line | parse-lex.c |
Called when a new scope is entered.
Prototyped in: | cxref.h | |
Calls: | NewStringList2() | slist.c |
SafeMalloc() | memory.c | |
SafeRealloc() | memory.c | |
Called by: | yyparse() | parse-yacc.c |
References Variables: | cur_scope | var.c |
max_scope | var.c | |
variable | var.c |
Create a new variable type.
static Variable NewVariableType ( char* name, char* type )
Prototyped in: | var.c | |
Calls: | NewStringList2() | slist.c |
SafeCalloc() | memory.c | |
SafeMallocString() | memory.c | |
Called by: | SeenVariableDefinition() | var.c |