Skip to content

Commit

Permalink
vtysh: de-conditionalize and reorder install_node
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
eqvinox authored and donaldsharp committed Jul 31, 2024
1 parent ece3132 commit e26c580
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 109 deletions.
4 changes: 4 additions & 0 deletions lib/command.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ struct cmd_node {
/* Argc max counts. */
#define CMD_ARGC_MAX 256

/* clang-format off */

/* helper defines for end-user DEFUN* macros */
#define DEFUN_CMD_ELEMENT(funcname, cmdname, cmdstr, helpstr, attrs, dnum) \
static const struct cmd_element cmdname = { \
Expand Down Expand Up @@ -376,6 +378,8 @@ struct cmd_node {
#define ALIAS_YANG(funcname, cmdname, cmdstr, helpstr) \
ALIAS_ATTR(funcname, cmdname, cmdstr, helpstr, CMD_ATTR_YANG)

/* clang-format on */

/* Some macroes */

/*
Expand Down
Loading

0 comments on commit e26c580

Please sign in to comment.