mirror_frr/doc/developer
David Lamparter bf8d3d6aca *: require semicolon after DEFINE_MTYPE & co
Back when I put this together in 2015, ISO C11 was still reasonably new
and we couldn't require it just yet.  Without ISO C11, there is no
"good" way (only bad hacks) to require a semicolon after a macro that
ends with a function definition.  And if you added one anyway, you'd get
"spurious semicolon" warnings on some compilers...

With C11, `_Static_assert()` at the end of a macro will make it so that
the semicolon is properly required, consumed, and not warned about.

Consistently requiring semicolons after "file-level" macros matches
Linux kernel coding style and helps some editors against mis-syntax'ing
these macros.

Signed-off-by: David Lamparter <equinox@diac24.net>
2021-03-17 06:18:17 +01:00
..
_static doc: orange FRR theme 2019-02-18 14:39:13 +01:00
images pceplib: Integrate pcelib into frr 2021-03-05 12:12:47 +01:00
.gitignore doc: fix distclean 2018-05-18 19:35:24 +00:00
bgp-typecodes.rst doc: cleanup some misc files 2018-03-20 15:20:33 -04:00
bgpd.rst doc: cleanup some misc files 2018-03-20 15:20:34 -04:00
building-docker.rst doc: add docker image build instructions 2020-06-24 19:14:19 -04:00
building-frr-for-alpine.rst *: get rid of most daemons.conf references 2018-12-06 23:05:48 +01:00
building-frr-for-archlinux.rst doc: add libelf to build docs 2021-02-24 07:15:38 +01:00
building-frr-for-centos6.rst doc: add libelf to build docs 2021-02-24 07:15:38 +01:00
building-frr-for-centos7.rst doc: add libelf to build docs 2021-02-24 07:15:38 +01:00
building-frr-for-centos8.rst doc: add libelf to build docs 2021-02-24 07:15:38 +01:00
building-frr-for-debian8.rst doc: add libelf to build docs 2021-02-24 07:15:38 +01:00
building-frr-for-debian9.rst doc: add libelf to build docs 2021-02-24 07:15:38 +01:00
building-frr-for-fedora.rst doc: add libelf to build docs 2021-02-24 07:15:38 +01:00
building-frr-for-freebsd9.rst build: refactor & revamp python autoconf logic 2019-06-04 16:21:20 +02:00
building-frr-for-freebsd10.rst build: refactor & revamp python autoconf logic 2019-06-04 16:21:20 +02:00
building-frr-for-freebsd11.rst build: refactor & revamp python autoconf logic 2019-06-04 16:21:20 +02:00
building-frr-for-netbsd6.rst build: refactor & revamp python autoconf logic 2019-06-04 16:21:20 +02:00
building-frr-for-netbsd7.rst build: refactor & revamp python autoconf logic 2019-06-04 16:21:20 +02:00
building-frr-for-openbsd6.rst doc: remove unneeded build deps 2019-03-29 18:56:20 +00:00
building-frr-for-opensuse.rst doc: add libelf to build docs 2021-02-24 07:15:38 +01:00
building-frr-for-openwrt.rst doc: use anonymous link refs 2020-11-09 15:25:26 -05:00
building-frr-for-ubuntu1404.rst doc: add libelf to build docs 2021-02-24 07:15:38 +01:00
building-frr-for-ubuntu1604.rst doc: add libelf to build docs 2021-02-24 07:15:38 +01:00
building-frr-for-ubuntu1804.rst doc: add libelf to build docs 2021-02-24 07:15:38 +01:00
building-frr-for-ubuntu2004.rst Merge pull request #6807 from opensourcerouting/xref-extract 2021-03-09 07:58:43 -05:00
building-libyang.rst doc: fix rpm link under libyang help 2020-09-11 14:11:48 -04:00
building.rst doc: cross compilation guide 2021-02-03 14:33:56 -05:00
cli.rst doc: CLI source references backwards 2020-03-09 15:27:25 -04:00
conf.py *: reformat python files 2020-10-07 17:22:26 -04:00
cross-compiling.rst doc: fix warnings in dev docs 2021-03-16 11:27:59 -04:00
draft-zebra-00.ms doc: reorganize 2018-01-30 16:14:24 -05:00
fpm.rst doc: update FPM documentation 2020-04-17 20:18:54 -03:00
frr-release-procedure.rst doc: Update release procedure 2020-11-17 07:39:42 -05:00
fuzzing.rst doc: add docs on fuzzing stuff 2020-11-09 15:25:26 -05:00
grpc.rst doc: initial documentation for gRPC 2020-08-10 16:39:06 -03:00
hooks.rst doc: fix a couple of typos 2019-03-20 20:08:33 +01:00
include-compile.rst doc: pull out compile instructions into snippet 2019-03-25 20:21:10 +00:00
index.rst pceplib: Integrate pcelib into frr 2021-03-05 12:12:47 +01:00
ldpd-basic-test-setup.md doc: reorganize 2018-01-30 16:14:24 -05:00
library.rst doc/developer: xrefs 2021-02-01 17:28:11 +01:00
link-state.rst lib: Add Link State Database 2021-01-04 18:19:26 +01:00
lists.rst doc: add notes about hash table invariants 2020-09-08 12:10:10 -04:00
locking.rst doc: Fixup some missing syntax 2020-02-14 14:17:52 -05:00
logging.rst doc: update the FRR format table 2021-03-14 14:07:52 -03:00
Makefile build: non-recursive doc + parallel sphinx 2018-08-30 08:06:44 +02:00
memtypes.rst *: require semicolon after DEFINE_MTYPE & co 2021-03-17 06:18:17 +01:00
modules.rst doc: Fixup some missing syntax 2020-02-14 14:17:52 -05:00
next-hop-tracking.rst bgpd: Remove not used bgp_find_nexthop() function 2019-11-08 15:04:29 +02:00
ospf-api.rst doc: typo / grammar pass on OSPF API docs 2019-04-24 17:41:06 +00:00
ospf-sr.rst doc: Add TI-LFA developer docs 2021-01-19 15:32:13 +00:00
ospf.rst doc: make ospf section 2018-03-20 15:20:34 -04:00
packaging-debian.rst doc: move rpm build doc to dev docs 2019-03-22 16:08:28 +00:00
packaging-redhat.rst doc: Update RedHat packaging description to use Python 3 2020-01-25 23:00:47 +01:00
packaging.rst doc: update release procedure docs 2019-10-18 18:50:10 +00:00
path-internals-daemon.rst pathd: New SR-TE policy management daemon 2020-12-18 16:34:02 +01:00
path-internals-pcep.rst pathd: Add optional support for PCEP to pathd 2020-12-18 16:47:52 +01:00
path-internals.rst pathd: Add optional support for PCEP to pathd 2020-12-18 16:47:52 +01:00
path.rst pathd: New SR-TE policy management daemon 2020-12-18 16:34:02 +01:00
pceplib.rst pceplib: Integrate pcelib into frr 2021-03-05 12:12:47 +01:00
process-architecture.rst doc: clarify independence of THREAD_READ and _WRITE 2020-09-14 11:01:44 -04:00
rcu.rst lib: RCU 2019-07-31 03:34:09 +02:00
release-announcement-template.md doc: update release procedure docs 2019-10-18 18:50:10 +00:00
scripting.rst doc: fix warnings in dev docs 2021-03-16 11:27:59 -04:00
static-linking.rst doc: Fix borked up syntax for static-linking 2020-02-14 14:18:38 -05:00
subdir.am doc: add more notes about new topotests 2021-03-16 11:28:25 -04:00
testing.rst doc: clean up && index topotest json docs 2019-11-04 18:51:31 +00:00
topotests-jsontopo.rst doc: topotest json typo error 2020-11-19 13:18:22 +00:00
topotests-markers.rst doc: topotests-markers typo error 2021-01-27 19:45:31 +00:00
topotests-snippets.rst doc: fix a couple of typos 2019-03-20 20:08:33 +01:00
topotests.rst doc: add more notes about new topotests 2021-03-16 11:28:25 -04:00
tracing.rst doc: fix indent depth in tracing doc 2021-02-24 14:53:33 -05:00
vtysh.rst doc: fix a couple of typos 2019-03-20 20:08:33 +01:00
workflow.rst Merge pull request #8128 from qlyoung/docs-cleanup 2021-02-24 16:53:42 -05:00
xrefs.rst doc: quick HOWTO on python/xrelfo.py 2021-02-23 16:56:58 +01:00
zebra.rst lib, zebra: add support for sending ARP requests 2020-08-12 23:19:58 +02:00