From: Quentin Young Date: Fri, 2 Dec 2016 18:26:10 +0000 (+0000) Subject: lib: Add back prototypes for lexer helper funcs X-Git-Tag: frr-3.0-branchpoint~133^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d6c9cdd0ddc0eff9cd320ce887bf6f8e822bfaac;p=mirror_frr.git lib: Add back prototypes for lexer helper funcs Signed-off-by: Quentin Young --- 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);