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>
#include "workqueue.h"
#include "vrf.h"
#include "command_match.h"
-#include "command_parse.h"
#include "qobj.h"
DEFINE_MTYPE( LIB, HOST, "Host config")
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 *);
#include <zebra.h>
#include "command_match.h"
-#include "command_parse.h"
#include "memory.h"
DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens")
/* 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
#include "command.h"
#include "graph.h"
-#include "command_parse.h"
#include "vector.h"
#define USAGE "usage: permutations <cmdstr>"