1 |
adcroft |
1.1 |
/* $Id: GLOBALS.h,v 1.2 1997/03/23 05:52:43 cnh Exp cnh $ */ |
2 |
|
|
|
3 |
|
|
char *strjoin(); |
4 |
|
|
char *strcopy(); |
5 |
|
|
|
6 |
|
|
/* Current input file */ |
7 |
|
|
char *currentFile; |
8 |
|
|
|
9 |
|
|
/* Current subroutine name and start line number. */ |
10 |
|
|
char *currentProcedure; |
11 |
|
|
int currentProcedureLine0; |
12 |
|
|
#define NOPROC "NO PROCEDURE" |
13 |
|
|
|
14 |
|
|
/* Buffer for current line */ |
15 |
|
|
#define currentLineBufSize 500 |
16 |
|
|
char currentLineText[currentLineBufSize]; |
17 |
|
|
/* Buffer for current line with HTML markup */ |
18 |
|
|
#define currentLineHtmlSize 5000 |
19 |
|
|
char currentLineHtml[currentLineHtmlSize]; |
20 |
|
|
|
21 |
|
|
/* Output directory tree */ |
22 |
|
|
#define OUTDIR "vdb" |
23 |
|
|
#define VARSUF "names" |
24 |
|
|
#define SRCSUF "code" |
25 |
|
|
#define VDICT "vdict.htm" |
26 |
|
|
#define PROCDICT "procdict" |
27 |
|
|
#define PARMDICT "parmdict" |
28 |
|
|
#define COMPDICT "compdict" |
29 |
|
|
#define SFDICT "sfdict" |
30 |
|
|
#define TMP1 "tmp1" |
31 |
|
|
#define TMP2 "tmp2" |
32 |
|
|
#define HTMLSUF ".htm" |
33 |
|
|
#define MAXPATHNAM 1024 |
34 |
|
|
char *rootDir; |
35 |
|
|
char *varDir; |
36 |
|
|
char *srcDir; |
37 |
|
|
|
38 |
|
|
/* Output files */ |
39 |
|
|
FILE *vdictfd; /* Dictionary */ |
40 |
|
|
FILE *procdictfd; /* Procedure Table */ |
41 |
|
|
FILE *parmdictfd; /* Runtime Param Table */ |
42 |
|
|
FILE *compdictfd; /* Compile Time Table */ |
43 |
|
|
FILE *srcfd; /* Source code */ |
44 |
|
|
char sHtmlName[MAXPATHNAM]; /* Name */ |
45 |
|
|
FILE *varfd; /* Use table */ |
46 |
|
|
FILE *tmpfd; /* Scratch file */ |
47 |
|
|
|
48 |
|
|
/* Counters */ |
49 |
|
|
int Lno; /* Current record number */ |
50 |
|
|
int Cno; /* Current character number */ |
51 |
|
|
|
52 |
|
|
/* State information */ |
53 |
|
|
int inNameList; |
54 |
|
|
int inIfdef; |
55 |
|
|
int nameIsProcName; |
56 |
|
|
|
57 |
|
|
/* Variables used by parser to store data in processing. */ |
58 |
|
|
char *curName; |
59 |
|
|
char *curHref; |
60 |
|
|
char *curText; |
61 |
|
|
char *curFootNotes; |
62 |
|
|
char *curUnits; |
63 |
|
|
|
64 |
|
|
char *base36(/* int n */); |