diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1993-06-12 13:44:08 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1993-06-12 13:44:08 +0000 |
commit | 98cfc6eb3f2626017b36fa63178238764118bd38 (patch) | |
tree | a49aa69154ed6db80865b96cbc9e696cb3013d3b /flexdef.h | |
parent | 79b7a59a56376d4a90f13a759971380665e6a419 (diff) |
Changed to use yy_flex_alloc() and friends
Diffstat (limited to 'flexdef.h')
-rw-r--r-- | flexdef.h | 23 |
1 files changed, 7 insertions, 16 deletions
@@ -82,23 +82,9 @@ char *sprintf(); /* keep lint happy */ #define SHORT_FILE_NAMES #endif -#ifdef __STDC__ - -#ifdef __GNUC__ -#include <stddef.h> -void *malloc( size_t ); -void free( void* ); -#else -#include <stdlib.h> -#endif - -#else /* ! __STDC__ */ -char *malloc(), *realloc(); -#endif - /* Maximum line length we'll have to deal with. */ -#define MAXLINE BUFSIZ +#define MAXLINE 2048 /* Maximum size of file name. */ #define FILENAMESIZE 1024 @@ -635,7 +621,12 @@ extern int sectnum, nummt, hshcol, dfaeql, numeps, eps2, num_reallocs; extern int tmpuses, totnst, peakpairs, numuniq, numdup, hshsave; extern int num_backtracking, bol_needed; -void *allocate_array(), *reallocate_array(); +void *allocate_array PROTO((int, int)); +void *reallocate_array PROTO((void*, int, int)); + +void *yy_flex_alloc PROTO((int)); +void *yy_flex_realloc PROTO((void*, int)); +void yy_flex_free PROTO((void*)); #define allocate_integer_array(size) \ (int *) allocate_array( size, sizeof( int ) ) |