summaryrefslogtreecommitdiffstats
path: root/python/firstheader.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: auto-convert to SPDX License IDsDavid Lamparter2023-02-091-14/+1
| | | | | | Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: make sure `config.h` or `zebra.h` is firstDavid Lamparter2021-04-231-16/+76
| | | | | | | | | | | | `config.h` has all the defines from autoconf, which may include things that switch behavior of other included headers (e.g. _GNU_SOURCE enabling prototypes for additional functions.) So, the first include in any `.c` file must be either `config.h` (with the appropriate guard) or `zebra.h` (which includes `config.h` first thing.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: reformat python fileswhitespace2020-10-071-7/+7
| | | | | | We are now using black. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
* python: add check-first-header toolDavid Lamparter2020-04-271-0/+30
The first #include statement in all FRR .c files should be either zebra.h or config.h. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>