summaryrefslogtreecommitdiffstats
path: root/lib/command_parse.y
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-12-02 19:26:10 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-12-02 19:26:10 +0100
commitd6c9cdd0ddc0eff9cd320ce887bf6f8e822bfaac (patch)
treeaf2f18ab1164da179973ce9da3ad5cd3de182b18 /lib/command_parse.y
parentlib: remove misleading copy/del_cmd_element (diff)
downloadfrr-d6c9cdd0ddc0eff9cd320ce887bf6f8e822bfaac.tar.xz
frr-d6c9cdd0ddc0eff9cd320ce887bf6f8e822bfaac.zip
lib: Add back prototypes for lexer helper funcs
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--lib/command_parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/command_parse.y b/lib/command_parse.y
index a5e582c73..339e6be8f 100644
--- a/lib/command_parse.y
+++ b/lib/command_parse.y
@@ -58,6 +58,9 @@ typedef union CMD_YYSTYPE CMD_YYSTYPE;
/* pointers to copy of command docstring */
char *docstr_start, *docstr;
};
+
+ extern void set_lexer_string (yyscan_t *scn, const char *string);
+ extern void cleanup_lexer (yyscan_t *scn);
}
/* functionality this unit exports */
@@ -100,9 +103,6 @@ typedef union CMD_YYSTYPE CMD_YYSTYPE;
%code {
- extern void set_lexer_string (yyscan_t *scn, const char *string);
- extern void cleanup_lexer (yyscan_t *scn);
-
/* bison declarations */
void
cmd_yyerror (struct parser_ctx *ctx, char const *msg);