From 6bbc2d6f55e4efb4782d062c39bd6de89c60e900 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Thu, 2 Aug 1990 00:30:43 +0000 Subject: fixed to declare malloc() and free() by hand if __GNUC__ --- flexdef.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'flexdef.h') diff --git a/flexdef.h b/flexdef.h index f30b538..35fb16f 100644 --- a/flexdef.h +++ b/flexdef.h @@ -91,13 +91,15 @@ char *memset(); #endif #ifdef __STDC__ -#ifndef DONT_HAVE_STDLIB_H -#include -#else + +#ifdef __GNUC__ void *malloc( unsigned ); void free( void* ); -#endif #else +#include +#endif + +#else /* ! __STDC__ */ char *malloc(), *realloc(); #endif @@ -524,7 +526,13 @@ extern int num_xlations; * scxclu - true if start condition is exclusive * sceof - true if start condition has EOF rule * scname - start condition name - * actvsc - stack of active start conditions for the current rule + * actvsc - stack of active start conditions for the current rule; + * a negative entry means that the start condition is *not* + * active for the current rule. Start conditions may appear + * multiple times on the stack; the entry for it closest + * to the top of the stack (i.e., actvsc[actvp]) is the + * one to use. Others are present from "{" scoping + * constructs. */ extern int lastsc, current_max_scs, *scset, *scbol, *scxclu, *sceof, *actvsc; @@ -830,6 +838,7 @@ extern void cclinstal PROTO ((Char [], int)); extern int ccllookup PROTO((Char [])); extern void ndinstal PROTO((char[], Char[])); /* install a name definition */ +extern void scextend PROTO(()); /* increase maximum number of SC's */ extern void scinstal PROTO((char[], int)); /* make a start condition */ /* lookup the number associated with a start condition */ -- cgit v1.2.3