summaryrefslogtreecommitdiff
path: root/src/scan.l
diff options
context:
space:
mode:
authorMichael McConville <mmcconville@mykolab.com>2015-12-08 21:00:39 -0500
committerWill Estes <westes575@gmail.com>2015-12-09 09:48:39 -0500
commitc53d722b0b4e81b08cfc2f9ff6675a7abe0de2c3 (patch)
tree4e19f81d30f1b2323c0a89a09c0d92359e713634 /src/scan.l
parentc03bef5411d3231f42445932d1971d656f020817 (diff)
Removed flex_alloc; cleaned up style.
The function flex_alloc() was just a wrapper around malloc(). Since this only added unclarity, and the flex_alloc() function is likely a legacy of olden times, remove it in favor of calls to malloc() directly. Style elements cleaned up: * superfluous spacing around parentheses * non-constant initialization in variable declarations * needless casts * almost all uses of assignments as subexpressions
Diffstat (limited to 'src/scan.l')
-rw-r--r--src/scan.l5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/scan.l b/src/scan.l
index 5c63a4c..8407fea 100644
--- a/src/scan.l
+++ b/src/scan.l
@@ -1013,11 +1013,6 @@ void set_input_file( char *file )
/* Wrapper routines for accessing the scanner's malloc routines. */
-void *flex_alloc( size_t size )
- {
- return malloc(size);
- }
-
void *flex_realloc( void *ptr, size_t size )
{
return realloc(ptr, size);