From d6c9cdd0ddc0eff9cd320ce887bf6f8e822bfaac Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Fri, 2 Dec 2016 18:26:10 +0000 Subject: [PATCH] lib: Add back prototypes for lexer helper funcs Signed-off-by: Quentin Young --- lib/command_parse.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/command_parse.y b/lib/command_parse.y index a5e582c73b..339e6be8f9 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); -- 2.39.5