diff options
author | Michael McConville <mmcconville@mykolab.com> | 2015-12-08 21:12:21 -0500 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2015-12-09 09:51:17 -0500 |
commit | 1cc5d870326d0c574a21bbe85457bfc50d6cc43e (patch) | |
tree | 8bbb5c8f2195d326bf914fc4755f3f62e27db81d /to.do | |
parent | c53d722b0b4e81b08cfc2f9ff6675a7abe0de2c3 (diff) |
Removed flex_realloc().
As with flex_alloc(), replace calls to flex_realloc(), which was just a
wrapper around realloc().
Diffstat (limited to 'to.do')
-rw-r--r-- | to.do/unicode/flexdef.h | 1 | ||||
-rw-r--r-- | to.do/unicode/misc.c | 2 | ||||
-rw-r--r-- | to.do/unicode/scan.l | 7 |
3 files changed, 1 insertions, 9 deletions
diff --git a/to.do/unicode/flexdef.h b/to.do/unicode/flexdef.h index 72d8156..9c0bbd4 100644 --- a/to.do/unicode/flexdef.h +++ b/to.do/unicode/flexdef.h @@ -663,7 +663,6 @@ extern int num_backing_up, bol_needed; void *allocate_array PROTO((int, size_t)); void *reallocate_array PROTO((void*, int, size_t)); -void *flex_realloc PROTO((void*, size_t)); void flex_free PROTO((void*)); #define allocate_integer_array(size) \ diff --git a/to.do/unicode/misc.c b/to.do/unicode/misc.c index c0f3828..340707e 100644 --- a/to.do/unicode/misc.c +++ b/to.do/unicode/misc.c @@ -718,7 +718,7 @@ size_t element_size; register void *new_array; size_t num_bytes = element_size * size; - new_array = flex_realloc( array, num_bytes ); + new_array = realloc(array, num_bytes); if ( ! new_array ) flexfatal( _( "attempt to increase array size failed" ) ); diff --git a/to.do/unicode/scan.l b/to.do/unicode/scan.l index 1214490..6b8daac 100644 --- a/to.do/unicode/scan.l +++ b/to.do/unicode/scan.l @@ -689,13 +689,6 @@ char *file; /* Wrapper routines for accessing the scanner's malloc routines. */ -void *flex_realloc( ptr, size ) -void *ptr; -size_t size; - { - return realloc(ptr, size); - } - void flex_free( ptr ) void *ptr; { |