summaryrefslogtreecommitdiffstats
path: root/tools/permutations.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tools: null check (Coverity 1399484)F. Aragon2018-09-201-1/+2
| | | | | | | Fixed using XCALLOC(MTYPE_TMP, ...) instead of calloc(...) because of the error handling (XCALLOC checks + log + abort through memory_oom()) Signed-off-by: F. Aragon <paco@voltanet.io>
* *: fix config.h/zebra.h include orderDavid Lamparter2018-09-081-0/+4
| | | | | | | | config.h (or, transitively, zebra.h) must be the first include file listed for autoconf things like _GNU_SOURCE and _POSIX_C_SOURCE to work correctly. Signed-off-by: David Lamparter <equinox@diac24.net>
* *: reindentreindent-master-afterwhitespace / reindent2017-07-171-61/+53
| | | | | | indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: make consistent & update GPLv2 file headersDavid Lamparter2017-05-151-4/+3
| | | | | | | | | | | The FSF's address changed, and we had a mixture of comment styles for the GPL file header. (The style with * at the beginning won out with 580 to 141 in existing files.) Note: I've intentionally left intact other "variations" of the copyright header, e.g. whether it says "Zebra", "Quagga", "FRR", or nothing. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* lib: parser: split off & rename graph handlingDavid Lamparter2017-05-151-2/+2
| | | | | | | Put core CLI graph stuff in lib/command_graph.[ch] and consistently prefix all function names with "cmd_". Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* - Solve the Coverity Scan PW.ASSIGN_WHERE_COMPARE_MEANTHung-Weic Chiu2017-05-101-1/+4
| | | | | | - Minor refactoring Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
* lib: fix 'list permutations'Quentin Young2017-05-051-36/+21
| | | | | | | | | Cyclic graphs ftw Also remove graph pretty printer from permutations.c 'cause it's not really needed anymore Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* lib: parser: simplify OPTION_TKN & SELECTOR_TKNDavid Lamparter2017-01-231-1/+1
| | | | | | These are functionally identical as "fork" tokens. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* lib: move command_parse_format prototypeDavid Lamparter2016-12-011-1/+0
| | | | | | | | The function prototype for command_parse_format() is better left in command.h, so that the bison-generated header file doesn't need to be included for that. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* tools: Update permutations generator for hidden/deprecatedQuentin Young2016-11-111-1/+1
| | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* tools: Pretty print graph after input permutationsQuentin Young2016-10-071-1/+33
| | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* tools: add copyright header & usage to permutationsQuentin Young2016-10-021-11/+35
| | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* tools: add command permutations generatorQuentin Young2016-10-021-0/+57
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>