From c86c4907d2dbf93fbc767dae01e75ce1e967b42d Mon Sep 17 00:00:00 2001 From: "Robert R. Henry" Date: Fri, 1 Jul 1983 16:47:05 -0800 Subject: [PATCH] remove manifest constants for NCPString and ASINBUFSIZ, reflecting the fact that arbitrary length strings are stored in a file SCCS-vsn: old/as.vax/as.h 4.18 SCCS-vsn: old/as.vax/asscan2.c 4.13 --- usr/src/old/as.vax/as.h | 18 ++++-------------- usr/src/old/as.vax/asscan2.c | 4 ++-- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/usr/src/old/as.vax/as.h b/usr/src/old/as.vax/as.h index 1d3a2fa60b..d99fe250fe 100644 --- a/usr/src/old/as.vax/as.h +++ b/usr/src/old/as.vax/as.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1982 Regents of the University of California - * @(#)as.h 4.17 %G% + * @(#)as.h 4.18 %G% */ #define reg register @@ -20,24 +20,14 @@ * 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 - * 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 NCPString -# define NCPString 4080 -#endif not NCPString #define NCPName NCPS #ifndef NCPS @@ -47,7 +37,7 @@ /* * Check sizes, and compiler error if sizes botch */ -#if ((STRPOOLDALLOP < NCPString) || (STRPOOLDALLOP < NCPName)) +#if STRPOOLDALLOP < NCPName $$$botch with definition sizes #endif test botches /* diff --git a/usr/src/old/as.vax/asscan2.c b/usr/src/old/as.vax/asscan2.c index 3f33a82e92..cc254d64ca 100644 --- a/usr/src/old/as.vax/asscan2.c +++ b/usr/src/old/as.vax/asscan2.c @@ -2,13 +2,13 @@ * Copyright (c) 1982 Regents of the University of California */ #ifndef lint -static char sccsid[] = "@(#)asscan2.c 4.12 %G%"; +static char sccsid[] = "@(#)asscan2.c 4.13 %G%"; #endif not lint #include "asscanl.h" static inttoktype oval = NL; - +#define ASINBUFSIZ 4096 char inbufunget[8]; char inbuffer[ASINBUFSIZ]; char *Ginbufptr = inbuffer; -- 2.20.1