summaryrefslogtreecommitdiff
path: root/src/flex.skl
Commit message (Collapse)AuthorAge
* [master]: Fix a couple of FTBS bugsdebian/2.6.4-4archive/debian/2.6.4-4Manoj Srivastava2018-02-16
| | | | Signed-off-by: Manoj Srivastava <srivasta@debian.org>
* Obsolete yypad64() macro.Explorer092017-11-28
| | | | | | | | | Slightly rewrite the logic in yytbl_data_load() and yytbl_write_pad64() so they simply check if the bytes read/written are in 8-byte boundary. No need to calculate how many bytes we need to pad. (Incidentally this makes smaller code in x86_64.) For yytbl_hdr_init(), just expand the calculation from the macro.
* scanner: Define _POSIX_C_SOURCE when needed in skeleton.Explorer092017-11-03
| | | | | | The function fileno() is defined by POSIX. When flex would otherwise not provide that feature macro, we define it. Fixes #263
* scanner: corrected typoWill Estes2017-05-13
|
* scanner: Mention %# comments are removed when building skel.cExplorer092017-05-06
|
* Honor user definitions of yy_* macrosDemi Obenour2017-05-03
| | | | | The user may have defined the yy_* macros themselves. In that case, don't clobber them.
* Don't leak macro definitions into header filesDemi Obenour2017-05-03
| | | | | | | This allowed unnamespaced definitions to leak into header files, breaking client code. Fixes #142
* scanner: update yy_buf_size after yyrealloc()Todd C. Miller2017-05-02
|
* Add more defines in the non-reentrant part.Christos Zoulas2017-01-23
| | | | | Fix the reentrant part; don't "#define yyfoo yyfoo" because it breaks code that does #ifndef yywrap ..
* scanner: move comment for consistencyThomas Klausner2017-01-23
|
* c++: Fix yyrestart(NULL) SEGV.Harald van Dijk2017-01-11
| | | | | | | | | | | | Binding a reference to a dereferenced null pointer is invalid and compilers optimise away the &file == 0 check. We need a real stream. yyin is available already, and yyrestart(NULL) is only supported when yyin will not be used, so there is no harm in just passing in that. Since we now always have a valid stream, we can skip the null check too. Fixes #98.
* scanner: remove void cast before fprintfWill Estes2017-01-11
|
* scanner: remove trailing whitespace in skeletonAlexis La Goutte2016-12-29
|
* fix backwards incompatible changes in 2.6.2.Demi Obenour2016-11-12
| | | | | | | This patch addscompatibility `#defines` for all macros affected by `%prefix`. Fixes #113.
* Fix yyrestart(NULL) SEGV.Mightyjo2016-10-05
|
* no longer generate K&R C scannersDemi Obenour2016-09-25
|
* avoid warning in generated code, with -Cfrlar2016-03-28
| | | | warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
* warning: conversion to 'flex_uint32_t' from 'long unsigned int' may alter ↵rlar2016-03-18
| | | | | | its value [-Wconversion] struct yytbl_reader, member bread is of type flex_uint32_t
* generated code, in yyensure_buffer_stack(), change type of local `num_to_alloc'rlar2016-03-12
| | | | which is exclusively used in yy_size_t context
* generated code, in yy_get_next_buffer(), change type of local `number_to_move'rlar2016-03-12
| | | | suits better, because `yy_n_chars' and `yy_buf_size' are of type `int'
* generated code, `_yybytes_len' is of type `int', fix code accordinglyrlar2016-03-12
|
* generated code, here `new_size' is of type `int', fix casts accordinglyrlar2016-03-12
|
* generated code, `yy_buf_size' is of type `int', fix casts accordinglyrlar2016-03-12
|
* generated code, `offset' is of type `int'rlar2016-03-12
|
* fwrite wants a size_t, yyleng is int per posixrlar2016-02-28
|
* Remove unneeded cast to intrlar2016-02-27
|
* Fixed incorrect integer typeWill Estes2016-02-27
|
* Fix more integer types, resolves sf 184, 187Will Estes2016-02-27
|
* Removed some type conversion warningsRobert Larice2016-02-26
|
* Changed another buffer size to int; resolves gh#61Will Estes2016-02-26
|
* Changed type of yy_n_chars to int; gh#53, sf#160.Will Estes2016-02-24
| | | | | | | The variable yy_n_chars had been of type yy_size_t which is incorrect given its use in read(). While it might be adviseable to look at defining a yy_ssize_t, there might be some issues doing this and so, for now, at least, we'll punt back to int.
* Used NULL constant instead of plain integer for NULL pointer.Tobias Klauser2016-01-29
| | | | | | The sparse static checker warns about using plain integer 0 as NULL pointers in the generated lexer code. Fix this by using NULL consistently for pointers.
* Marked declaration and definition of yy_fatal_error as noreturn.Tobias Klauser2016-01-29
| | | | | | | | | | Only the declaration of yy_fatal_error is marked with __attribute__((__noreturn__)) in case GCC >= 3 is used, but not the definition. This leads to the sparse static checker to complain about function declaration mismatch. Fix it by defining a macro yynoreturn and using it for both the declaration and the definition of yy_fatal_error.
* Fixed declaration mismatch in yy_fatal_error.Tobias Klauser2016-01-27
| | | | | | | | | | | The prototype declares yy_fatal_error parameter as "const char msg[]" while the definition uses "const char* msg" (introduced by commit e9d5fc713f61b) which causes the sparse static checkers to produce an error. Fix this by adjusting the definition to use "const char* msg" as well. Also change the C++ version accordingly so it matches the declaration in FlexLexer.hpp.
* Cleaned up __STDC__ #ifdefs.Michael Reed2015-12-27
| | | | | | Assuming a compiler conforming to the ISO C standard is used, i.e., __STDC__ is defined to 1, YY_USE_CONST is always defined and can be eliminated.
* Returned 0 from yywrap() instead of EOFWill Estes2015-12-12
|
* Commented in C style in skeleton; fixed sf#195Will Estes2015-12-11
|
* Removed memory allocation casts.Michael McConville2015-12-09
|
* Replaced FLEX_STD macro with std::.Akim Demaille2015-12-05
| | | | | The std:: construct exists as of C++98, so we can simply assume it is supported.
* Changed several pointers to istream (and ostream) to references in c++-only ↵Mightyjo2015-11-07
| | | | | | | | | | | | | | sections of the skeleton. Patched up a variety of expected errors caused by changing istream* to istream&. Added a stray 'make' at line 545. Oops. Changed the buffer_state struct to store std::streambuf* instead of std::istream* for C++ mode. Changed interfaces in FlexLexer.h to take std::istream& instead of *. Backward compatibility temporarily broken. Patched up backward compatibility with reasonable behavior in the presence of null pointers. Re-added backward-compatible versions of the yyFlexLexer methods that take iostream pointers. All tests passing.
* Fix two "signed/unsigned" warningsMariusz Pluciński2014-11-26
|
* Fix a few "unused parameter" warningsMariusz 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.
* 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]
* Suppress clang warning about empty @param paragraph; resolves sf#158Sean McBride2014-04-02
| | | | Signed-off-by: Will Estes <westes575@gmail.com>
* Adjust buffer sizes on ia64.Cyril Brulebois2014-03-05
| | | | | | | | | | | | | | From the debian change entry: > Finish fixing the ia64 buffer issue. Previous commits increased YY_READ_BUF_SIZE (where __ia64__ is defined) but left YY_BUF_SIZE unchanged, so that didn't fix the problem in the end. In the general case, the latter is twice the former. Therefore set it to the same ratio in the ia64 case. In general, this sort of architecture specific fix is not the path we want to take, but the cleanup should be done in a more organized way in the future and getting it working would be preferrable now.
* 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.