home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / nuweb087.zip / global.h < prev    next >
C/C++ Source or Header  |  1996-02-28  |  2KB  |  63 lines

  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5.  
  6. #ifndef FALSE
  7. #define FALSE 0
  8. #endif
  9. #ifndef TRUE
  10. #define TRUE (!0)
  11. #endif
  12. typedef struct scrap_node {
  13.   struct scrap_node *next;
  14.   int scrap;
  15. } Scrap_Node;
  16. typedef struct name {
  17.   char *spelling;
  18.   struct name *llink;
  19.   struct name *rlink;
  20.   Scrap_Node *defs;
  21.   Scrap_Node *uses;
  22.   int mark;
  23.   char tab_flag;
  24.   char indent_flag;
  25.   char debug_flag;
  26. } Name;
  27.  
  28. extern int tex_flag;      /* if FALSE, don't emit the .tex file */
  29. extern int output_flag;   /* if FALSE, don't emit the output files */
  30. extern int compare_flag;  /* if FALSE, overwrite without comparison */
  31. extern int verbose_flag;  /* if TRUE, write progress information */
  32. extern int number_flag;   /* if TRUE, use a sequential numbering scheme */
  33. extern char *command_name;
  34. extern char *source_name;  /* name of the current file */
  35. extern int source_line;    /* current line in the source file */
  36. extern int already_warned;
  37. extern Name *file_names;
  38. extern Name *macro_names;
  39. extern Name *user_names;
  40.  
  41. extern void pass1();
  42. extern void write_tex();
  43. extern void write_files();
  44. extern void source_open(); /* pass in the name of the source file */
  45. extern int source_get();   /* no args; returns the next char or EOF */
  46. extern void init_scraps();
  47. extern int collect_scrap();
  48. extern int write_scraps();
  49. extern void write_scrap_ref();
  50. extern void write_single_scrap_ref();
  51. extern void collect_numbers();
  52. extern Name *collect_file_name();
  53. extern Name *collect_macro_name();
  54. extern Name *collect_scrap_name();
  55. extern Name *name_add();
  56. extern Name *prefix_add();
  57. extern char *save_string();
  58. extern void reverse_lists();
  59. extern void search();
  60. extern void *arena_getmem();
  61. extern void arena_free();
  62.  
  63.