From: Lou Berger Date: Tue, 6 Mar 2018 18:25:33 +0000 (-0500) Subject: lib: change comment block to #define to avoid indent.py from breaking comment X-Git-Tag: frr-5.0-dev~184^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e894f9fd92f83d611bc7869de775e869d12ec578;p=matthieu%2Ffrr.git lib: change comment block to #define to avoid indent.py from breaking comment due to DEFUN within comment Signed-off-by: Lou Berger --- diff --git a/lib/ferr.h b/lib/ferr.h index c4f83f1710..94a4de2f90 100644 --- a/lib/ferr.h +++ b/lib/ferr.h @@ -166,14 +166,15 @@ void vty_print_error(struct vty *vty, ferr_r err, const char *msg, ...); #define CMD_FERR_GOTO(func, label, ...) \ CMD_FERR_DO(func, goto label, __VA_ARGS__) -/* example: - +/* example: uses bogus #define to keep indent.py happy */ +#ifdef THIS_IS_AN_EXAMPLE ferr_r foo_bar_set(struct object *obj, int bar) { if (bar < 1 || bar >= 100) - return ferr_config_invalid("bar setting (%d) must be 0bar = bar; - if (ioctl (obj->fd, bar)) + if (ioctl(obj->fd, bar)) return ferr_system_errno("couldn't set bar to %d", bar); return ferr_ok(); @@ -186,6 +187,6 @@ DEFUN("bla") return CMD_SUCCESS; } -*/ +#endif /* THIS_IS_AN_EXAMPLE */ #endif /* _FERR_H */