Commit Graph

107 Commits

Author SHA1 Message Date
Jörg Mayer 1ac8e97ff8 Fix an old style function declaration warning.
svn path=/trunk/; revision=37278
2011-05-19 04:42:57 +00:00
Chris Maynard c236db55fe Don't use pParser->yyidx as an index into pParser->yystack[] until after it is
verified that it is non-negative.  Should resolve CID 619.

svn path=/trunk/; revision=36431
2011-04-01 16:55:59 +00:00
Ronnie Sahlberg f4d68c6a08 Memory leak in lemon.c
coverity 1177


svn path=/trunk/; revision=36427
2011-03-31 20:50:13 +00:00
Stig Bjørlykke feb0a4aeaa Allocate space for null termination in make_basename.
Coverity 710.

svn path=/trunk/; revision=36247
2011-03-22 11:46:19 +00:00
Ronnie Sahlberg dddec126f6 Coverity 323
Use strdup to copy a string literal we will free() later on.



svn path=/trunk/; revision=36240
2011-03-22 09:12:57 +00:00
Bill Meier d3efa3ed9f A bit of Windows makefiles rework and cleanup:
- 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-02 01:19:53 +00:00
Bill Meier b0aac9d9c2 WIN32 ==> _WIN32
svn path=/trunk/; revision=35745
2011-02-01 23:02:54 +00:00
Guy Harris 347e7a0052 More <stdarg.h> cleanup; some are real bugs, some are just "don't do
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-26 02:25:13 +00:00
Jeff Morriss 54082c6ed0 Add Cmake stuff to the source distribution so more people can try it out.
svn path=/trunk/; revision=32807
2010-05-14 16:27:03 +00:00
Stig Bjørlykke 17f62a4e1d Removed an unused assignment.
svn path=/trunk/; revision=30893
2009-11-09 14:25:29 +00:00
Jörg Mayer 9ee31d1d0e cmake will now honor -Werror if configured (default: on)
svn path=/trunk/; revision=30852
2009-11-07 10:07:00 +00:00
Stig Bjørlykke fd1a8138cb From Eric Sesterhenn via bug 4175:
Fixed fp leakage in error path.

svn path=/trunk/; revision=30757
2009-10-29 11:23:04 +00:00
Stig Bjørlykke 39c732d8bf Removed some redundant prototypes and some shadowed variables.
svn path=/trunk/; revision=30632
2009-10-20 09:31:07 +00:00
Kovarththanan Rajaratnam ee95203649 Add tools/lemon/CMakeLists.txt which creates the lemon parser executable
svn path=/trunk/; revision=30461
2009-10-10 05:51:08 +00:00
Stig Bjørlykke 7678317238 Move declaration of yymx.
svn path=/trunk/; revision=28660
2009-06-08 11:54:38 +00:00
Stig Bjørlykke 618153d40f Remove resetting useCnt in errsym, as it seems to disable some error checking
we need to validate the filter syntax.

svn path=/trunk/; revision=28659
2009-06-08 10:03:41 +00:00
Gerald Combs e7a8150c7b Fix a bunch of Win64 compilation errors by cowardly casting size_ts to ints.
svn path=/trunk/; revision=25992
2008-08-12 21:25:19 +00:00
Anders Broman 27111e59f3 Update to sqlite lemon.c 1.60 and lempar.c 1.36
svn path=/trunk/; revision=25858
2008-07-29 12:40:03 +00:00
Guy Harris 9fb914942a Suppress some unused-argument warnings.
svn path=/trunk/; revision=25422
2008-06-04 00:35:30 +00:00
Bill Meier ff52380765 Bug 2493: Fix (Part 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-25 17:24:29 +00:00
Anders Broman 25b308442d Update Lemon to v1.54 and lempar to v 1.31 from sqlite http://www.sqlite.org/cvstrac/dir?d=sqlite/tool
svn path=/trunk/; revision=24845
2008-04-08 09:54:19 +00:00
Stephen Fisher 726a1caaf1 - Remove GLIB1 code
- 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-04-07 05:22:54 +00:00
Jaap Keuter 098d297303 Running glib 2.16 on 32 bit platform requires this lempar.c change in addition to revision 24710.
Makefiles updated to make new lempar.c effective in build rules.

svn path=/trunk/; revision=24718
2008-03-23 08:58:52 +00:00
Anders Broman 593735b96e Update to sqlite lemon 1.51
svn path=/trunk/; revision=23629
2007-11-27 21:25:32 +00:00
Guy Harris cab450519f If YY_SKIP_YYWRAP is defined, don't bother defining WRAP_FUNC - with
flex 2.5.31, WRAP_FUNC will end up being defined as a value that, when
used as a function-style macro, expands to 1, so the definition of
WRAP_FUNC will get a syntax error.

svn path=/trunk/; revision=22428
2007-07-31 01:24:26 +00:00
Graham Bloice 85c33a07cb Remove build detritus
svn path=/trunk/; revision=21347
2007-04-06 15:51:36 +00:00
Stephen Fisher 46b8669566 Fix a bunch more warnings. Add -Werror when using --with-warnings-as-errors
under gcc to tools/lemon, plugins/mate and epan/


svn path=/trunk/; revision=21204
2007-03-26 06:10:52 +00:00
Ulf Lamping 3575d95342 set "treat warnings as errors" CFLAGS, no warning were in this dir :-)
svn path=/trunk/; revision=21183
2007-03-25 15:39:06 +00:00
Ulf Lamping 3dfa722849 fix warnings of (generated) grammar.c
svn path=/trunk/; revision=21146
2007-03-23 03:45:18 +00:00
Luis Ontanon 9a64c881a1 squelch signedness warnings generated by generated code due to mayors being decleared as signed but added as signed in tables (it will generate larger tables when the number of tokens or actions is more than MAX_INT8, MAX_INT16).
svn path=/trunk/; revision=21138
2007-03-23 00:15:48 +00:00
Ulf Lamping e28d403669 add type casts to fix two warnings
svn path=/trunk/; revision=21137
2007-03-22 23:50:38 +00:00
Luis Ontanon 0006c73c8d squelch a warning generated by generated code
svn path=/trunk/; revision=21134
2007-03-22 23:39:02 +00:00
Bill Meier 04d29de81d Fix Windows Makefiles so clean removes all pdb files (PDB_FILE no longer defined)
svn path=/trunk/; revision=21052
2007-03-18 15:36:22 +00:00
Jörg Mayer 711cb02a80 Nikns Siankin: Fix for http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1387
svn path=/trunk/; revision=20874
2007-02-20 17:40:07 +00:00
Luis Ontanon 822594e0ce do not use an uninitialized rp->line to generate destructor code for rules without code.
svn path=/trunk/; revision=20737
2007-02-07 16:08:19 +00:00
Luis Ontanon d1c6370f9b It looks that their fix to my fix broke things out...
svn path=/trunk/; revision=20452
2007-01-16 16:41:12 +00:00
Luis Ontanon 74ed71d648 update to lemon.c 1.43
svn path=/trunk/; revision=20447
2007-01-16 05:38:55 +00:00
Luis Ontanon 47730bc1e8 Fix a major leakage of token minors in lemon generated parsers due to the fact that lemon was not genmerating destructor code for elements in the RHS of rules without C-code.
svn path=/trunk/; revision=20442
2007-01-15 19:48:06 +00:00
Anders Broman a0b76c2fa2 Update to the latest versions from sqlite.
svn path=/trunk/; revision=19932
2006-11-19 16:24:18 +00:00
Jörg Mayer dd26a7021b nikai@nikai.net:
Remaining fixes from:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1225

svn path=/trunk/; revision=19895
2006-11-14 20:32:29 +00:00
Guy Harris 9e184d0a13 xxx_PROGRAMS variables have the name of the program without $(EXEEXT).
Update Gerald's address.

svn path=/trunk/; revision=19796
2006-11-04 20:37:16 +00:00
Michael Tüxen c256574f2c Fixes ./autogen.sh on Mac OS X...
svn path=/trunk/; revision=19782
2006-11-03 10:12:36 +00:00
Jörg Mayer 63f00dfdc7 Robert Schwebel:
Fix for http://bugs.wireshark.org/bugzilla/attachment.cgi?id=419&action=view
  cross compilation fails

With the following change: Use only AC_CANONICAL_TARGET

From the autoconf manual:
     The user is encouraged to use either `AC_CANONICAL_BUILD', or
     `AC_CANONICAL_HOST', or `AC_CANONICAL_TARGET', depending on the
     needs.  Using `AC_CANONICAL_TARGET' is enough to run the two other
     macros.


svn path=/trunk/; revision=19753
2006-10-31 11:35:55 +00:00
Anders Broman 903a75ff72 Update lempar to sqlittes version 1.18
http://www.sqlite.org/cvstrac/rlog?f=sqlite/tool/lempar.c

svn path=/trunk/; revision=18815
2006-08-01 21:29:05 +00:00
Gerald Combs 4ed6fc0bc3 Ethereal -> Wireshark
svn path=/trunk/; revision=18374
2006-06-06 23:27:21 +00:00
Gerald Combs b15974d094 libethereal -> libwireshark. idl2eth -> idl2wrs. There are a _lot_ of
changes here.  It compiles OK on OS X, but hasn't been tested anywhere else.

svn path=/trunk/; revision=18260
2006-05-31 00:23:01 +00:00
Ronnie Sahlberg 89f022b12b name change
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Anders Broman 699146b353 Doc update from Sqlite
svn path=/trunk/; revision=17707
2006-03-23 17:01:51 +00:00
Guy Harris ed351b85c1 Use "opt_func_string_t" so that we get some more type checking done.
Use safe_ versions of <ctype.h> macros, so we don't get hosed by
characters with the 8th bit set.

Define "tplt_linedir()" with a function prototype.

Constify some stuff to squelch compiler warnings.

svn path=/trunk/; revision=17694
2006-03-21 23:55:30 +00:00
Guy Harris 7a2997ff83 Make it a bit more like the SQLite lemon.c 1.36.
Get rid of some function pointer casting.

Get rid of an unused routine, and make some routines static.

Remove trailing white space.

svn path=/trunk/; revision=17693
2006-03-21 23:17:15 +00:00