1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
/* Libreswan config file parser controls
* This header is for code using libipsecconf.
*
* Copyright (C) 2001-2002 Mathieu Lafon - Arkoon Network Security
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. See <https://www.gnu.org/licenses/gpl2.txt>.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*/
/* things from parser.l */
struct logger;
#include <limits.h> /* for PATH_MAX */
#include "lswcdefs.h" /* for PRINTF_LIKE() */
extern int lex_verbosity; /* how much tracing output to show */
extern char rootdir[PATH_MAX]; /* when evaluating paths, prefix this to them */
extern char rootdir2[PATH_MAX]; /* when evaluating paths, alternatively prefix this to them */
/* defined in parser.y */
void parser_warning(struct logger *logger, int eerror/*can be 0*/,
const char *s, ...) PRINTF_LIKE(3);
void parser_fatal(struct logger *logger, int eerror/*can be 0*/,
const char *s, ...) PRINTF_LIKE(3) NEVER_RETURNS;
/* Dirty trick to dodge bison version differences.
* Old bison (2.5) produces parser.tab.h without yydebug decl and no
* multiple-inclusion protection.
* New bison (2.6) is the opposite.
* So: if the wrapper symbol is missing, do the declarations here.
* Note: this header is sometimes included without parser.tab.h.
*/
#ifndef YY_YY_PARSER_TAB_H_INCLUDED
extern int yydebug; /* declared in bison 2.6 parser.tab.h but not 2.5 */
#endif
|