blob: 2d8e2ab3e6ab827011925e1fa1aacdf975f6146d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/* various arguments for tib and tiblist processors */
/* file names
need to be set at installation */
/* common words */
#define COMFILE "CCCCC"
/* default system index */
#define SYSINDEX "FFFFF"
/* where macro libraries live */
#define TMACLIB "BBBBB"
/* default style of references */
#define DEFSTYLE "BBBBB/num.tib"
/* output of tibdex, input file for references */
#define INDXFILE "INDEX"
/* system dependent characters */
#define DIRSEP "/" /* directory separator for path names */
/* use "/" for unix */
/* use ":" for TOPS-20/VMS */
/* use "\\" for MS-DOS */
#define OPTCH "-" /* option character for program call */
/* use "-" for unix */
/* use "/" for VMS, MS-DOS */
/* temporary work files */
/* pass1 reference collection file */
#define TMPREFFILE "/tmp/tibrXXXXXX"
/* pass2 text collection file */
#define TMPTEXTFILE "/tmp/tibpXXXXXX"
/* temp file used in tibdex */
#define INVTEMPFILE "/tmp/tibdexXXXXXX"
/* constants */
#define VERSION "2.2" /* version number */
#define RDATE "12/15/89" /* release date */
#define true 1
#define false 0
#define err -1
#define REFSIZE 1024 /* maximum size of reference string */
#define MAXFIELD 512 /* maximum size of any field in reference */
#define HUNTSIZE 512 /* maximum size of hunt string */
#define MAXREFS 300 /* maximum number of references in document */
#define MAXATONCE 35 /* maximum references at one location */
#define LINELENGTH 1024
#define MAXDEFS 2200 /* maximum number of defined words */
#define MAXCOMM 1000 /* maximum number of characters in common file */
#define MAXSTR 256 /* maximum length of string in streams.c */
/* reference citation marker generated in pass 1 */
#define CITEMARK (char) 02
#define CITEEND (char) 03
char *malloc();
/* fix needed for systems where open [w]+ doesn't work */
#ifdef READWRITE
#define READ 1
#define WRITE 0
#endif
/* Modification added by J. Goldberg for porting to HP-UX */
#ifdef HPUX
# include "/usr/contrib/include/bsd.h"
# include <string.h> /* for index --> strchr */
#endif
|