summaryrefslogtreecommitdiff
path: root/src/scanopt.c
Commit message (Collapse)AuthorAge
* scanner: Allow "--" as option argument.Explorer092017-12-09
| | | | | | | | | | | Previously, invocations such as: flex --outfile -- wc1.l would fail with "requires an argument" error message. Fixes #285
* scanner: scanopt_err() now returns voidExplorer092017-12-08
|
* scanner: simplify scanopt_usage().Explorer092017-12-08
| | | | | | | | | | | | In-function macro CALC_LEN removed and no longer needed. Local variable renames: maxlen[0] => opt_col_width maxlen[1] => desc_col_width indent now explicitly const
* scanner: Simplify PRINT_SPACES() macroExplorer092017-10-05
|
* scanner: remove BASENAME(); don't strip path from program_nameExplorer092017-08-24
| | | | | | | | | | | | | | | There's no technical need of stripping path from program_name. I think the users should be fine if they see the path they use to invoke flex is diagnostic messages and help texts. Yes, users will see "Usage: ../flex [OPTIONS]..." now if they invoke flex with the path "../flex". The --version output has been changed so that the name field will be always "flex" or "flex++". If the flex program has been renamed to "lex" (for compatibility or other reason) this will allow identifying the implementation name ("flex"). (And it's a recommended practice in GNU Coding Standards)
* scanner: #define BASENAME, remove #include libgen.hJannick2017-07-17
|
* cast to get rid of warningsrlar2016-03-08
|
* add (size_t) casts to malloc invocations to prevent warningsrlar2016-03-01
|
* add (int) casts to some strlen() invocations to prevent warningsrlar2016-02-29
|
* Removed custom strcasecmp() functionWill Estes2016-02-28
|
* Remove some unneeded castsrlar2016-02-28
|
* Remove remaining use of PROTOMichael Reed2015-12-25
|
* correct function prototypeWill Estes2015-12-17
|
* Remove more instances of PROTOMichael Reed2015-12-15
|
* Removed NULL-checks before free()Michael McConville2015-12-09
|
* Remove allocation castsMichael McConville2015-12-07
|
* Use NULL rather than (type *) 0.Michael McConville2015-12-05
|
* 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>
* Remove unused argument and variable from src/scanopt.c:scanopt_errMariusz PluciƄski2014-11-23
|
* NetBSD downstream patches.Christos Zoulas2014-11-11
| | | | | | | | | | | | | | | | const fixes. -Wconversion fixes for the skeleton files. param namespace protection (add _ to inline function parameters). unused variable/code removal. rename warn to lwarn to avoid conflict with <err.h>. ctype.h function argument correction. merged the error functions lerrif and lerrsf -> lerr.
* 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.