diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2022-11-03 08:54:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-03 08:54:09 -0400 |
| commit | d7cde18c63c4eef83e12f562aa025cf1dbeaee05 (patch) | |
| tree | 591e68540bb026cfe9f212a69c150bfcfa8bbf36 /lib/command.h | |
| parent | 70f29b9f7bf157cd439518cba0ecd52efcf22429 (diff) | |
| parent | 6c7bc49428b594e0747af9813b4c510bd2817f4e (diff) | |
Merge pull request #12196 from opensourcerouting/xref-vtysh
*: rewrite `extract.pl` using `xref` infra
Diffstat (limited to 'lib/command.h')
| -rw-r--r-- | lib/command.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/command.h b/lib/command.h index f4168dedd7..31e5cad23f 100644 --- a/lib/command.h +++ b/lib/command.h @@ -251,9 +251,6 @@ struct cmd_node { /* Argc max counts. */ #define CMD_ARGC_MAX 256 -/* Turn off these macros when using cpp with extract.pl */ -#ifndef VTYSH_EXTRACT_PL - /* helper defines for end-user DEFUN* macros */ #define DEFUN_CMD_ELEMENT(funcname, cmdname, cmdstr, helpstr, attrs, dnum) \ static const struct cmd_element cmdname = { \ @@ -370,8 +367,6 @@ struct cmd_node { #define ALIAS_YANG(funcname, cmdname, cmdstr, helpstr) \ ALIAS_ATTR(funcname, cmdname, cmdstr, helpstr, CMD_ATTR_YANG) -#endif /* VTYSH_EXTRACT_PL */ - /* Some macroes */ /* @@ -511,7 +506,6 @@ struct xref_install_element { enum node_type node_type; }; -#ifndef VTYSH_EXTRACT_PL #define install_element(node_type_, cmd_element_) do { \ static const struct xref_install_element _xref \ __attribute__((used)) = { \ @@ -523,7 +517,6 @@ struct xref_install_element { XREF_LINK(_xref.xref); \ _install_element(node_type_, cmd_element_); \ } while (0) -#endif extern void _install_element(enum node_type, const struct cmd_element *); |
