Jspice3
cdparser.h
Go to the documentation of this file.
1 /***************************************************************************
2 SCED - Schematic Capture Editor
3 JSPICE3 adaptation of Spice3e2 - Copyright (c) Stephen R. Whiteley 1992
4 Copyright 1990 Regents of the University of California. All rights reserved.
5 Authors: 1981 Giles C. Billingsley (parts of KIC layout editor)
6  1992 Stephen R. Whiteley
7 ****************************************************************************/
8 
9 /*
10  * Fast CIF parser's data structures.
11  *
12  */
13 
14 /*
15  * 24*80+1=1921 characters of string.
16  */
17 #define PSTRINGSIZE 1921
18 
19 /*
20  * Status of parse when parser returns.
21  */
22 extern char PStatus[80*3+1];
23 
24 /*
25  * CIF file desc.
26  */
27 extern FILE *PCIFFileDesc;
28 
29 /*
30  * string for input line buffering
31  */
32 extern char PString[PSTRINGSIZE];
33 
34 /*
35  * Global token variables.
36  */
37 extern int PChar;
38 extern long PInt;
39 extern int PReturned;
40 
41 #ifdef __STDC__
42 extern void PCIF(char*,char**,int*);
43 #else
44 extern void PCIF();
45 #endif
46 
47 /*
48  * Values routines return.
49  */
50 #define PSUCCEEDED 1 /* successful return */
51 #define PFAILED 2 /* parser failed */
52 #define PNOTAPPLICABLE 3 /* parser failed due to syntax */
53 
54 /*
55  * Arguments to handle an EOF in PCharacter and PInteger
56  */
57 #define PFAILONEOF 1
58 #define PDONTFAILONEOF 2
59 
60 /*
61  * Arguments to specify characters to be ignored by PWhiteSpace
62  */
63 #define PSTRIPWHITESPACE1 1 /* strip blanks, tabs, commas, or */
64  /* new lines. */
65 #define PSTRIPWHITESPACE2 2 /* strip everything but upper case, */
66  /* hyphens, digits, parens, and ;'s. */
67 #define PSTRIPWHITESPACE3 3 /* strip everything but digits, */
68  /* hyphens, parens, and ;'s. */
69 #define PLEAVEWHITESPACE 4
char PStatus[80 *3+1]
Definition: parser.c:44
#define PSTRINGSIZE
Definition: cdparser.h:17
void PCIF()
int PChar
Definition: parser.c:46
long PInt
Definition: parser.c:45
FILE * PCIFFileDesc
Definition: parser.c:43
int PReturned
Definition: parser.c:48
char PString[PSTRINGSIZE]
Definition: parser.c:47