summaryrefslogtreecommitdiff
path: root/src/lemon.c
Commit message (Collapse)AuthorAgeFilesLines
* [core] _WIN32 casts to quiet some VS warningsGlenn Strauss2023-05-031-0/+4
|
* [multiple] quiet some coverity false positivesGlenn Strauss2023-01-131-2/+1
|
* [lemon] fix -Wpendantic warnings for bad castsGlenn Strauss2023-01-131-26/+27
| | | | | | | warning: ISO C forbids conversion of function pointer to object pointer type [-Wpedantic] warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic] store funcion pointers in struct in a void(*)(), not a (char *)
* [lemon] upgrade LEMON parser to SQLite maint verGlenn Strauss2023-01-091-1203/+2652
| | | | | | | | | The LEMON parser is maintained as part of SQLite https://www.sqlite.org/src/file/tool/lemon.c https://www.sqlite.org/src/file/tool/lempar.c (committed files are directly from above, but with excess whitespace removed before line ends)
* [lemon] silence coverity warningsGlenn Strauss2022-01-061-3/+11
|
* [multiple] correct misspellings in commentsGlenn Strauss2020-07-081-8/+8
| | | | | | x-ref: "Script for fixing spelling errors with codespell" https://redmine.lighttpd.net/boards/3/topics/8947
* [multiple] address coverity warningsGlenn Strauss2020-01-261-4/+4
|
* [core] workaround Coverity cov-build bug with gcc7Glenn Strauss2018-08-121-0/+8
| | | | | | | workaround Coverity cov-build bug with gcc 7 where Coverity does not support _Floatx typedefs https://stackoverflow.com/questions/50434236/coverity-scan-fails-to-build-stdlib-h-with-gnu-source-defined
* [meson] new build systemStefan Bühler2017-10-281-3/+6
| | | | Needed to extend lemon to take an output path parameter.
* [lemon] fix gcc implicit-fallthrough warningStefan Bühler2017-10-031-1/+1
|
* [lemon] standalone; remove #include "first.h"Glenn Strauss2016-10-201-11/+5
| | | | also remove extern declarations for functions from standard headers
* build: use CC_FOR_BUILD for lemon when cross-compilingAndreas Oberritter2016-10-201-7/+1
|
* [CMake] fix clang -Wcast-align warnings in lemon.cGlenn Strauss2016-09-231-11/+7
|
* silence warnings from clang ccc-analyzerGlenn Strauss2016-09-231-15/+36
| | | | | rewrite some (generally correct) code for clang ccc-analyzer to be able to recognize the patterns instead of issuing spurious warnings.
* consistent inclusion of config.h at top of files (fixes #2073)Glenn Strauss2016-03-191-4/+2
| | | | | | From: Glenn Strauss <gstrauss@gluelogic.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3113 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix/silence bugs reported by ccc-analyzer (clang)Stefan Bühler2013-11-131-4/+6
| | | | | | | | | | | | | | | | | | | | | These should all be non critical: * memory leaks on startup in error cases (which lead to immediate shutdowns anyway) * http_auth/ldap: passing uninitialized "ret" to ldap_err2string * sizeof(T) not matching the target pointer in malloc/calloc calls; those cases were either: * T being the wrong pointer type - shouldn't matter as long as all pointers have same size * T being larger than the type needed * mod_accesslog: direct use after free in cleanup (server shutdown); could crash before "clean" shutdown * some false positives (mod_compress, mod_expire) * assert(srv->config_context->used > 0); - this is always the case, as there is always a global config block From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2920 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix undefined stuff found with clangStefan Bühler2013-05-151-5/+5
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2873 152afb58-edef-0310-8abb-c4023f1b3aa9
* [lemon] Use void* as generic pointer instead of char*.Cyril Brulebois2012-08-311-1/+1
| | | | | | | | | | | Action_add() takes a char* as last parameter, which leads clang to emit warnings about incompatible pointer types: lemon.c:838:34: […] 'struct state *' to parameter of type 'char *' lemon.c:939:57: […] 'struct rule *' to parameter of type 'char *' Signed-off-by: Cyril Brulebois <kibi@debian.org> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2846 152afb58-edef-0310-8abb-c4023f1b3aa9
* Use NULL instead of 0 where pointers are expected.Cyril Brulebois2012-08-311-2/+2
| | | | | | | | | There are 6 remaining occurrences after this commit, in mod_compress, due to zlib's Z_NULL being defined as 0 instead of NULL. Signed-off-by: Cyril Brulebois <kibi@debian.org> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2845 152afb58-edef-0310-8abb-c4023f1b3aa9
* Fixed some small non-critical leaks reported by cppcheckStefan Bühler2009-09-011-0/+2
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2618 152afb58-edef-0310-8abb-c4023f1b3aa9
* Fix issues found with clang analyzerStefan Bühler2009-07-211-6/+11
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2594 152afb58-edef-0310-8abb-c4023f1b3aa9
* Fix lemon compiler warningsStefan Bühler2009-04-281-15/+17
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2495 152afb58-edef-0310-8abb-c4023f1b3aa9
* Fixed many warnings (compare (un)signed, unused vars, and initialize with zero)Stefan Bühler2008-04-291-5/+20
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2160 152afb58-edef-0310-8abb-c4023f1b3aa9
* - white space cleanup part 2 this time 1.4 ;)Marcus Rückert2006-10-041-19/+19
| | | | | | i hope it helps with merging stuff back to 1.5 git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1371 152afb58-edef-0310-8abb-c4023f1b3aa9
* make ucbcc on sol9 happy as B_TRUE and B_FALSE are defined somewhereJan Kneschke2005-08-311-10/+10
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@658 152afb58-edef-0310-8abb-c4023f1b3aa9
* removed warnings about shadowed variablesJan Kneschke2005-02-281-10/+9
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@47 152afb58-edef-0310-8abb-c4023f1b3aa9
* moved everything below trunk/ and added branches/ and tags/Jan Kneschke2005-02-201-0/+4397
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@30 152afb58-edef-0310-8abb-c4023f1b3aa9