]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: Add back prototypes for lexer helper funcs
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 2 Dec 2016 18:26:10 +0000 (18:26 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 2 Dec 2016 18:26:10 +0000 (18:26 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/command_parse.y

index a5e582c73b5031c1ebfe1db51b922ad312ac26dd..339e6be8f981185caf637c5466b2eb935ca9e968 100644 (file)
@@ -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);