aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lemon
AgeCommit message (Collapse)AuthorFilesLines
2013-03-26Align a bit more with upstream.Anders Broman2-13/+17
svn path=/trunk/; revision=48559
2013-03-04Align lempar somewhat with upstream.Anders Broman1-24/+34
svn path=/trunk/; revision=48071
2013-03-02Rearrang the code to align with sqlite lemon and copy over a few more things.Anders Broman1-174/+179
svn path=/trunk/; revision=48014
2013-03-02Wite space changes.Anders Broman1-50/+50
svn path=/trunk/; revision=48005
2013-03-02lemon.c:3176:8: error: attempt to free a non-heap object ‘buf’Anders Broman1-1/+0
svn path=/trunk/; revision=48003
2013-03-02Becport more code.Anders Broman1-10/+9
svn path=/trunk/; revision=48002
2013-03-02Missed one place.Anders Broman1-1/+2
svn path=/trunk/; revision=48001
2013-03-02lemon.c:78:14: note: expected ‘int (*)(const void *, const void *)’ but ↵Anders Broman1-1/+1
argument is of type ‘int (*)(const char *, const char *)’ svn path=/trunk/; revision=48000
2013-03-02More backports from sqlite lemon to try to address warnings.Anders Broman1-14/+20
svn path=/trunk/; revision=47998
2013-03-02lemon.c:4628:5: error: conflicting types for ‘Configcmp’Anders Broman1-1/+1
lemon.c:366:5: note: previous declaration of ‘Configcmp’ was here svn path=/trunk/; revision=47997
2013-03-02More backports from sqlite lemon to try to address warnings.Anders Broman1-15/+15
svn path=/trunk/; revision=47996
2013-03-01Backports from sqlite lemon.Anders Broman1-8/+11
svn path=/trunk/; revision=47993
2013-03-01Fix a cut-n-pasteo and add a const cast to quiet a warning.Jeff Morriss1-2/+2
svn path=/trunk/; revision=47991
2013-03-01Backport const casts from sqlite lemon.Anders Broman1-26/+30
svn path=/trunk/; revision=47989
2013-03-01try to remove C++ incompatibilities from lemonAnders Broman1-89/+95
svn path=/trunk/; revision=47987
2013-02-10Clean up some warnings (including warnings that ultimately come fromGuy Harris1-60/+56
trying to modify string constants, which isn't necessarily guaranteed to work). svn path=/trunk/; revision=47618
2012-09-29From Bill Parker:Guy Harris1-13/+25
Add some additional memory-allocation failure checks in Lemon. Use NULL rather than 0 as the null-pointer constant in those checks. From me: Catch one more of the NULL-vs-0 cases. Fix some failure messages to use fprintf(stderr, ...) - ErrorMsg() requires a file name and line number, and is generally used if you're going to continue rather than just give up. svn path=/trunk/; revision=45214
2012-09-21Followup to r45034: Don't define _U_ on the compile line, pull it in fromJeff Morriss3-8/+7
config.h (like we do in cmake). We always HAVE_CONFIG_H so don't check for it. svn path=/trunk/; revision=45050
2012-09-21Revert r45018 and r45019: put config.h back in lemon.c and take _U_ back offJeff Morriss2-6/+3
the compile line when building with cmake. Put _U_'s definition in config.h when building with autofoo and on Windows. svn path=/trunk/; revision=45034
2012-09-20Fix lemon build with cmake by defining _U_. I feel like there's a betterEvan Huus1-0/+6
way than all the horrid escaping I had to do, but I don't know what it is. svn path=/trunk/; revision=45019
2012-09-20lemon is not compiled with HAVE_CONFIG_h so don't test for it nor try to ↵Jeff Morriss1-7/+4
include it. svn path=/trunk/; revision=45018
2012-07-13Fix Coverity CID 709600: Resource leak.Chris Maynard1-0/+1
svn path=/trunk/; revision=43694
2012-07-09From Martin Kaiser:Anders Broman1-3/+6
CID 280531: "Argument cannot be negative" in lemon https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7453 svn path=/trunk/; revision=43619
2012-06-28Update Free Software Foundation address.Jakub Zawadzki2-2/+2
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-02-02Include config.h in preparation of moving the definitionJörg Mayer1-0/+4
of _U_ from the compiler command line into config.h svn path=/trunk/; revision=40806
2012-01-29Add *.sbr files to the clean target.Anders Broman1-1/+1
svn path=/trunk/; revision=40763
2011-05-19Fix an old style function declaration warning.Jörg Mayer1-4/+2
svn path=/trunk/; revision=37278
2011-04-01Don't use pParser->yyidx as an index into pParser->yystack[] until after it isChris Maynard1-2/+3
verified that it is non-negative. Should resolve CID 619. svn path=/trunk/; revision=36431
2011-03-31Memory leak in lemon.cRonnie Sahlberg1-5/+5
coverity 1177 svn path=/trunk/; revision=36427
2011-03-22Allocate space for null termination in make_basename.Stig Bjørlykke1-2/+2
Coverity 710. svn path=/trunk/; revision=36247
2011-03-22Coverity 323Ronnie Sahlberg1-1/+1
Use strdup to copy a string literal we will free() later on. svn path=/trunk/; revision=36240
2011-02-02A bit of Windows makefiles rework and cleanup:Bill Meier1-1/+1
- Define macros for certain CFLAGS in config.nmake iso of having defs in each makefile; a. -DHAVE_CONFIG_H and -D_U_="" are now part of a macro named STANDARD_CFLAGS; b. -WX has been replaced by WARNINGS_ARE_ERRORS (defined as -WX in config.nmake) (This allows disabling "Warnings as Errors" by just changing config.nmake) c. CVARSDLL definitions (not usage) have been removed from the various makefiles. XXX: It appears the usage of CVARSDLL can also be removed (not yet done) since: -DWIN32 and -DNULL=0 do not appear to be needed (any more); -D_MT and _D_DLL are not needed since /MP causes these definitions. d. Define a macro WARNINGS_CFLAGS with additional specific compiler (level4) warnings to be enabled. E.G., 4295: array is too small to include a terminating null character - config.nmake: reformat some long lines for readability; - plugins\Makefile.nmake: clean-deps does nothing: remove it (and usage in top-level makefile); - dissectors/Makefile.nmake: test to enable packet-rrc.obj target needs to include MSVC2010 ... svn path=/trunk/; revision=35747
2011-02-01WIN32 ==> _WIN32Bill Meier1-1/+1
svn path=/trunk/; revision=35745
2010-05-26More <stdarg.h> cleanup; some are real bugs, some are just "don't doGuy Harris1-1/+1
va_start and va_end unless you're actually going to use the va_list" (those bring the va_start and va_end closer to the use point, which makes it a little more obvious that we're using <stdarg.h> correctly and makes it a little harder to use it incorrectly). svn path=/trunk/; revision=32963
2010-05-14Add Cmake stuff to the source distribution so more people can try it out.Jeff Morriss1-1/+2
svn path=/trunk/; revision=32807
2009-11-09Removed an unused assignment.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=30893
2009-11-07cmake will now honor -Werror if configured (default: on)Jörg Mayer1-0/+12
svn path=/trunk/; revision=30852
2009-10-29From Eric Sesterhenn via bug 4175:Stig Bjørlykke1-0/+2
Fixed fp leakage in error path. svn path=/trunk/; revision=30757
2009-10-20Removed some redundant prototypes and some shadowed variables.Stig Bjørlykke1-8/+3
svn path=/trunk/; revision=30632
2009-10-10Add tools/lemon/CMakeLists.txt which creates the lemon parser executableKovarththanan Rajaratnam1-0/+34
svn path=/trunk/; revision=30461
2009-06-08Move declaration of yymx.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=28660
2009-06-08Remove resetting useCnt in errsym, as it seems to disable some error checkingStig Bjørlykke1-1/+6
we need to validate the filter syntax. svn path=/trunk/; revision=28659
2008-08-12Fix a bunch of Win64 compilation errors by cowardly casting size_ts to ints.Gerald Combs1-16/+16
svn path=/trunk/; revision=25992
2008-07-29Update to sqlite lemon.c 1.60 and lempar.c 1.36Anders Broman2-71/+156
svn path=/trunk/; revision=25858
2008-06-04Suppress some unused-argument warnings.Guy Harris1-1/+1
svn path=/trunk/; revision=25422
2008-04-25Bug 2493: Fix (Part 1): Bill Meier1-1/+1
-TEXT_FUNC (const char *text) --> -TEXT_FUNC (char *text) To prevent Windows compiler error when using flex 2.5.35. (This also compiles OK for *NIX flex and for windows flex 2.5.4) svn path=/trunk/; revision=25172
2008-04-08Update Lemon to v1.54 and lempar to v 1.31 from sqlite ↵Anders Broman2-112/+186
http://www.sqlite.org/cvstrac/dir?d=sqlite/tool svn path=/trunk/; revision=24845
2008-04-07- Remove GLIB1 codeStephen Fisher1-1/+1
- Change ugly GLIB version checking statements to GLIB_CHECK_VERSION - Remove ws_strsplit files because we no longer need to borrow GLIB2's g_strsplit code for the no longer supported GLIB1 builds svn path=/trunk/; revision=24829
2008-03-23Running glib 2.16 on 32 bit platform requires this lempar.c change in ↵Jaap Keuter1-0/+6
addition to revision 24710. Makefiles updated to make new lempar.c effective in build rules. svn path=/trunk/; revision=24718
2007-11-27Update to sqlite lemon 1.51Anders Broman1-46/+62
svn path=/trunk/; revision=23629