lib: move command_parse_format prototype

The function prototype for command_parse_format() is better left in
command.h, so that the bison-generated header file doesn't need to be
included for that.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2016-11-23 08:42:27 +01:00
parent 8af5502876
commit 2ab402707f
5 changed files with 2 additions and 5 deletions

View File

@ -39,7 +39,6 @@
#include "workqueue.h"
#include "vrf.h"
#include "command_match.h"
#include "command_parse.h"
#include "qobj.h"
DEFINE_MTYPE( LIB, HOST, "Host config")

View File

@ -431,6 +431,8 @@ del_cmd_token (struct cmd_token *);
struct cmd_token *
copy_cmd_token (struct cmd_token *);
extern void command_parse_format (struct graph *graph, struct cmd_element *cmd);
/* Export typical functions. */
extern const char *host_config_get (void);
extern void host_config_set (const char *);

View File

@ -25,7 +25,6 @@
#include <zebra.h>
#include "command_match.h"
#include "command_parse.h"
#include "memory.h"
DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens")

View File

@ -51,8 +51,6 @@
/* functionality this unit exports */
%code provides {
void
command_parse_format (struct graph *, struct cmd_element *);
/* maximum length of a number, lexer will not match anything longer */
#define DECIMAL_STRLEN_MAX 20

View File

@ -23,7 +23,6 @@
#include "command.h"
#include "graph.h"
#include "command_parse.h"
#include "vector.h"
#define USAGE "usage: permutations <cmdstr>"