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 >
Text File  |  1991-08-15  |  924b  |  36 lines

  1.  
  2. /* line read from .asm file */
  3. #define MAX_LINE_LEN     1024
  4. typedef char LINE[MAX_LINE_LEN + 1];
  5.  
  6. /* set of tokens extracted from list in .asm file */
  7. #define MAX_TOKENS       10
  8. #define MAX_TOKEN_LEN    80
  9. typedef char TOKENS[MAX_TOKENS][MAX_TOKEN_LEN + 1];
  10.  
  11. /* fcn name */
  12. #define MAX_NAME_LEN     80
  13. typedef char NAME[MAX_NAME_LEN + 1];
  14.  
  15. /* fcn call list */
  16. typedef struct CELL *LIST;
  17.  
  18. typedef struct CELL
  19. {
  20. NAME      name;
  21. LIST      calls, called_from, next;
  22. } CELL;
  23.  
  24. /* Function prototypes. */
  25.  
  26. void build_graph(LIST *fcn_list, const char *filename);
  27. void insert_cell(LIST *list, const char *name);
  28. void delete_cell(LIST *list, const char *name);
  29. LIST find_cell(LIST list, const char *name);
  30. void print_calls(LIST list, const char *name, int depth, LIST *fcns);
  31. void print_all_calls(LIST list);
  32. void error(const char *message);
  33. int  namecmp(const char *name1, const char *name2);
  34.  
  35.  
  36.