From f41b5392e61945d9c796a5717809ddd5d34d768a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 15 Sep 2013 00:07:51 +0000 Subject: [PATCH] Move prototypes into header. Approved by: re (blanket) --- contrib/unbound/util/config_file.c | 10 ---------- contrib/unbound/util/config_file.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/contrib/unbound/util/config_file.c b/contrib/unbound/util/config_file.c index b946f0df0dc..ebfb795c1d8 100644 --- a/contrib/unbound/util/config_file.c +++ b/contrib/unbound/util/config_file.c @@ -59,16 +59,6 @@ /** global config during parsing */ struct config_parser_state* cfg_parser = 0; -/** lex in file */ -extern FILE* ub_c_in; -/** lex out file */ -extern FILE* ub_c_out; -/** the yacc lex generated parse function */ -int ub_c_parse(void); -/** the lexer function */ -int ub_c_lex(void); -/** wrap function */ -int ub_c_wrap(void); /** init ports possible for use */ static void init_outgoing_availports(int* array, int num); diff --git a/contrib/unbound/util/config_file.h b/contrib/unbound/util/config_file.h index 69595cb50f2..e790cecb8e1 100644 --- a/contrib/unbound/util/config_file.h +++ b/contrib/unbound/util/config_file.h @@ -632,6 +632,16 @@ struct config_parser_state { /** global config parser object used during config parsing */ extern struct config_parser_state* cfg_parser; +/** lex in file */ +extern FILE* ub_c_in; +/** lex out file */ +extern FILE* ub_c_out; +/** the yacc lex generated parse function */ +int ub_c_parse(void); +/** the lexer function */ +int ub_c_lex(void); +/** wrap function */ +int ub_c_wrap(void); /** parsing helpers: print error with file and line numbers */ void ub_c_error(const char* msg); /** parsing helpers: print error with file and line numbers */