| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
rename these too for improved similiarity:
OPTION_OP OPT_HEADER OPT_EXTRA_TYPE OPT_TABLES
|
|
|
|
|
|
| |
these collide:
OPT_OUTFILE OPT_PREFIX OPT_YYCLASS
rename them TOK_... in the parser
|
| |
|
|
|
|
|
|
|
| |
Just increment or decrement the indentation counter. That's less to
remember and makes the code more readable.
w# Please enter the commit message for your changes. Lines starting
|
| |
|
|
|
|
|
|
|
| |
As with flex_alloc(), replace with direct calls to free().
The function buf_destroy is now null safe and the logic was corrected to free()
correctly.
|
|
|
|
|
| |
As with flex_alloc(), replace calls to flex_realloc(), which was just a
wrapper around realloc().
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
| |
Like copy_string(), copy_unsigned_string() is just a clone of the
stlib's strdup(). We only use it twice. I'm pretty confident that char
signedness is irrelevant in this case.
|
|
|
|
|
| |
copy_string() was a clone of the stdlib's strdup(). For safety,
simplicity, and speed, we should use that instead. We introduce xstrdup() which wraps strdup() in a failure upon memory allocation errors.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|