summaryrefslogtreecommitdiffstats
path: root/lib/defun_lex.l (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lib: fix some misc SA warningsQuentin Young2021-02-171-0/+4
| | | | | | | | - clippy.c: fix valid memleak - defun_lex.l: suppress warnings in generated code - northbound_cli.c: suppress warning in eldritch libyang macro Signed-off-by: Quentin Young <qlyoung@nvidia.com>
* *: introduce DEFPY_YANG & friendsRenato Westphal2020-08-031-0/+2
| | | | | | | | | | DEFPY_YANG will allow the CLI to identify which commands are YANG-modeled or not before executing them. This is going to be useful for the upcoming configuration back-off timer work that needs to commit pending configuration changes before executing a command that isn't YANG-modeled. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* lib/clippy: error out on unsupported bitsDavid Lamparter2019-06-121-2/+15
| | | | | | | | | clippy can't process #ifdef or similar bits inside of an argument list (e.g. within the braces of a DEFUN or DEFPY statement.) Improve error reporting to catch these cases instead of generating broken C code. Fixes: #3840 Signed-off-by: David Lamparter <equinox@diac24.net>
* lib: early-include "config.h" in flex lexersDavid Lamparter2018-09-091-1/+6
| | | | | | This is neccessary to get _FILE_OFFSET_BITS right. Signed-off-by: David Lamparter <equinox@diac24.net>
* lib: implement DEFPY_NOSHRenato Westphal2018-08-131-0/+1
| | | | | | This is the DEFPY equivalent of DEFUN_NOSH. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* lib, python: DEFPY_ATTR, DEFPY_HIDDENQuentin Young2018-04-101-0/+2
| | | | | | Add support for element attributes in DEFPY macros. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* lib: fix more warnings on *BSDRenato Westphal2018-02-021-1/+2
| | | | | | | | | | | | | | | | | * zebra/kernel_socket.c: include "rt.h" to provide the prototypes of kernel_init() and kernel_terminate(); * lib/prefix.h: remove the deprecation warning whenever ETHER_ADDR_LEN is used. isisd uses the ETHER_HDR_LEN constant which is defined in terms of ETHER_ADDR_LEN in the *BSD system headers. So, when building FRR on *BSD, we were getting several warnings because we were using ETHER_ADDR_LEN indirectly; * lib/command_lex.l, lib/defun_lex.l: ignore other harmless warnings; * lib/spf_backoff.c: cast 'tv->tv_usec' to 'long int' before printing. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* build: convert lib/ to non-recursive buildDavid Lamparter2017-07-311-1/+1
| | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* lib: clippy the assistantDavid Lamparter2017-06-141-0/+265
Wraps the command parsing code for Python, so we can use it to do fancy preprocessing and replace extract.pl. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>