xref: /original-bsd/usr.bin/pascal/src/0.h (revision f0fd5f8a)
1 /* Copyright (c) 1979 Regents of the University of California */
2 
3 /* static char sccsid[] = "@(#)0.h 1.17 11/11/82"; */
4 
5 #define DEBUG
6 #define CONSETS
7 #define	CHAR
8 #define	STATIC
9 #define hp21mx 0
10 
11 #include	<stdio.h>
12 #include	<sys/types.h>
13 
14 typedef enum {FALSE, TRUE} bool;
15 
16 /*
17  * Option flags
18  *
19  * The following options are recognized in the text of the program
20  * and also on the command line:
21  *
22  *	b	block buffer the file output
23  *
24  *	i	make a listing of the procedures and functions in
25  *		the following include files
26  *
27  *	l	make a listing of the program
28  *
29  *	n	place each include file on a new page with a header
30  *
31  *	p	disable post mortem and statement limit counting
32  *
33  *	t	disable run-time tests
34  *
35  *	u	card image mode; only first 72 chars of input count
36  *
37  *	w	suppress special diagnostic warnings
38  *
39  *	z	generate counters for an execution profile
40  */
41 #ifdef DEBUG
42 bool	fulltrace, errtrace, testtrace, yyunique;
43 #endif DEBUG
44 
45 /*
46  * Each option has a stack of 17 option values, with opts giving
47  * the current, top value, and optstk the value beneath it.
48  * One refers to option `l' as, e.g., opt('l') in the text for clarity.
49  */
50 char	opts[ 'z' - 'A' + 1];
51 short	optstk[ 'z' - 'A' + 1];
52 
53 #define opt(c) opts[c-'A']
54 
55 /*
56  * Monflg is set when we are generating
57  * a pxp profile.  this is set by the -z command line option.
58  */
59 bool	monflg;
60 
61     /*
62      *	profflag is set when we are generating a prof profile.
63      *	this is set by the -p command line option.
64      */
65 bool	profflag;
66 
67 
68 /*
69  * NOTES ON THE DYNAMIC NATURE OF THE DATA STRUCTURES
70  *
71  * Pi uses expandable tables for
72  * its namelist (symbol table), string table
73  * hash table, and parse tree space.  The following
74  * definitions specify the size of the increments
75  * for these items in fundamental units so that
76  * each uses approximately 1024 bytes.
77  */
78 
79 #define	STRINC	1024		/* string space increment */
80 #define	TRINC	512		/* tree space increment */
81 #define	HASHINC	509		/* hash table size in words, each increment */
82 #define	NLINC	56		/* namelist increment size in nl structs */
83 
84 /*
85  * The initial sizes of the structures.
86  * These should be large enough to compile
87  * an "average" sized program so as to minimize
88  * storage requests.
89  * On a small system or and 11/34 or 11/40
90  * these numbers can be trimmed to make the
91  * compiler smaller.
92  */
93 #define	ITREE	2000
94 #define	INL	200
95 #define	IHASH	509
96 
97 /*
98  * The following limits on hash and tree tables currently
99  * allow approximately 1200 symbols and 20k words of tree
100  * space.  The fundamental limit of 64k total data space
101  * should be exceeded well before these are full.
102  */
103 /*
104  * TABLE_MULTIPLIER is for uniformly increasing the sizes of the tables
105  */
106 #ifdef VAX
107 #define TABLE_MULTIPLIER	8
108 #else
109 #define TABLE_MULTIPLIER	1
110 #endif VAX
111 #define	MAXHASH	(4 * TABLE_MULTIPLIER)
112 #define	MAXNL	(12 * TABLE_MULTIPLIER)
113 #define	MAXTREE	(30 * TABLE_MULTIPLIER)
114 /*
115  * MAXDEPTH is the depth of the parse stack.
116  * STACK_MULTIPLIER is for increasing its size.
117  */
118 #ifdef VAX
119 #define	STACK_MULTIPLIER	8
120 #else
121 #define	STACK_MULTIPLIER	1
122 #endif VAX
123 #define	MAXDEPTH ( 150 * STACK_MULTIPLIER )
124 
125 /*
126  * ERROR RELATED DEFINITIONS
127  */
128 
129 /*
130  * Exit statuses to pexit
131  *
132  * AOK
133  * ERRS		Compilation errors inhibit obj productin
134  * NOSTART	Errors before we ever got started
135  * DIED		We ran out of memory or some such
136  */
137 #define	AOK	0
138 #define	ERRS	1
139 #define	NOSTART	2
140 #define	DIED	3
141 
142 bool	Recovery;
143 
144 #define	eholdnl()	Eholdnl = 1
145 #define	nocascade()	Enocascade = 1
146 
147 bool	Eholdnl, Enocascade;
148 
149 
150 /*
151  * The flag eflg is set whenever we have a hard error.
152  * The character in errpfx will precede the next error message.
153  * When cgenflg is set code generation is suppressed.
154  * This happens whenver we have an error (i.e. if eflg is set)
155  * and when we are walking the tree to determine types only.
156  */
157 bool	eflg;
158 char	errpfx;
159 
160 #define	setpfx(x)	errpfx = x
161 
162 #define	standard()	setpfx('s')
163 #define	warning()	setpfx('w')
164 #define	recovered()	setpfx('e')
165 #define	continuation()	setpfx(' ')
166 
167 int	cgenflg;
168 
169 
170 /*
171  * The flag syneflg is used to suppress the diagnostics of the form
172  *	E 10 a, defined in someprocedure, is neither used nor set
173  * when there were syntax errors in "someprocedure".
174  * In this case, it is likely that these warinings would be spurious.
175  */
176 bool	syneflg;
177 
178 /*
179  * The compiler keeps its error messages in a file.
180  * The variable efil is the unit number on which
181  * this file is open for reading of error message text.
182  * Similarly, the file ofil is the unit of the file
183  * "obj" where we write the interpreter code.
184  */
185 short	efil;
186 short	ofil;
187 short	obuf[518];
188 
189 bool	Enoline;
190 #define	elineoff()	Enoline = TRUE
191 #define	elineon()	Enoline = FALSE
192 
193 
194 /*
195  * SYMBOL TABLE STRUCTURE DEFINITIONS
196  *
197  * The symbol table is henceforth referred to as the "namelist".
198  * It consists of a number of structures of the form "nl" below.
199  * These are contained in a number of segments of the symbol
200  * table which are dynamically allocated as needed.
201  * The major namelist manipulation routines are contained in the
202  * file "nl.c".
203  *
204  * The major components of a namelist entry are the "symbol", giving
205  * a pointer into the string table for the string associated with this
206  * entry and the "class" which tells which of the (currently 19)
207  * possible types of structure this is.
208  *
209  * Many of the classes use the "type" field for a pointer to the type
210  * which the entry has.
211  *
212  * Other pieces of information in more than one class include the block
213  * in which the symbol is defined, flags indicating whether the symbol
214  * has been used and whether it has been assigned to, etc.
215  *
216  * A more complete discussion of the features of the namelist is impossible
217  * here as it would be too voluminous.  Refer to the "PI 1.0 Implementation
218  * Notes" for more details.
219  */
220 
221 /*
222  * The basic namelist structure.
223  * There is a union of data types defining the stored information
224  * as pointers, integers, longs, or a double.
225  *
226  * The array disptab defines the hash header for the symbol table.
227  * Symbols are hashed based on the low 6 bits of their pointer into
228  * the string table; see the routines in the file "lookup.c" and also "fdec.c"
229  * especially "funcend".
230  */
231 extern int	pnumcnt;
232 
233 #ifdef PTREE
234 #   include	"pTree.h"
235 #endif PTREE
236 struct	nl {
237 	char	*symbol;
238 	char	info[4];
239 	struct	nl *type;
240 	struct	nl *chain, *nl_next;
241 	union {
242 		int	*un_ptr[5];
243 		int	un_value[5];
244 		long	un_range[2];
245 		double	un_real;
246 	} nl_un;
247 #	ifdef PTREE
248 	    pPointer	inTree;
249 #	endif PTREE
250 };
251 
252 #define class		info[0]
253 #define nl_flags	info[1]
254 #define nl_block	info[1]
255 #define extra_flags	info[2]
256 #define align_info	info[3]
257 
258 #define range	nl_un.un_range
259 #define value	nl_un.un_value
260 #define ptr	nl_un.un_ptr
261 #define real	nl_un.un_real
262 
263 extern struct nl *nlp, *disptab[077+1], *Fp;
264 extern struct nl nl[INL];
265 
266 
267 /*
268  * NL FLAGS BITS
269  *
270  * Definitions of the usage of the bits in
271  * the nl_flags byte. Note that the low 5 bits of the
272  * byte are the "nl_block" and that some classes make use
273  * of this byte as a "width".
274  *
275  * The only non-obvious bit definition here is "NFILES"
276  * which records whether a structure contains any files.
277  * Such structures are not allowed to be dynamically allocated.
278  */
279 
280 #define	BLOCKNO( flag )	( flag & 037 )
281 #define NLFLAGS( flag ) ( flag &~ 037 )
282 
283 #define	NUSED	0100
284 #define	NMOD	0040
285 #define	NFORWD	0200
286 #define	NFILES	0200
287 #ifdef PC
288 #define NEXTERN 0001	/* flag used to mark external funcs and procs */
289 #define	NLOCAL	0002	/* variable is a local */
290 #define	NPARAM	0004	/* variable is a parameter */
291 #define	NGLOBAL	0010	/* variable is a global */
292 #define	NREGVAR	0020	/* or'ed in if variable is in a register */
293 #define NNLOCAL 0040	/* named local variable, not used in symbol table */
294 #endif PC
295 
296 /*
297  * used to mark value[ NL_FORV ] for loop variables
298  */
299 #define	FORVAR		1
300 
301 /*
302  * Definition of the commonly used "value" fields.
303  * The most important one is NL_OFFS which gives
304  * the offset of a variable in its stack mark.
305  */
306 #define NL_OFFS	0
307 
308 #define	NL_CNTR	1
309 #define NL_NLSTRT 2
310 #define	NL_LINENO 3
311 #define	NL_FVAR	3
312 #define	NL_ENTLOC 4	/* FUNC, PROC - entry point */
313 #define	NL_FCHAIN 4	/* FFUNC, FPROC - ptr to formals */
314 
315 #define NL_GOLEV 2
316 #define NL_GOLINE 3
317 #define NL_FORV 1
318 
319     /*
320      *	nlp -> nl_un.un_ptr[] subscripts for records
321      *	NL_FIELDLIST	the chain of fixed fields of a record, in order.
322      *			the fields are also chained through ptr[NL_FIELDLIST].
323      *			this does not include the tag, or fields of variants.
324      *	NL_VARNT	pointer to the variants of a record,
325      *			these are then chained through the .chain field.
326      *	NL_VTOREC	pointer from a VARNT to the RECORD that is the variant.
327      *	NL_TAG		pointer from a RECORD to the tagfield
328      *			if there are any variants.
329      *	align_info	the alignment of a RECORD is in info[3].
330      */
331 #define	NL_FIELDLIST	1
332 #define	NL_VARNT	2
333 #define	NL_VTOREC	2
334 #define	NL_TAG		3
335 /* and align_info is info[3].  #defined above */
336 
337 #define	NL_ELABEL 4	/* SCAL - ptr to definition of enums */
338 
339 /*
340  * For BADUSE nl structures, NL_KINDS is a bit vector
341  * indicating the kinds of illegal usages complained about
342  * so far.  For kind of bad use "kind", "1 << kind" is set.
343  * The low bit is reserved as ISUNDEF to indicate whether
344  * this identifier is totally undefined.
345  */
346 #define	NL_KINDS	0
347 
348 #define	ISUNDEF		1
349 
350     /*
351      *	variables come in three flavors: globals, parameters, locals;
352      *	they can also hide in registers, but that's a different flag
353      */
354 #define PARAMVAR	1
355 #define LOCALVAR	2
356 #define	GLOBALVAR	3
357 #define	NAMEDLOCALVAR	4
358 
359 /*
360  * NAMELIST CLASSES
361  *
362  * The following are the namelist classes.
363  * Different classes make use of the value fields
364  * of the namelist in different ways.
365  *
366  * The namelist should be redesigned by providing
367  * a number of structure definitions with one corresponding
368  * to each namelist class, ala a variant record in Pascal.
369  */
370 #define	BADUSE	0
371 #define	CONST	1
372 #define	TYPE	2
373 #define	VAR	3
374 #define	ARRAY	4
375 #define	PTRFILE	5
376 #define	RECORD	6
377 #define	FIELD	7
378 #define	PROC	8
379 #define	FUNC	9
380 #define	FVAR	10
381 #define	REF	11
382 #define	PTR	12
383 #define	FILET	13
384 #define	SET	14
385 #define	RANGE	15
386 #define	LABEL	16
387 #define	WITHPTR 17
388 #define	SCAL	18
389 #define	STR	19
390 #define	PROG	20
391 #define	IMPROPER 21
392 #define	VARNT	22
393 #define	FPROC	23
394 #define	FFUNC	24
395 
396 /*
397  * Clnames points to an array of names for the
398  * namelist classes.
399  */
400 char	**clnames;
401 
402 /*
403  * PRE-DEFINED NAMELIST OFFSETS
404  *
405  * The following are the namelist offsets for the
406  * primitive types. The ones which are negative
407  * don't actually exist, but are generated and tested
408  * internally. These definitions are sensitive to the
409  * initializations in nl.c.
410  */
411 #define	TFIRST -7
412 #define	TFILE  -7
413 #define	TREC   -6
414 #define	TARY   -5
415 #define	TSCAL  -4
416 #define	TPTR   -3
417 #define	TSET   -2
418 #define	TSTR   -1
419 #define	NIL	0
420 #define	TBOOL	1
421 #define	TCHAR	2
422 #define	TINT	3
423 #define	TDOUBLE	4
424 #define	TNIL	5
425 #define	T1INT	6
426 #define	T2INT	7
427 #define	T4INT	8
428 #define	T1CHAR	9
429 #define	T1BOOL	10
430 #define	T8REAL	11
431 #define TLAST	11
432 
433 /*
434  * SEMANTIC DEFINITIONS
435  */
436 
437 /*
438  * NOCON and SAWCON are flags in the tree telling whether
439  * a constant set is part of an expression.
440  *	these are no longer used,
441  *	since we now do constant sets at compile time.
442  */
443 #define NOCON	0
444 #define SAWCON	1
445 
446 /*
447  * The variable cbn gives the current block number,
448  * the variable bn is set as a side effect of a call to
449  * lookup, and is the block number of the variable which
450  * was found.
451  */
452 short	bn, cbn;
453 
454 /*
455  * The variable line is the current semantic
456  * line and is set in stat.c from the numbers
457  * embedded in statement type tree nodes.
458  */
459 short	line;
460 
461 /*
462  * The size of the display
463  * which defines the maximum nesting
464  * of procedures and functions allowed.
465  * Because of the flags in the current namelist
466  * this must be no greater than 32.
467  */
468 #define	DSPLYSZ 20
469 
470     /*
471      *	the display is made up of saved AP's and FP's.
472      *	FP's are used to find locals, and AP's are used to find parameters.
473      *	FP and AP are untyped pointers, but are used throughout as (char *).
474      *	the display is used by adding AP_OFFSET or FP_OFFSET to the
475      *	address of the approriate display entry.
476      */
477 struct dispsave {
478     char	*savedAP;
479     char	*savedFP;
480 } display[ DSPLYSZ ];
481 
482 #define	AP_OFFSET	( 0 )
483 #define FP_OFFSET	( sizeof(char *) )
484 
485     /*
486      *	formal routine structure:
487      */
488 struct formalrtn {
489 	long		(*fentryaddr)();	/* formal entry point */
490 	long		fbn;			/* block number of function */
491 	struct dispsave	fdisp[ DSPLYSZ ];	/* saved at first passing */
492 } frtn;
493 
494 #define	FENTRYOFFSET	0
495 #define FBNOFFSET	( FENTRYOFFSET + sizeof frtn.fentryaddr )
496 #define	FDISPOFFSET	( FBNOFFSET + sizeof frtn.fbn )
497 
498 /*
499  * The following structure is used
500  * to keep track of the amount of variable
501  * storage required by each block.
502  * "Max" is the high water mark, "off"
503  * the current need. Temporaries for "for"
504  * loops and "with" statements are allocated
505  * in the local variable area and these
506  * numbers are thereby changed if necessary.
507  */
508 struct om {
509 	long	om_max;
510 	long	reg_max;
511 	struct tmps {
512 		long	om_off;
513 		long	reg_off;
514 	} curtmps;
515 } sizes[DSPLYSZ];
516 #define NOREG 0
517 #define REGOK 1
518 
519     /*
520      *	the following structure records whether a level declares
521      *	any variables which are (or contain) files.
522      *	this so that the runtime routines for file cleanup can be invoked.
523      */
524 bool	dfiles[ DSPLYSZ ];
525 
526 /*
527  * Structure recording information about a constant
528  * declaration.  It is actually the return value from
529  * the routine "gconst", but since C doesn't support
530  * record valued functions, this is more convenient.
531  */
532 struct {
533 	struct nl	*ctype;
534 	short		cival;
535 	double		crval;
536 	int		*cpval;
537 } con;
538 
539 /*
540  * The set structure records the lower bound
541  * and upper bound with the lower bound normalized
542  * to zero when working with a set. It is set by
543  * the routine setran in var.c.
544  */
545 struct {
546 	short	lwrb, uprbp;
547 } set;
548 
549     /*
550      *	structures of this kind are filled in by precset and used by postcset
551      *	to indicate things about constant sets.
552      */
553 struct csetstr {
554     struct nl	*csettype;
555     long	paircnt;
556     long	singcnt;
557     bool	comptime;
558 };
559 /*
560  * The following flags are passed on calls to lvalue
561  * to indicate how the reference is to affect the usage
562  * information for the variable being referenced.
563  * MOD is used to set the NMOD flag in the namelist
564  * entry for the variable, ASGN permits diagnostics
565  * to be formed when a for variable is assigned to in
566  * the range of the loop.
567  */
568 #define	NOFLAGS	0
569 #define	MOD	01
570 #define	ASGN	02
571 #define	NOUSE	04
572 
573     /*
574      *	the following flags are passed to lvalue and rvalue
575      *	to tell them whether an lvalue or rvalue is required.
576      *	the semantics checking is done according to the function called,
577      *	but for pc, lvalue may put out an rvalue by indirecting afterwards,
578      *	and rvalue may stop short of putting out the indirection.
579      */
580 #define	LREQ	01
581 #define	RREQ	02
582 
583 double	MAXINT;
584 double	MININT;
585 
586 /*
587  * Variables for generation of profile information.
588  * Monflg is set when we want to generate a profile.
589  * Gocnt record the total number of goto's and
590  * cnts records the current counter for generating
591  * COUNT operators.
592  */
593 short	gocnt;
594 short	cnts;
595 
596 /*
597  * Most routines call "incompat" rather than asking "!compat"
598  * for historical reasons.
599  */
600 #define incompat 	!compat
601 
602 /*
603  * Parts records which declaration parts have been seen.
604  * The grammar allows the "label" "const" "type" "var" and routine
605  * parts to be repeated and to be in any order, so that
606  * they can be detected semantically to give better
607  * error diagnostics.
608  *
609  * The flag NONLOCALVAR indicates that a non-local var has actually
610  * been used hence the display must be saved; NONLOCALGOTO indicates
611  * that a non-local goto has been done hence that a setjmp must be done.
612  */
613 int	parts[ DSPLYSZ ];
614 
615 #define	LPRT		0x0001
616 #define	CPRT		0x0002
617 #define	TPRT		0x0004
618 #define	VPRT		0x0008
619 #define	RPRT		0x0010
620 
621 #define	NONLOCALVAR	0x0020
622 #define	NONLOCALGOTO	0x0040
623 
624 /*
625  * Flags for the "you used / instead of div" diagnostic
626  */
627 bool	divchk;
628 bool	divflg;
629 
630 bool	errcnt[DSPLYSZ];
631 
632 /*
633  * Forechain links those types which are
634  *	^ sometype
635  * so that they can be evaluated later, permitting
636  * circular, recursive list structures to be defined.
637  */
638 struct	nl *forechain;
639 
640 /*
641  * Withlist links all the records which are currently
642  * opened scopes because of with statements.
643  */
644 struct	nl *withlist;
645 
646 struct	nl *intset;
647 struct	nl *input, *output;
648 struct	nl *program;
649 
650 /* progseen flag used by PC to determine if
651  * a routine segment is being compiled (and
652  * therefore no program statement seen)
653  */
654 bool	progseen;
655 
656 
657 /*
658  * STRUCTURED STATEMENT GOTO CHECKING
659  *
660  * The variable level keeps track of the current
661  * "structured statement level" when processing the statement
662  * body of blocks.  This is used in the detection of goto's into
663  * structured statements in a block.
664  *
665  * Each label's namelist entry contains two pieces of information
666  * related to this check. The first `NL_GOLEV' either contains
667  * the level at which the label was declared, `NOTYET' if the label
668  * has not yet been declared, or `DEAD' if the label is dead, i.e.
669  * if we have exited the level in which the label was defined.
670  *
671  * When we discover a "goto" statement, if the label has not
672  * been defined yet, then we record the current level and the current line
673  * for a later error check.  If the label has been already become "DEAD"
674  * then a reference to it is an error.  Now the compiler maintains,
675  * for each block, a linked list of the labels headed by "gotos[bn]".
676  * When we exit a structured level, we perform the routine
677  * ungoto in stat.c. It notices labels whose definition levels have been
678  * exited and makes them be dead. For labels which have not yet been
679  * defined, ungoto will maintain NL_GOLEV as the minimum structured level
680  * since the first usage of the label. It is not hard to see that the label
681  * must eventually be declared at this level or an outer level to this
682  * one or a goto into a structured statement will exist.
683  */
684 short	level;
685 struct	nl *gotos[DSPLYSZ];
686 
687 #define	NOTYET	10000
688 #define	DEAD	10000
689 
690 /*
691  * Noreach is true when the next statement will
692  * be unreachable unless something happens along
693  * (like exiting a looping construct) to save
694  * the day.
695  */
696 bool	noreach;
697 
698 /*
699  * UNDEFINED VARIABLE REFERENCE STRUCTURES
700  */
701 struct	udinfo {
702 	int	ud_line;
703 	struct	udinfo *ud_next;
704 	char	nullch;
705 };
706 
707 /*
708  * CODE GENERATION DEFINITIONS
709  */
710 
711 /*
712  * NSTAND is or'ed onto the abstract machine opcode
713  * for non-standard built-in procedures and functions.
714  */
715 #define	NSTAND	0400
716 
717 #define	codeon()	cgenflg++
718 #define	codeoff()	--cgenflg
719 #define	CGENNING	( cgenflg >= 0 )
720 
721 /*
722  * Codeline is the last lino output in the code generator.
723  * It used to be used to suppress LINO operators but no
724  * more since we now count statements.
725  * Lc is the intepreter code location counter.
726  *
727 short	codeline;
728  */
729 char	*lc;
730 
731 
732 /*
733  * Routines which need types
734  * other than "integer" to be
735  * assumed by the compiler.
736  */
737 double		atof();
738 long		lwidth();
739 long		leven();
740 long		aryconst();
741 long		a8tol();
742 long		roundup();
743 struct nl 	*tmpalloc();
744 struct nl 	*lookup();
745 double		atof();
746 int		*tree();
747 int		*hash();
748 char		*alloc();
749 int		*calloc();
750 char		*savestr();
751 char		*parnam();
752 bool		fcompat();
753 struct nl	*lookup1();
754 struct nl	*hdefnl();
755 struct nl	*defnl();
756 struct nl	*enter();
757 struct nl	*nlcopy();
758 struct nl	*tyrec();
759 struct nl	*tyary();
760 struct nl	*deffld();
761 struct nl	*defvnt();
762 struct nl	*tyrec1();
763 struct nl	*reclook();
764 struct nl	*asgnop1();
765 struct nl	*gtype();
766 struct nl	*call();
767 struct nl	*lvalue();
768 struct nl	*rvalue();
769 struct nl	*cset();
770 
771 /*
772  * type cast NIL to keep lint happy (which is not so bad)
773  */
774 #define		NLNIL	( (struct nl *) NIL )
775 
776 /*
777  * Funny structures to use
778  * pointers in wild and wooly ways
779  */
780 struct {
781 	char	pchar;
782 };
783 struct {
784 	short	pint;
785 	short	pint2;
786 };
787 struct {
788 	long	plong;
789 };
790 struct {
791 	double	pdouble;
792 };
793 
794 #define	OCT	1
795 #define	HEX	2
796 
797 /*
798  * MAIN PROGRAM VARIABLES, MISCELLANY
799  */
800 
801 /*
802  * Variables forming a data base referencing
803  * the command line arguments with the "i" option, e.g.
804  * in "pi -i scanner.i compiler.p".
805  */
806 char	**pflist;
807 short	pflstc;
808 short	pfcnt;
809 
810 char	*filename;		/* current source file name */
811 long	tvec;
812 extern char	*snark;		/* SNARK */
813 extern char	*classes[ ];	/* maps namelist classes to string names */
814 
815 #define	derror error
816 
817 #ifdef	PC
818 
819     /*
820      *	the current function number, for [ lines
821      */
822     int	ftnno;
823 
824     /*
825      *	the pc output stream
826      */
827     FILE *pcstream;
828 
829 #endif PC
830