home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_10
/
9n10035a
< prev
next >
Wrap
Text File
|
1991-08-15
|
924b
|
36 lines
/* line read from .asm file */
#define MAX_LINE_LEN 1024
typedef char LINE[MAX_LINE_LEN + 1];
/* set of tokens extracted from list in .asm file */
#define MAX_TOKENS 10
#define MAX_TOKEN_LEN 80
typedef char TOKENS[MAX_TOKENS][MAX_TOKEN_LEN + 1];
/* fcn name */
#define MAX_NAME_LEN 80
typedef char NAME[MAX_NAME_LEN + 1];
/* fcn call list */
typedef struct CELL *LIST;
typedef struct CELL
{
NAME name;
LIST calls, called_from, next;
} CELL;
/* Function prototypes. */
void build_graph(LIST *fcn_list, const char *filename);
void insert_cell(LIST *list, const char *name);
void delete_cell(LIST *list, const char *name);
LIST find_cell(LIST list, const char *name);
void print_calls(LIST list, const char *name, int depth, LIST *fcns);
void print_all_calls(LIST list);
void error(const char *message);
int namecmp(const char *name1, const char *name2);