Restoring to unlinted version
[unix-history] / usr / src / usr.bin / pascal / src / pstab.h
index 3d781d1..c33eb3b 100644 (file)
@@ -1,14 +1,10 @@
-    /* static  char sccsid[] = "@(#)pstab.h 1.1 %G%"; */
+    /* static  char sccsid[] = "@(#)pstab.h 1.4 %G%"; */
 
     /*
 
     /*
-     * the new .stab type for pascal separate compilation type checking
-     */
-#define        N_PC    0x30    /* global pascal symbol: name,,0,subtype,line */
-
-    /*
-     * subtypes within the above type
-     * subtypes N_PSO and N_PSOL are   .stabs  name,,0,subtype,0
-     * others subtypes are             .stabs  name,,0,subtype,line
+     * subtypes within the stab type N_PC
+     *
+     * subtypes N_PSO and N_PSOL are   .stabs  name,N_PC,0,subtype,checksum
+     * others subtypes are             .stabs  name,N_PC,0,subtype,line
      */
 #define        N_PSO           0x1     /* source file name */
 #define        N_PSOL          0x2     /* include file name */
      */
 #define        N_PSO           0x1     /* source file name */
 #define        N_PSOL          0x2     /* include file name */
 #define        N_PGPROC        0x8     /* global procedure */
 #define        N_PEFUNC        0x9     /* external function */
 #define        N_PEPROC        0xa     /* external procedure */
 #define        N_PGPROC        0x8     /* global procedure */
 #define        N_PEFUNC        0x9     /* external function */
 #define        N_PEPROC        0xa     /* external procedure */
+#define        N_PLDATA        0xb     /* library variable */
+#define        N_PLTEXT        0xc     /* library routine */
+
+    /*
+     * checksums are used to check if included files have changed.
+     * we also use them to check that .o files are up to date with
+     * the libraries.
+     * if a checksum is less than the flag checksum,
+     * then the checksum (and therefore the .o file) is out of date.
+     * if a checksum is equal to the flag checksum,
+     * then no furthur checking of the checksum is done.
+     * this is for the 2nd and subsequent times a file is stabed.
+     * to declare a flag day, increment this value. (also be sure 
+     *  to update this value in ../utilities/externs.awk)
+     */
+#define        N_FLAGCHECKSUM  1