diff options
author | Michael McConville <mmcconville@mykolab.com> | 2015-12-07 19:44:10 -0500 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2015-12-07 21:28:21 -0500 |
commit | c03bef5411d3231f42445932d1971d656f020817 (patch) | |
tree | 90040d0915d1bd68db3a70fc011d56135909eaaa /src/flexdef.h | |
parent | 53e3088d75eb966101e4f229a0fe8e0fdd73ab7e (diff) |
Remove allocation casts
Diffstat (limited to 'src/flexdef.h')
-rw-r--r-- | src/flexdef.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/src/flexdef.h b/src/flexdef.h index 5d3f925..b61c072 100644 --- a/src/flexdef.h +++ b/src/flexdef.h @@ -682,48 +682,46 @@ void *flex_realloc PROTO ((void *, size_t)); void flex_free PROTO ((void *)); #define allocate_integer_array(size) \ - (int *) allocate_array( size, sizeof( int ) ) + allocate_array(size, sizeof(int)) #define reallocate_integer_array(array,size) \ - (int *) reallocate_array( (void *) array, size, sizeof( int ) ) + reallocate_array((void *) array, size, sizeof(int)) #define allocate_bool_array(size) \ - (bool *) allocate_array( size, sizeof( bool ) ) + allocate_array(size, sizeof(bool)) #define reallocate_bool_array(array,size) \ - (bool *) reallocate_array( (void *) array, size, sizeof( bool ) ) + reallocate_array((void *) array, size, sizeof(bool)) #define allocate_int_ptr_array(size) \ - (int **) allocate_array( size, sizeof( int * ) ) + allocate_array(size, sizeof(int *)) #define allocate_char_ptr_array(size) \ - (char **) allocate_array( size, sizeof( char * ) ) + allocate_array(size, sizeof(char *)) #define allocate_dfaacc_union(size) \ - (union dfaacc_union *) \ - allocate_array( size, sizeof( union dfaacc_union ) ) + allocate_array(size, sizeof(union dfaacc_union)) #define reallocate_int_ptr_array(array,size) \ - (int **) reallocate_array( (void *) array, size, sizeof( int * ) ) + reallocate_array((void *) array, size, sizeof(int *)) #define reallocate_char_ptr_array(array,size) \ - (char **) reallocate_array( (void *) array, size, sizeof( char * ) ) + reallocate_array((void *) array, size, sizeof(char *)) #define reallocate_dfaacc_union(array, size) \ - (union dfaacc_union *) \ - reallocate_array( (void *) array, size, sizeof( union dfaacc_union ) ) + reallocate_array((void *) array, size, sizeof(union dfaacc_union)) #define allocate_character_array(size) \ - (char *) allocate_array( size, sizeof( char ) ) + allocate_array( size, sizeof(char)) #define reallocate_character_array(array,size) \ - (char *) reallocate_array( (void *) array, size, sizeof( char ) ) + reallocate_array((void *) array, size, sizeof(char)) #define allocate_Character_array(size) \ - (unsigned char *) allocate_array( size, sizeof( unsigned char ) ) + allocate_array(size, sizeof(unsigned char)) #define reallocate_Character_array(array,size) \ - (unsigned char *) reallocate_array( (void *) array, size, sizeof( unsigned char ) ) + reallocate_array((void *) array, size, sizeof(unsigned char)) /* Used to communicate between scanner and parser. The type should really |