Add copyright
[unix-history] / usr / src / old / as.vax / as.h
index 1d3a2fa..bcf9165 100644 (file)
@@ -1,7 +1,11 @@
 /*
 /*
- *     Copyright (c) 1982 Regents of the University of California
- *     @(#)as.h 4.17 %G%
+ * Copyright (c) 1982 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ *     @(#)as.h        5.1 (Berkeley) %G%
  */
  */
+
 #define        reg     register
 
 #include <sys/types.h>
 #define        reg     register
 
 #include <sys/types.h>
  *     Sizes for character buffers.
  *     what                    size #define name       comments
  *
  *     Sizes for character buffers.
  *     what                    size #define name       comments
  *
- *     source file reads       ASINBUFSIZ              integral of BUFSIZ
- *     string assembly         NCPString               large for .stabs
  *     name assembly           NCPName 
  *     name assembly           NCPName 
- *     string save             STRPOOLDALLOP   
+ *     name save               STRPOOLDALLOP   
  *
  *
- *
- *     -source file reads should be integral of BUFSIZ for efficient reads
- *     -string saving is a simple first fit
+ *     -name saving is a simple first fit
  */
  */
-#ifndef ASINBUFSIZ
-#      define  ASINBUFSIZ      4096
-#endif not ASINBUFSIZ
 #ifndef STRPOOLDALLOP
 #      define STRPOOLDALLOP    8192
 #endif not STRPOOLDALLOP
 #ifndef STRPOOLDALLOP
 #      define STRPOOLDALLOP    8192
 #endif not STRPOOLDALLOP
-#ifndef NCPString
-#      define  NCPString       4080
-#endif not NCPString
 
 #define        NCPName NCPS
 #ifndef NCPS
 
 #define        NCPName NCPS
 #ifndef NCPS
@@ -47,7 +41,7 @@
 /*
  *     Check sizes, and compiler error if sizes botch
  */
 /*
  *     Check sizes, and compiler error if sizes botch
  */
-#if ((STRPOOLDALLOP < NCPString) || (STRPOOLDALLOP < NCPName))
+#if STRPOOLDALLOP < NCPName
        $$$botch with definition sizes
 #endif test botches
 /*
        $$$botch with definition sizes
 #endif test botches
 /*
@@ -191,7 +185,7 @@ struct symtab{
                u_char  s_jxoveralign;  /* if a JXXX, jumped over align */
                short   s_index;        /* which segment */
                struct  symtab *s_dest; /* if JXXX, where going to */
                u_char  s_jxoveralign;  /* if a JXXX, jumped over align */
                short   s_index;        /* which segment */
                struct  symtab *s_dest; /* if JXXX, where going to */
-#ifdef DJXXX
+#ifdef DEBUG
                short   s_jxline;       /* source line of the jump from */
 #endif
 };
                short   s_jxline;       /* source line of the jump from */
 #endif
 };
@@ -211,6 +205,7 @@ struct symtab{
 #define        FETCHNAME(sp)   (((struct strdesc *)(sp)->s_name)->sd_string)
 #define        STRLEN(sp)      (((struct strdesc *)(sp)->s_name)->sd_strlen)
 #define        STROFF(sp)      (((struct strdesc *)(sp)->s_name)->sd_stroff)
 #define        FETCHNAME(sp)   (((struct strdesc *)(sp)->s_name)->sd_string)
 #define        STRLEN(sp)      (((struct strdesc *)(sp)->s_name)->sd_strlen)
 #define        STROFF(sp)      (((struct strdesc *)(sp)->s_name)->sd_stroff)
+#define        STRPLACE(sp)    (((struct strdesc *)(sp)->s_name)->sd_place)
 #define        s_nmx   s_nm.n_un.n_strx        /* string table index */
 #define        s_type  s_nm.n_type             /* type of the symbol */
 #define        s_other s_nm.n_other            /* other information for sdb */
 #define        s_nmx   s_nm.n_un.n_strx        /* string table index */
 #define        s_type  s_nm.n_type             /* type of the symbol */
 #define        s_other s_nm.n_other            /* other information for sdb */
@@ -443,6 +438,7 @@ struct strdesc *savestr();
 
        extern  int     curlen;                 /*current literal storage size*/
        extern  int     d124;                   /*current pointer storage size*/
 
        extern  int     curlen;                 /*current literal storage size*/
        extern  int     d124;                   /*current pointer storage size*/
+       extern  int     maxalign;               /*maximum .align allowed*/
        
        struct  symtab  **lookup();             /*argument in yytext*/
        struct  symtab  *symalloc();
        
        struct  symtab  **lookup();             /*argument in yytext*/
        struct  symtab  *symalloc();
@@ -473,7 +469,7 @@ struct      biobuf {
        short   b_nleft;                /* Number free spaces left in b_buf */
 /* Initialize to be less than BUFSIZ initially, to boundary align in file */
        char    *b_ptr;                 /* Next place to stuff characters */
        short   b_nleft;                /* Number free spaces left in b_buf */
 /* Initialize to be less than BUFSIZ initially, to boundary align in file */
        char    *b_ptr;                 /* Next place to stuff characters */
-       char    b_buf[BUFSIZ];          /* The buffer itself */
+       char    *b_buf;                 /* Pointer to the buffer */
        off_t   b_off;                  /* Current file offset */
        struct  biobuf *b_link;         /* Link in chain for bflush() */
 };
        off_t   b_off;                  /* Current file offset */
        struct  biobuf *b_link;         /* Link in chain for bflush() */
 };
@@ -483,6 +479,7 @@ struct      biobuf {
 
        extern  BFILE   *biobufs;       /* head of the block I/O buffer chain */
        extern  int     biofd;          /* file descriptor for block I/O file */
 
        extern  BFILE   *biobufs;       /* head of the block I/O buffer chain */
        extern  int     biofd;          /* file descriptor for block I/O file */
+       extern  int     biobufsize;     /* optimal block size for I/O */
        extern  off_t   boffset;        /* physical position in logical file */
 
        /*
        extern  off_t   boffset;        /* physical position in logical file */
 
        /*