]> granicus.if.org Git - flex/log
flex
8 years agoMade some program checks more robust
Will Estes [Sat, 27 Feb 2016 20:35:33 +0000 (15:35 -0500)]
Made some program checks more robust

8 years agoRemove unneeded cast to int
rlar [Sat, 27 Feb 2016 17:31:33 +0000 (18:31 +0100)]
Remove unneeded cast to int

8 years agoFixed incorrect integer type
Will Estes [Sat, 27 Feb 2016 16:56:05 +0000 (11:56 -0500)]
Fixed incorrect integer type

8 years agoFix more integer types, resolves sf 184, 187
Will Estes [Sat, 27 Feb 2016 14:43:00 +0000 (09:43 -0500)]
Fix more integer types, resolves sf 184, 187

8 years agoRemoved some type conversion warnings
Robert Larice [Sat, 27 Feb 2016 01:23:05 +0000 (20:23 -0500)]
Removed some type conversion warnings

8 years agoChanged another buffer size to int; resolves gh#61
Will Estes [Fri, 26 Feb 2016 19:23:33 +0000 (14:23 -0500)]
Changed another buffer size to int; resolves gh#61

8 years agoChanged type of yy_n_chars to int; gh#53, sf#160.
Will Estes [Thu, 25 Feb 2016 01:11:24 +0000 (20:11 -0500)]
Changed type of yy_n_chars to int; gh#53, sf#160.

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.

8 years agoFixed size of bufferallocation, resolved gh#54.
Will Estes [Wed, 24 Feb 2016 22:50:00 +0000 (17:50 -0500)]
Fixed size of bufferallocation, resolved gh#54.

The value of n_alloc was a count, not a size. Multiplying the value by the element size was incorrect. That multiplication was already being done and having it done twice was incorrect.

8 years agoAllow '%option noline' in flex input file, resolves gh#56.
Tobias Klauser [Tue, 23 Feb 2016 14:39:24 +0000 (15:39 +0100)]
Allow '%option noline' in flex input file, resolves gh#56.

Allow specifying '%option noline' in the input file, leading to the same
effect as calling flex with the command line option --noline.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
8 years agoEmit no #line directives if gen_line_dirs is false, resolves igh#55.
Tobias Klauser [Tue, 23 Feb 2016 14:59:42 +0000 (15:59 +0100)]
Emit no #line directives if gen_line_dirs is false, resolves igh#55.

There are two instances in the code which will print a #line directive
to the resulting lexer, regardless of the value of gen_line_dirs. Fix
them, so they also respect gen_line_dirs.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
8 years agoConverted K&R style function definitions to ANSI C style
Tobias Klauser [Tue, 16 Feb 2016 13:35:34 +0000 (14:35 +0100)]
Converted K&R style function definitions to ANSI C style

Consistently make use of the ANSI C function definition style instead of
the K&R style.

8 years agoUsed NULL constant instead of plain integer for NULL pointer.
Tobias Klauser [Fri, 29 Jan 2016 13:31:54 +0000 (14:31 +0100)]
Used NULL constant instead of plain integer for NULL pointer.

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.

8 years agoMarked declaration and definition of yy_fatal_error as noreturn.
Tobias Klauser [Fri, 29 Jan 2016 13:26:23 +0000 (14:26 +0100)]
Marked declaration and definition of yy_fatal_error as noreturn.

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.

8 years agoFixed declaration mismatch in yy_fatal_error.
Tobias Klauser [Wed, 27 Jan 2016 12:58:08 +0000 (13:58 +0100)]
Fixed declaration mismatch in yy_fatal_error.

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.

8 years agoflex is for flex #NCoC
Will Estes [Sat, 23 Jan 2016 16:43:07 +0000 (11:43 -0500)]
flex is for flex #NCoC

8 years agoReferred to github for issue tracking, no longer sf
Will Estes [Mon, 18 Jan 2016 21:00:04 +0000 (16:00 -0500)]
Referred to github for issue tracking, no longer sf

8 years agoOpened files in binary mode explicitly
Egor Pugin [Sun, 10 Jan 2016 20:43:47 +0000 (15:43 -0500)]
Opened files in binary mode explicitly

8 years agoLinked flex binary against libintl, not libfl.
OBATA Akio [Fri, 8 Jan 2016 20:23:18 +0000 (15:23 -0500)]
Linked flex binary against libintl, not libfl.

Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
8 years agoImproved pipe-stdin hack behavior; resolves sf#198.
Michael van Elst [Fri, 8 Jan 2016 20:07:57 +0000 (15:07 -0500)]
Improved pipe-stdin hack behavior; resolves sf#198.

Signed-off-by: Thomas <Klausner wiz@NetBSD.org>
9 years agoRemoved no longer needed header checks
Will Estes [Sun, 27 Dec 2015 19:05:51 +0000 (14:05 -0500)]
Removed no longer needed header checks

9 years agoChecked for reallocarray() with AC_REPLACE_FUNCS
Will Estes [Sun, 27 Dec 2015 18:57:13 +0000 (13:57 -0500)]
Checked for reallocarray() with AC_REPLACE_FUNCS

9 years agoinclude libgen.h from flexdef.h, not main.c
Will Estes [Sun, 27 Dec 2015 18:46:37 +0000 (13:46 -0500)]
include libgen.h from flexdef.h, not main.c

9 years agoReplace basename2() with basename(3).
Michael Reed [Fri, 25 Dec 2015 19:49:33 +0000 (14:49 -0500)]
Replace basename2() with basename(3).

Given the following program:

\#include <libgen.h>
\#include <stdio.h>

/* extracts basename from path, optionally stripping the extension "\.*"
 * (same concept as /bin/sh `basename`, but different handling of extension). */
static char *basename2 (char *path)
{
char   *b;

for (b = path; *path; path++)
if (*path == '/')
b = path + 1;
return b;
}

static void basename_compare(char *path)
{
printf("basename: %s\n", basename(path));
printf("basename2: %s\n\n", basename2(path));
}

int main (int argc, char *argv[])
{
// From http://pubs.opengroup.org/onlinepubs/9699919799/
// ``Sample Input and Output Strings''
basename_compare("/usr/lib");
basename_compare("/usr/");
basename_compare("/");
basename_compare("///");
basename_compare("//usr//lib//");
return 0;
}

... and the program's output:

basename: lib
basename2: lib

basename: usr
basename2:

basename: /
basename2:

basename: /
basename2:

basename: lib
basename2:

... we can see that basename2() behaves the same as basename(3) in the
average use case, but messes up pretty severely in others.  Besides
that, basename(3) is mandated by POSIX so should be present on modern
Unix-like systems, so we shouldn't define it ourselves.

Some notes:
- it doesn't appear to be mentioned in POSIX, but OpenBSD's basename(3)
  returns NULL if the returned path componenet is > PATH_MAX, so add a
  check for that
- basename(3) shouldn't return an empty string, so remove the
  program_name[0] != '\0' check

9 years agoSimplify basename2().
Michael Reed [Fri, 25 Dec 2015 19:39:18 +0000 (14:39 -0500)]
Simplify basename2().

It's only call site does not activate the `strip_ext` code path, so the
function can be simplified a lot.  While here, remove a double
assignment.

9 years agoCleaned up __STDC__ #ifdefs.
Michael Reed [Fri, 25 Dec 2015 19:15:15 +0000 (14:15 -0500)]
Cleaned up __STDC__ #ifdefs.

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.

9 years agoRemove remaining use of PROTO
Michael Reed [Fri, 25 Dec 2015 19:01:24 +0000 (14:01 -0500)]
Remove remaining use of PROTO

9 years agobuf.c: use snprintf
Serguey Parkhomovsky [Mon, 21 Dec 2015 22:40:24 +0000 (14:40 -0800)]
buf.c: use snprintf

9 years agobuild: reformatted AC_CHECK_FUNCS for readability
Will Estes [Sat, 19 Dec 2015 21:17:31 +0000 (16:17 -0500)]
build: reformatted AC_CHECK_FUNCS for readability

9 years agocorrect function prototype
Will Estes [Thu, 17 Dec 2015 21:45:14 +0000 (16:45 -0500)]
correct function prototype

9 years agoRemove more instances of PROTO
Michael Reed [Tue, 15 Dec 2015 20:08:50 +0000 (15:08 -0500)]
Remove more instances of PROTO

9 years agoRemoved prototype for main().
Michael Reed [Tue, 15 Dec 2015 19:47:33 +0000 (14:47 -0500)]
Removed prototype for main().

It's not called anywhere else so the prototype is not needed.
See the C99 standard [1], section 5.1.2.2.1 for more info.

[1]: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf

9 years agoRemoved more instances of PROTO, ansifying.
Michael McConville [Sun, 13 Dec 2015 06:20:11 +0000 (01:20 -0500)]
Removed more instances of PROTO, ansifying.

9 years agoNoted github for issue tracking and pull requests
Will Estes [Mon, 14 Dec 2015 00:41:19 +0000 (19:41 -0500)]
Noted github for issue tracking and pull requests

9 years agoReformatted README; removed sf bug tracking link.
Michael McConville [Sun, 13 Dec 2015 22:55:47 +0000 (17:55 -0500)]
Reformatted README; removed sf bug tracking link.

9 years agoRemoved macros for indentation level.
Michael McConville [Sun, 13 Dec 2015 22:44:20 +0000 (17:44 -0500)]
Removed macros for indentation level.

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

9 years agotests: fixed paths to input files.
Mike Frysinger [Sun, 13 Dec 2015 04:28:43 +0000 (23:28 -0500)]
tests: fixed paths to input files.

The current test wrapper works only when the inputs are specified using
relative paths.  If they're specified with absolute paths, the driver
fails to detect the inputs because it always prepends the input dir name
which itself is a relative path:
$ cd tests
$ ./testwrapper.sh -d . -i $PWD/reject.txt -t ./reject_ver.table
<fails to open inputs>

This normally doesn't show up because people run `./configure` or, for
out of tree builds, `../configure`.  But if you happen to run configure
with an absolute path, then automake tends to generate absolute paths
as well leading to test failures.

Fix all of this by dropping the implicit input directory prepending.

- INPUT_NAME is often a list of files, not just a single one
- the input directory is used to find the testname tables which are
  usually generated, so it's impossible to use files from both source
  and build directories
- most of the time, the full/correct path is already specified

9 years agoconfigure: fixed realloc test.
Mike Frysinger [Sun, 13 Dec 2015 04:17:00 +0000 (23:17 -0500)]
configure: fixed realloc test.

The [] characters are used for quoting in m4, so the attempt to use
them in place of `test` fails yielding the warning at build time:

.../flex/configure: line 20222: no: command not found

9 years agoStarted removal of PROTO macro.
Michael McConville [Sat, 12 Dec 2015 05:38:53 +0000 (00:38 -0500)]
Started removal of PROTO macro.

The PROTO macro is no longer needed. Additionally, its usage is inconsistent,
so we began removing it.

9 years agoRemoved SHORT_FILE_NAMES preprocessor symbol.
Michael Reed [Sat, 12 Dec 2015 20:17:53 +0000 (15:17 -0500)]
Removed SHORT_FILE_NAMES preprocessor symbol.

As a relic of MS-DOS, we don't need this.

It's never defined; see 13b5b214f53d1c3354a7ab910bd160c126df1331.

Removed additional MSDOS ifdef.

9 years agoAdded new function reallocarray.
Michael McConville [Sat, 12 Dec 2015 04:04:36 +0000 (23:04 -0500)]
Added new function reallocarray.

This is taken from OpenSSH Portable, which in turn takes it from
OpenBSD.

reallocarray wraps the stdlib's realloc function. It takes two size
arguments and checks for overflow, like calloc, but doesn't zero the
memory. Therefore, it allows us to do overflow-safe array reallocations
and overflow-safe unzeroed array allocations, which the stdlib
allocation functions don't.

We have a bunch of specific array allocation macros, none of
which check for overflow. reallocarray should be able to replace them.

9 years agoRemoved MS-DOS, VMS macros.
Michael McConville [Sat, 12 Dec 2015 04:42:19 +0000 (23:42 -0500)]
Removed MS-DOS, VMS macros.

Given the age of the MS-DOS and VMS platforms, it's likely that no one is building flex on them any more. Additionally, the preferred approach is to test for particular platform features rather than to test for particular platforms.

9 years agoMade search for m4 more explicit.
Will Estes [Sat, 12 Dec 2015 16:03:05 +0000 (11:03 -0500)]
Made search for m4 more explicit.

9 years agoReturned 0 from yywrap() instead of EOF
Will Estes [Sat, 12 Dec 2015 12:35:23 +0000 (07:35 -0500)]
Returned 0 from yywrap() instead of EOF

9 years agoChanged end of main() in libmain to exit(0)
Will Estes [Sat, 12 Dec 2015 01:25:50 +0000 (20:25 -0500)]
Changed end of main() in libmain to exit(0)

9 years agoMentioned v2.6.1; documented some changes since v2.6.0
Will Estes [Fri, 11 Dec 2015 15:57:46 +0000 (10:57 -0500)]
Mentioned v2.6.1; documented some changes since v2.6.0

9 years agoUpdated build documentation; finished sf#155.
Will Estes [Fri, 11 Dec 2015 15:41:08 +0000 (10:41 -0500)]
Updated build documentation; finished sf#155.

Removed version numbers for build tools. Noted that version requirements for build tools will be noted in configure.ac. Expanded documentation of building texinfo based docs.

9 years agoRemoved flex.pdf from distribution; partially fixed sf#155
Will Estes [Fri, 11 Dec 2015 15:40:34 +0000 (10:40 -0500)]
Removed flex.pdf from distribution; partially fixed sf#155

9 years agoCommented in C style in skeleton; fixed sf#195
Will Estes [Fri, 11 Dec 2015 14:45:14 +0000 (09:45 -0500)]
Commented in C style in skeleton; fixed sf#195

9 years agoIgnored autoscan files
Will Estes [Thu, 10 Dec 2015 15:05:59 +0000 (10:05 -0500)]
Ignored autoscan files

9 years agoChecked for ranlib and strdup() at configure time
Will Estes [Thu, 10 Dec 2015 00:39:20 +0000 (19:39 -0500)]
Checked for ranlib and strdup() at configure time

9 years agoReplace zero_out() with stdlib's memset.
Michael McConville [Wed, 9 Dec 2015 21:22:11 +0000 (16:22 -0500)]
Replace zero_out() with stdlib's memset.

9 years agoRemoved memory allocation casts.
Michael McConville [Wed, 9 Dec 2015 21:14:41 +0000 (16:14 -0500)]
Removed memory allocation casts.

9 years agoRemoved alloca() configuration.
Michael McConville [Wed, 9 Dec 2015 19:20:40 +0000 (14:20 -0500)]
Removed alloca() configuration.

Since alloca() is dangerous, depricated, we remove it.

9 years agoRemoved implementation of isascii().
Michael McConville [Wed, 9 Dec 2015 19:13:05 +0000 (14:13 -0500)]
Removed implementation of isascii().

POSIX defines isascii(), so it's likely present on anything weactually build flex on these days.

9 years agoRemoved NULL-checks before free()
Michael McConville [Wed, 9 Dec 2015 18:03:57 +0000 (13:03 -0500)]
Removed NULL-checks before free()

9 years agoRemoved flex_free()i, corrected buf_destroy logic.
Michael McConville [Wed, 9 Dec 2015 02:16:52 +0000 (21:16 -0500)]
Removed flex_free()i, corrected buf_destroy logic.

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.

9 years agoRemoved flex_realloc().
Michael McConville [Wed, 9 Dec 2015 02:12:21 +0000 (21:12 -0500)]
Removed flex_realloc().

As with flex_alloc(), replace calls to flex_realloc(), which was just a
wrapper around realloc().

9 years agoRemoved flex_alloc; cleaned up style.
Michael McConville [Wed, 9 Dec 2015 02:00:39 +0000 (21:00 -0500)]
Removed flex_alloc; cleaned up style.

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

9 years agoRemove allocation casts
Michael McConville [Tue, 8 Dec 2015 00:44:10 +0000 (19:44 -0500)]
Remove allocation casts

9 years agoBuilt flex with itself.
Will Estes [Mon, 7 Dec 2015 20:37:01 +0000 (15:37 -0500)]
Built flex with itself.

Changes in scan.l need to be built into flex with the same version of
flex in some cases. Since this build requirement is minimal, we simply
bootstrap flex unconditionally.

We intentionally exclude from version control the bootstrap artifacts as
the extra copy of the lexer, the intermediate scanner and the bootstrap
executable are not of interest.

9 years agoUse NULL rather than (type *) 0.
Michael McConville [Sat, 5 Dec 2015 23:00:12 +0000 (18:00 -0500)]
Use NULL rather than (type *) 0.

9 years agoReplace copy_unsigned_string() with xstrdup().
Michael McConville [Sat, 5 Dec 2015 22:42:40 +0000 (17:42 -0500)]
Replace copy_unsigned_string() with xstrdup().

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.

9 years agoCleaned up white space.
Akim Demaille [Fri, 4 Dec 2015 15:56:47 +0000 (16:56 +0100)]
Cleaned up white space.

9 years agoRemoved struct keyword before yy_buffer_state
Akim Demaille [Fri, 4 Dec 2015 15:41:47 +0000 (16:41 +0100)]
Removed struct keyword before yy_buffer_state

9 years agoReplaced FLEX_STD macro with std::.
Akim Demaille [Fri, 4 Dec 2015 15:39:39 +0000 (16:39 +0100)]
Replaced FLEX_STD macro with std::.

The std:: construct exists as of C++98, so we can simply assume it is
supported.

9 years agoGenerated skel.c explicitly in srcdir.
Akim Demaille [Fri, 4 Dec 2015 15:37:03 +0000 (16:37 +0100)]
Generated skel.c explicitly in srcdir.

Rewrote the target for skel.c to explicitly mention the srcdir. This
should help when building flex from a directory outside the flex
tree. Spread the rule out over several lines to enhance readability.

9 years agoCalled glibtoolize if libtoolize run fails.
Akim Demaille [Fri, 4 Dec 2015 15:36:17 +0000 (16:36 +0100)]
Called glibtoolize if libtoolize run fails.

On Mac OS X, libtoolize is known as glibtoolize. In cases where libtoolize is not present, then calling glibtoolize when bootstrapping the build system gives more folks a shot at getting flex built from the ground up.

9 years agoChecked for (g)texi2dvi. Better bison, help2man checks.
Mightyjo [Thu, 3 Dec 2015 02:25:11 +0000 (21:25 -0500)]
Checked for (g)texi2dvi. Better bison, help2man checks.

Added test for presence of (g)texi2dvi program. Gave notice if texi2dvi
is unavailable and set TEXI2DVI=: to avoid giving users headaches.

Enhanced tests for bison and help2man with notices when the programs
aren't found.  Set their program variables to use the missing script
in build-aux since it's compatible with them.

9 years agoMade string copying more standard.
Michael McConville [Wed, 2 Dec 2015 16:32:42 +0000 (11:32 -0500)]
Made string copying more standard.

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.

9 years agoError on unbalanced parentheses in rules section.
Serguey Parkhomovsky [Tue, 1 Dec 2015 00:27:32 +0000 (19:27 -0500)]
Error on unbalanced parentheses in rules section.

9 years agoCleaned up BUILT_SOURCES list.
Will Estes [Mon, 30 Nov 2015 00:43:05 +0000 (19:43 -0500)]
Cleaned up BUILT_SOURCES list.

Removed reference to skel.c as a built source since other make rules cover this case.

9 years agoSorted file names in flex_SOURCES
Will Estes [Mon, 30 Nov 2015 00:04:38 +0000 (19:04 -0500)]
Sorted file names in flex_SOURCES

9 years agoReplaced CHAR macro with unsigned char type.
Mightyjo [Sat, 28 Nov 2015 02:38:23 +0000 (21:38 -0500)]
Replaced CHAR macro with unsigned char type.

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.

9 years agoupdated syntax of AC_INIT call as per autoupdate
Will Estes [Sat, 21 Nov 2015 18:15:53 +0000 (13:15 -0500)]
updated syntax of AC_INIT call as per autoupdate

9 years agoremoved extra call to a _CPPFLAGS variable
Will Estes [Sat, 21 Nov 2015 18:12:58 +0000 (13:12 -0500)]
removed extra call to a _CPPFLAGS variable

9 years agoSwitch function definitions from mixed K&R to consistent ANSI C.
Stefan Reinauer [Thu, 14 May 2015 18:16:04 +0000 (11:16 -0700)]
Switch function definitions from mixed K&R to consistent ANSI C.

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>
9 years agoUsed in-tree header file for c++ tests.
Mightyjo [Tue, 17 Nov 2015 05:39:02 +0000 (21:39 -0800)]
Used in-tree header file for c++ tests.

9 years agoDeclared version 2.6.0 v2.6.0
Will Estes [Tue, 17 Nov 2015 16:16:43 +0000 (11:16 -0500)]
Declared version 2.6.0

9 years agoDated, described flex release 2.6.0
Will Estes [Tue, 17 Nov 2015 16:14:05 +0000 (11:14 -0500)]
Dated, described flex release 2.6.0

9 years agoDeclared version 2.6.0rc1
Will Estes [Fri, 13 Nov 2015 19:56:25 +0000 (14:56 -0500)]
Declared version 2.6.0rc1

9 years agoSupplied versioning information in flex libraries.
lukeallardyce [Fri, 13 Nov 2015 19:48:19 +0000 (14:48 -0500)]
Supplied versioning information in flex libraries.

Resolves sourceforge bug #182. On OSX, and possibly other platforms, building the libfl libraries without versioning information caused a build failures.

9 years agoCleaned up more precisely after make check.
Will Estes [Fri, 13 Nov 2015 02:44:07 +0000 (21:44 -0500)]
Cleaned up more precisely after make check.

BUILT_SOURCES is now just the list of headers built as per the
automake manual. We provide the list of files to clean to make
rebuilding the test suite programs easier. We then use the CLEANFILES
list in a dist-hook to clean up the distribution that automake gathers
since not distributing flex generated files is foreign to automake's
mindset, but we need exactly that.

Additionally, we locate inputs to the tables-related tests more
precisely. Some files are in srcdir and some are in builddir, which
the arguments to the log compiler are now made aware of.

9 years agoPulled out scripts in tests/Makefile.am
Will Estes [Thu, 12 Nov 2015 00:08:26 +0000 (19:08 -0500)]
Pulled out scripts in tests/Makefile.am

9 years agoAdded srcdir to tableopts.am include
Will Estes [Wed, 11 Nov 2015 23:22:17 +0000 (18:22 -0500)]
Added srcdir to tableopts.am include

9 years agoChanged man page dependencies.
Will Estes [Wed, 11 Nov 2015 20:20:56 +0000 (15:20 -0500)]
Changed man page dependencies.

The man page is just the --help output as reformatted by help2man. The
--help option is most likely to change when the flex skeleton changes
or one of the option parsing files changes or the configure.ac script
itself changes. The dependencies reflect this now.

It is still necessary, under some circumstances, to rebuild flex
explicitly before building the man page. In theory, it's possible to
have automake arrange to do this all the time, but doing so works out
to be fragile, given the rest of the build system.

9 years agoCalled libtoolize directly because autoreconf fails to pick up LT_INIT properly
Will Estes [Tue, 10 Nov 2015 22:26:39 +0000 (17:26 -0500)]
Called libtoolize directly because autoreconf fails to pick up LT_INIT properly

9 years agoAdded tableopts.sh to EXTRA_DIST
Will Estes [Tue, 10 Nov 2015 22:24:28 +0000 (17:24 -0500)]
Added tableopts.sh to EXTRA_DIST

9 years agoMade tests depend on the built flex binary.
Mightyjo [Sun, 8 Nov 2015 23:39:03 +0000 (15:39 -0800)]
Made tests depend on the built flex binary.

9 years agoMerge branch 'master' into streamrefs
Mightyjo [Sun, 8 Nov 2015 23:43:09 +0000 (15:43 -0800)]
Merge branch 'master' into streamrefs

9 years agoCleaned more generated sources.
Mightyjo [Sun, 8 Nov 2015 07:11:35 +0000 (23:11 -0800)]
Cleaned more generated sources.

Added skel.c explicitly to MAINTAINERCLEANFILES in src/Makefile.am.

Added a bunch of files to built_SOURCES in tests/Makefile.am so that the
suite is easier to clean up.

9 years agoUpdated documentation to reflect the revisions to FlexLexer.h
Mightyjo [Thu, 5 Nov 2015 03:50:50 +0000 (19:50 -0800)]
Updated documentation to reflect the revisions to FlexLexer.h

9 years agoChanged several pointers to istream (and ostream) to references in c++-only sections...
Mightyjo [Tue, 27 Oct 2015 03:35:00 +0000 (20:35 -0700)]
Changed several pointers to istream (and ostream) to references in c++-only 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.

9 years agonew zh_CN translation from the translation project
Translation Project [Tue, 29 Sep 2015 19:53:33 +0000 (15:53 -0400)]
new zh_CN translation from the translation project

9 years agofix possible resource leak with yynultrans_tbl
Jaska Uimonen [Mon, 27 Jul 2015 08:20:05 +0000 (11:20 +0300)]
fix possible resource leak with yynultrans_tbl

9 years agofix possible uninitialized array values
Jaska Uimonen [Mon, 27 Jul 2015 07:59:58 +0000 (10:59 +0300)]
fix possible uninitialized array values

9 years agoadd %{...%} block to example in manual
Will Estes [Wed, 5 Aug 2015 19:27:37 +0000 (15:27 -0400)]
add %{...%} block to example in manual

9 years agoinitialize libtool earlier in build system generation
Will Estes [Wed, 15 Jul 2015 19:20:11 +0000 (15:20 -0400)]
initialize libtool earlier in build system generation

9 years agonew da translation from the Translation Project
Translation Project [Fri, 8 May 2015 16:58:18 +0000 (12:58 -0400)]
new da translation from the Translation Project

10 years agoFix `label unused` warning
Mariusz Pluciński [Fri, 25 Jul 2014 16:36:05 +0000 (18:36 +0200)]
Fix `label unused` warning

10 years agoFix two "signed/unsigned" warnings
Mariusz Pluciński [Fri, 25 Jul 2014 16:07:15 +0000 (18:07 +0200)]
Fix two "signed/unsigned" warnings