summaryrefslogtreecommitdiff
path: root/src/sp_config_scanner.re (follow)
AgeCommit message (Collapse)Author
2024-06-06Add format attribute to log function and adjust format specifiersChristian Göttsche
Annotate the common logging function sp_log_msgf() with the format attribute so compilers can check the used format string and passed arguments for discrepancies. Adjust the lineno printing by using %zu and the type size_t consistently.
2024-06-06Avoid dropping const qualifier in castsChristian Göttsche
Adjusts casts to void dropping const qualifiers. This helps to avoid mistakes, e.g. modifying string literals. Also use size_t for length, similar to the upstream php interfaces.
2023-04-29Improve how the parser is generatedjvoisin
- use long variant of options for re2c in its makefile - use `define` instead of magic numbers - add some consts - trailing `;` are now mandatory for conditions - NULL bytes are no longer allowed in configuration file - the parser shouldn't crash in the absence of trailing new line at the end of its configuration file
2022-05-15Silence a false positive in gccjvoisin
2022-05-06Another constify passjvoisin
2021-12-20allow '@set' as a synonym for 'set' in rules filesBen Fuhrmannek
2021-12-20make set + @log/@info/@error conditionalBen Fuhrmannek
2021-12-20added @warn/@err to config syntaxBen Fuhrmannek
2021-11-30added @log logging feature to config parserBen Fuhrmannek
2021-10-21fix oob memory accessBen Fuhrmannek
2021-09-02fixed compiler warnings + test casesBen Fuhrmannek
2021-09-01implemented proper operand precedence using the shunting yard algorithmBen Fuhrmannek
2021-08-31basic condition suuport for rules filesBen Fuhrmannek
2021-08-16config supports variables nowBen Fuhrmannek
2021-08-16fincy new scanner/parser for config rules + fixed a few bugs along the way + ↵Ben Fuhrmannek
fixed related unittests