summaryrefslogtreecommitdiff
path: root/src/sym.c
Commit message (Collapse)AuthorAge
* ndlookup(), char *, to get rid of casts and warningsrlar2016-02-29
|
* ndinstal(), char *, to get rid of casts and warningsrlar2016-02-29
|
* cclinstal() and ccllookup(), char *, to get rid of casts and warningsrlar2016-02-29
|
* Remove remaining use of PROTOMichael Reed2015-12-25
|
* Remove more instances of PROTOMichael Reed2015-12-15
|
* Removed flex_alloc; cleaned up style.Michael McConville2015-12-09
| | | | | | | | | | | 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
* Use NULL rather than (type *) 0.Michael McConville2015-12-05
|
* Replace copy_unsigned_string() with xstrdup().Michael McConville2015-12-05
| | | | | | 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.
* Made string copying more standard.Michael McConville2015-12-02
| | | | | 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.
* Replaced CHAR macro with unsigned char type.Mightyjo2015-11-29
| | | | | | | | Thanks to Michael McConville for pointing out that the old Char macro causes problems with static analysis. The macro has been removed and replaced with 'unsigned char' throughout the flex sources. The macro is not needed at best and was confusing at worst. It was not used in any of the example files nor was it mentioned in the manual at all.
* Switch function definitions from mixed K&R to consistent ANSI C.Stefan Reinauer2015-11-19
| | | | | | | | flex was using K&R function definitions for some functions and ANSI C style in others, sometimes even in the same file. Change the code to consistently use ANSI C. Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
* Removed deprecated 'register' storage class specifier.Yuri2014-07-25
| | | | clang-3.5.0 now complains about them: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
* move flex program sources into src/ directoryWill Estes2014-02-16
The *.[chly] sources are now in the src directory. This implies a bunch of changes in Makefile.am and friends to account for the new location. The .gitignore files are now more local to places where various object files and generated source files occur.