]> git.puffer.fish Git - mirror/frr.git/commit
lib: Change frrscript_call to call function instead
authorDonald Lee <dlqs@gmx.com>
Sun, 4 Jul 2021 15:08:18 +0000 (23:08 +0800)
committerDonald Lee <dlqs@gmx.com>
Sat, 17 Jul 2021 22:32:03 +0000 (06:32 +0800)
commit40d038d2a1c8329c408c4fffd88e674413dfd427
treeec28b87470d1fd460f567fd367ddaf52e1f4d05c
parentf0cddf950f928b6f9a8d56c688235cea728fda41
lib: Change frrscript_call to call function instead

There is some rather heavy error checking logic in frrscript_call. Normally
I'd put this in the _frrscript_call function, but the error checking needs
to happen before the encoders/decoders in the macro are called.

The error checking looks messy but its really just nested ternary
expressions insite a larger statement expression.

Signed-off-by: Donald Lee <dlqs@gmx.com>
lib/frrscript.c
lib/frrscript.h