xref: /original-bsd/usr.bin/pascal/src/pstab.h (revision c3e32dec)
1 /*-
2  * Copyright (c) 1980, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)pstab.h	8.1 (Berkeley) 06/06/93
8  */
9 
10     /*
11      *	subtypes within the stab type N_PC
12      *
13      *	subtypes N_PSO and N_PSOL are	.stabs	name,N_PC,0,subtype,checksum
14      *	others subtypes are		.stabs	name,N_PC,0,subtype,line
15      */
16 #define	N_PSO		0x1	/* source file name */
17 #define	N_PSOL		0x2	/* include file name */
18 #define	N_PGLABEL	0x3	/* global label */
19 #define	N_PGCONST	0x4	/* global constant */
20 #define	N_PGTYPE	0x5	/* global type */
21 #define	N_PGVAR		0x6	/* global variable */
22 #define	N_PGFUNC	0x7	/* global function */
23 #define	N_PGPROC	0x8	/* global procedure */
24 #define	N_PEFUNC	0x9	/* external function */
25 #define	N_PEPROC	0xa	/* external procedure */
26 #define	N_PLDATA	0xb	/* library variable */
27 #define	N_PLTEXT	0xc	/* library routine */
28 
29     /*
30      *	checksums are used to check if included files have changed.
31      *	we also use them to check that .o files are up to date with
32      *	the libraries.
33      *	if a checksum is less than the flag checksum,
34      *	then the checksum (and therefore the .o file) is out of date.
35      *	if a checksum is equal to the flag checksum,
36      *	then no furthur checking of the checksum is done.
37      *	this is for the 2nd and subsequent times a file is stabed.
38      *	to declare a flag day, increment this value. (also be sure
39      *  to update this value in ../utilities/externs.awk)
40      */
41 #define	N_FLAGCHECKSUM	1
42