summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2020-07-20 18:15:49 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2020-07-20 18:18:55 +0300
commitdc47ff5c3a8b593ab9d5e9e3aa68f62a7092561d (patch)
tree6d29e50c415ab2fc8d242436a7120fb8f789c5aa /lib/command.h
parent67ce4ba19b00eaa542d12c17c5da0652238a8049 (diff)
vtysh: rework DEFPY processing in extract.pl
Currently, all DEFPY commands are translated into one-liners in vtysh_cmd.c. After the patch, DEFPY commands are correctly indented just like DEFUN/ALIAS commands. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/command.h b/lib/command.h
index 21bb613540..1acca90665 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -328,18 +328,6 @@ struct cmd_node {
DEFUN_CMD_ELEMENT(funcname, cmdname, cmdstr, helpstr, \
CMD_ATTR_DEPRECATED, daemon)
-#else /* VTYSH_EXTRACT_PL */
-#define DEFPY(funcname, cmdname, cmdstr, helpstr) \
- DEFUN(funcname, cmdname, cmdstr, helpstr)
-
-#define DEFPY_NOSH(funcname, cmdname, cmdstr, helpstr) \
- DEFUN_NOSH(funcname, cmdname, cmdstr, helpstr)
-
-#define DEFPY_ATTR(funcname, cmdname, cmdstr, helpstr, attr) \
- DEFUN_ATTR(funcname, cmdname, cmdstr, helpstr, attr)
-
-#define DEFPY_HIDDEN(funcname, cmdname, cmdstr, helpstr) \
- DEFUN_HIDDEN(funcname, cmdname, cmdstr, helpstr)
#endif /* VTYSH_EXTRACT_PL */
/* Some macroes */