home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / nuweb / nuwebsrc / Nuweb / src / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-13  |  2.9 KB  |  122 lines

  1.  
  2. #line 555 "nuweb.w"
  3.  
  4. #line 565 "nuweb.w"
  5. #include <stdlib.h>
  6. #include <stdio.h>
  7. #include <string.h>
  8. #include <ctype.h>
  9. #include <limits.h>
  10.  
  11. #line 555 "nuweb.w"
  12.  
  13.  
  14. #line 581 "nuweb.w"
  15. #ifndef FALSE
  16. #define FALSE 0
  17. #endif
  18. #ifndef TRUE
  19. #define TRUE 1
  20. #endif
  21.  
  22. #line 3035 "nuweb.w"
  23. typedef struct scrap_node {
  24.   struct scrap_node *next;
  25.   int scrap;
  26. } Scrap_Node;
  27.  
  28. #line 3044 "nuweb.w"
  29. typedef struct name {
  30.   char *spelling;
  31.   struct name *llink;
  32.   struct name *rlink;
  33.   Scrap_Node *defs;
  34.   Scrap_Node *uses;
  35.   int mark;
  36.   char tab_flag;
  37.   char indent_flag;
  38.   char debug_flag;
  39. } Name;
  40.  
  41. #line 556 "nuweb.w"
  42.  
  43.  
  44. #line 712 "nuweb.w"
  45. extern int tex_flag;      /* if FALSE, don't emit the documentation file */
  46. extern int html_flag;     /* if TRUE, emit HTML scraps. */
  47. extern int hw_flag;       /* if TRUE, emit HTML scraps from LaTeX input. */
  48. extern int program_flag;  /* if FALSE, don't emit the program files */
  49. extern int compare_flag;  /* if FALSE, overwrite without comparison */
  50. extern int compline_flag; /* if TRUE, ignore #line directives while comparing */
  51. extern int verbose_flag;  /* if TRUE, write progress information */
  52. extern int number_flag;   /* if TRUE, use a sequential numbering scheme */
  53. extern int skipnl_flag;   /* if TRUE, skip a newline after @{ and before @} */
  54.  
  55. #line 744 "nuweb.w"
  56. extern char *command_name;
  57.  
  58. #line 2296 "nuweb.w"
  59. extern char *source_name;  /* name of the current file */
  60. extern int source_line;    /* current line in the source file */
  61.  
  62. #line 2593 "nuweb.w"
  63. extern int already_warned;
  64.  
  65. #line 3059 "nuweb.w"
  66. extern Name *file_names;
  67. extern Name *macro_names;
  68. extern Name *user_names;
  69.  
  70. #line 557 "nuweb.w"
  71.  
  72.  
  73. #line 869 "nuweb.w"
  74. char *trim_name(char *from, char *to, char **dot);
  75.  
  76. #line 977 "nuweb.w"
  77. void pass1(char *file_name);
  78.  
  79. #line 1121 "nuweb.w"
  80. void write_tex(char *file_name, char *tex_name);
  81.  
  82. #line 1628 "nuweb.w"
  83. void write_html(char *file_name, char *html_name);
  84.  
  85. #line 2164 "nuweb.w"
  86. void write_files(Name *files);
  87.  
  88. #line 2285 "nuweb.w"
  89. void source_open(char *name);
  90. int source_get(void);  /* returns next char or EOF */
  91. int source_next(void); /* returns next char to be read by source_get() */
  92.  
  93. #line 2529 "nuweb.w"
  94. void init_scraps(void);
  95. int collect_scrap(void);
  96. int write_scraps(FILE *file, Scrap_Node *defs, int global_indent,
  97.      char *indent_chars, char debug_flag, char tab_flag, char indent_flag);
  98. void write_scrap_ref(FILE *file, int num, int first, int *page);
  99. void write_single_scrap_ref(FILE *file, int num);
  100.  
  101. #line 2979 "nuweb.w"
  102. void collect_numbers(char *aux_name);
  103.  
  104. #line 3073 "nuweb.w"
  105. Name *collect_file_name(void);
  106. Name *collect_macro_name(void);
  107. Name *collect_scrap_name(void);
  108. Name *name_add(Name *root[], char *spelling);
  109. Name *prefix_add(Name *root[], char *spelling);
  110. char *save_string(char *s);
  111. void reverse_lists(Name *names);
  112.  
  113. #line 3574 "nuweb.w"
  114. void search(void);
  115.  
  116. #line 3802 "nuweb.w"
  117. void *arena_getmem(size_t n);
  118. void arena_free(void);
  119.  
  120. #line 558 "nuweb.w"
  121.  
  122.