xref: /csrg-svn/usr.bin/pascal/src/pstab.h (revision 22233)
1*22233Sdist /*
2*22233Sdist  * Copyright (c) 1980 Regents of the University of California.
3*22233Sdist  * All rights reserved.  The Berkeley software License Agreement
4*22233Sdist  * specifies the terms and conditions for redistribution.
5*22233Sdist  *
6*22233Sdist  *	@(#)pstab.h	5.1 (Berkeley) 06/05/85
7*22233Sdist  */
8845Speter 
9845Speter     /*
1014128Speter      *	subtypes within the stab type N_PC
1114128Speter      *
1214128Speter      *	subtypes N_PSO and N_PSOL are	.stabs	name,N_PC,0,subtype,checksum
1314128Speter      *	others subtypes are		.stabs	name,N_PC,0,subtype,line
14845Speter      */
15845Speter #define	N_PSO		0x1	/* source file name */
16845Speter #define	N_PSOL		0x2	/* include file name */
17845Speter #define	N_PGLABEL	0x3	/* global label */
18845Speter #define	N_PGCONST	0x4	/* global constant */
19845Speter #define	N_PGTYPE	0x5	/* global type */
20845Speter #define	N_PGVAR		0x6	/* global variable */
21845Speter #define	N_PGFUNC	0x7	/* global function */
22845Speter #define	N_PGPROC	0x8	/* global procedure */
23845Speter #define	N_PEFUNC	0x9	/* external function */
24845Speter #define	N_PEPROC	0xa	/* external procedure */
257602Speter #define	N_PLDATA	0xb	/* library variable */
267602Speter #define	N_PLTEXT	0xc	/* library routine */
2714128Speter 
2814128Speter     /*
2914128Speter      *	checksums are used to check if included files have changed.
3014128Speter      *	we also use them to check that .o files are up to date with
3114128Speter      *	the libraries.
3214128Speter      *	if a checksum is less than the flag checksum,
3314128Speter      *	then the checksum (and therefore the .o file) is out of date.
3414128Speter      *	if a checksum is equal to the flag checksum,
3514128Speter      *	then no furthur checking of the checksum is done.
3614128Speter      *	this is for the 2nd and subsequent times a file is stabed.
3714128Speter      *	to declare a flag day, increment this value. (also be sure
3814128Speter      *  to update this value in ../utilities/externs.awk)
3914128Speter      */
4014128Speter #define	N_FLAGCHECKSUM	1
41