diff options
author | vern <vern> | 1993-06-12 13:44:08 +0000 |
---|---|---|
committer | vern <vern> | 1993-06-12 13:44:08 +0000 |
commit | c5ba4144b165ad1dc4f4489103c0609eb681b334 (patch) | |
tree | ca8be986e41cbe56e9783fabe98764258874041e /flexdef.h | |
parent | 80e492d918bfeb6923bdae2c7f1ce237cdebbd0d (diff) | |
download | flex-c5ba4144b165ad1dc4f4489103c0609eb681b334.tar.gz |
Changed to use yy_flex_alloc() and friends
Diffstat (limited to 'flexdef.h')
-rw-r--r-- | flexdef.h | 25 |
1 files changed, 8 insertions, 17 deletions
@@ -26,7 +26,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -/* @(#) $Header: /cvsroot/flex/flex/flexdef.h,v 2.12 1993/04/14 22:41:50 vern Exp $ (LBL) */ +/* @(#) $Header: /cvsroot/flex/flex/flexdef.h,v 2.13 1993/06/12 13:44:08 vern Exp $ (LBL) */ #ifndef FILE #include <stdio.h> @@ -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 ) ) |