| Commit message (Collapse) | Author | Age |
|
|
|
| |
Signed-off-by: Manoj Srivastava <srivasta@debian.org>
|
|
|
|
|
|
| |
Fixes the cross compilation issue that resurfaced. Closes: Bug#833146
Signed-off-by: Manoj Srivastava <srivasta@debian.org>
|
|\
| |
| |
| | |
Closes: Bug#762180
|
| |
| |
| |
| |
| |
| | |
Helmut Grohne <helmut@subdivi.de> Thu, 18 Sep 2014 23:08:01 +0200
Signed-off-by: Manoj Srivastava <srivasta@debian.org>
|
|\ \
| | |
| | |
| | | |
[dgit --overwrite]
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Non-maintainer upload.
* Fix FTBFS on hurd (upstream 7975c43384d766ca12cb3f292754dbdc34168886).
(Closes: 838133).
[dgit import package flex 2.6.1-1.3]
|
| | /
| | |
| | |
| | | |
[dgit import orig flex_2.6.1.orig.tar.gz]
|
| | |
| | |
| | |
| | |
| | |
| | | |
Ack NMUs made earlier.
Signed-off-by: Manoj Srivastava <srivasta@debian.org>
|
|\ \ \
| | |/
| |/| |
|
| |\ \
| | | |
| | | |
| | | | |
Signed-off-by: Manoj Srivastava <srivasta@debian.org>
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Previously, invocations such as:
flex --outfile -- wc1.l
would fail with "requires an
argument" error message.
Fixes #285
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
For ccladd(), if cclp given is a non-last ccl, adding a char into it
will overflow the buffer and overwrite the first char in the next ccl.
For now, add a temporary detection and protection code. (Not sure if
this could happen in user input, but if it could, then you can expect
some "corrupted" behavior for generated scanners.)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Because ENABLE_NLS may be defined to 0 (manually, not through
autoconf) and it's semantically incorrect to only check whether it's
defined.
This is a correction to commit
661d603b65385f62f372acd2017e5af2e0f0cd50.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
(Simply forgot to do so in commit fb731ac0221e1866534dfe072b84b8af7a5d88f3)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
config.h will have either define ENABLE_NLS or not define it. If it is
not defined we get a -Wundef warning due to using #if with an
undefined macro
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The function fileno() is defined by POSIX. When flex would otherwise not provide that feature macro, we define it.
Fixes #263
|
| | | |
| | | |
| | | |
| | | | |
Use one from <stdlib.h> instead because that is more portable.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This would, e.g. define _GNU_SOURCE in config.h, enabling the
reallocarray() prototype in glibc 2.26+ on Linux systems with that
version of glibc.
Fixes #241.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
config.h may define macros that alter the API of the standard library
funtions, and so it should be included before any other standard
header, even before the skeleton's standard header inclusion.
For example: config.h may #define _GNU_SOURCE that would expose the
reallocarray() prototype from <stdlib.h> on glibc 2.26+ systems. If we
include <stdlib.h> before config.h, reallocarray() would not be
available for use in lex file since the second include doesn't help
due to header guard.
For now our config.h might `#define malloc rpl_malloc` -- this
substitution must work before including stdlib.h, or else the compiler
will complain about missing prototypes, and may result in incorrect
code in scan.l (gcc warning: return makes pointer from integer without
a cast [-Wint-conversion]).
Fixes #247.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
These are wrappers around automake- and libtool-generated targets,
allowing users to build libfl only, without the main flex program.
See GH-256 for discussion.
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
There's no need to include any header when linking with `-lfl`.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Don't use program_name in the description of -T/--trace or -V/--version
option. It's ugly when user invokes flex with a long path like
"/home/username/tools/bin/my-custom-built-flex".
This solution is not long term. If possible, the help text should be
modified so that the "flex" name is no longer needed below the first
"Usage:" line. All translations of help text will need to be updated
as well.
|
| | | |
| | | |
| | | |
| | | | |
"%s %s\n" is not translatable
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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)
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
In skeleton files comments are indicated by leading `%#` and when
directly read in using `flex -S <skeleton.skl>` they should be
ignored. Example: `flex.skl`.
Amending commit 2f21edac99b5efc432417233e6e53326d630e08f which removed
this conditional branch.
|
| | | |
| | | |
| | | |
| | | | |
Using regex_t regex_blank_line is *slow*.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It's simply to return (regexec(®ex_blank_line, str, 0, NULL, 0) == 0);
The reason for encapsulation is to allow replacing this with a
non-regex method if necessary.
|