summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* build: do not generate lib/Makefile.in.Explorer092017-05-03
| | | | | | Files in lib/ are picked up and built using makefile directives in src/Makefile.am. Remove the need to generate lib/Makefile.in and the stub lib/Makefile.am.
* build: detect overflow for [re]allocate_array.Explorer092017-01-24
| | | | | | | | | | | Use reallocarray() when we have it (i.e. in OpenBSD system). When we don't, use equivalent overflow detection for our allocate_array and reallocate_array functions. Remove lib/reallocarray.c from our LIBOBJS as we no longer need it. Provide a fallback SIZE_MAX macro definition in flexint.h (not preprocessor friendly, but enough for our reallocate_array use case).
* build: explain empty lib/Makefile.amWill Estes2016-11-24
|
* build: Link $(LIBOBJS) from src/ dir, remove libcompat.la.Explorer092016-11-24
| | | | | | The libcompat.la library was small and less friendly to bootstrapping and cross compilation. Now, we will simply link individual object files as needed, which is simpler.
* Prototyped reallocarray implementationWill Estes2016-02-28
|
* warning: no previous prototype for 'do_nothing' [-Wmissing-prototypes]rlar2016-02-27
|
* Converted K&R style function definitions to ANSI C styleTobias Klauser2016-02-16
| | | | | Consistently make use of the ANSI C function definition style instead of the K&R style.
* Added new function reallocarray.Michael McConville2015-12-12
| | | | | | | | | | | | | | 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.
* Fix malloc/realloc replacement, bug#151.Michael Haubenwallner2014-04-02
| | | | Signed-off-by: Will Estes <westes575@gmail.com>
* change crlf line ending to lfWill Estes2014-04-02
|
* 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.
* Build libfl and libcompat using libtool; resolves #3586814Christoph Junghans2012-12-06
| | | | Signed-off-by: Will Estes <westes575@gmail.com>
* remove unneeded .cvsignore filesWill Estes2012-07-23
|
* provide malloc() and realloc() for systems that do not have satisfactory ↵Will Estes2012-03-21
| | | | versions; resolves #1899047
* cvsignore files that need thatWill Estes2012-02-03