mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 01:47:29 +00:00
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:
parent
8af5502876
commit
2ab402707f
@ -39,7 +39,6 @@
|
|||||||
#include "workqueue.h"
|
#include "workqueue.h"
|
||||||
#include "vrf.h"
|
#include "vrf.h"
|
||||||
#include "command_match.h"
|
#include "command_match.h"
|
||||||
#include "command_parse.h"
|
|
||||||
#include "qobj.h"
|
#include "qobj.h"
|
||||||
|
|
||||||
DEFINE_MTYPE( LIB, HOST, "Host config")
|
DEFINE_MTYPE( LIB, HOST, "Host config")
|
||||||
|
@ -431,6 +431,8 @@ del_cmd_token (struct cmd_token *);
|
|||||||
struct cmd_token *
|
struct cmd_token *
|
||||||
copy_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. */
|
/* Export typical functions. */
|
||||||
extern const char *host_config_get (void);
|
extern const char *host_config_get (void);
|
||||||
extern void host_config_set (const char *);
|
extern void host_config_set (const char *);
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#include <zebra.h>
|
#include <zebra.h>
|
||||||
|
|
||||||
#include "command_match.h"
|
#include "command_match.h"
|
||||||
#include "command_parse.h"
|
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
|
|
||||||
DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens")
|
DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens")
|
||||||
|
@ -51,8 +51,6 @@
|
|||||||
|
|
||||||
/* functionality this unit exports */
|
/* functionality this unit exports */
|
||||||
%code provides {
|
%code provides {
|
||||||
void
|
|
||||||
command_parse_format (struct graph *, struct cmd_element *);
|
|
||||||
|
|
||||||
/* maximum length of a number, lexer will not match anything longer */
|
/* maximum length of a number, lexer will not match anything longer */
|
||||||
#define DECIMAL_STRLEN_MAX 20
|
#define DECIMAL_STRLEN_MAX 20
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
#include "graph.h"
|
#include "graph.h"
|
||||||
#include "command_parse.h"
|
|
||||||
#include "vector.h"
|
#include "vector.h"
|
||||||
|
|
||||||
#define USAGE "usage: permutations <cmdstr>"
|
#define USAGE "usage: permutations <cmdstr>"
|
||||||
|
Loading…
Reference in New Issue
Block a user