Skip to content

Commit e26c580

Browse files
eqvinoxdonaldsharp
authored andcommitted
vtysh: de-conditionalize and reorder install_node
There is entirely no point to these being conditional. And pull them up so the upcoming pre-parse code can work on a clean slate. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
1 parent ece3132 commit e26c580

File tree

3 files changed

+78
-109
lines changed

3 files changed

+78
-109
lines changed

lib/command.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ struct cmd_node {
252252
/* Argc max counts. */
253253
#define CMD_ARGC_MAX 256
254254

255+
/* clang-format off */
256+
255257
/* helper defines for end-user DEFUN* macros */
256258
#define DEFUN_CMD_ELEMENT(funcname, cmdname, cmdstr, helpstr, attrs, dnum) \
257259
static const struct cmd_element cmdname = { \
@@ -376,6 +378,8 @@ struct cmd_node {
376378
#define ALIAS_YANG(funcname, cmdname, cmdstr, helpstr) \
377379
ALIAS_ATTR(funcname, cmdname, cmdstr, helpstr, CMD_ATTR_YANG)
378380

381+
/* clang-format on */
382+
379383
/* Some macroes */
380384

381385
/*

0 commit comments

Comments
 (0)