diff --git a/src/sslutils/lex.namespaces.c b/src/sslutils/lex.namespaces.c index af359bf9..646156af 100644 --- a/src/sslutils/lex.namespaces.c +++ b/src/sslutils/lex.namespaces.c @@ -1410,6 +1410,7 @@ static yyconst flex_int16_t yy_rule_linenum[15] = #include #include "parsertypes.h" +#include "lexparse.h" #include "namespaces.h" #ifndef strndup extern char *strndup(const char*, size_t); diff --git a/src/sslutils/lex.signing.c b/src/sslutils/lex.signing.c index 6906a5ad..e32364d7 100644 --- a/src/sslutils/lex.signing.c +++ b/src/sslutils/lex.signing.c @@ -2356,6 +2356,7 @@ static yyconst flex_int16_t yy_rule_linenum[17] = #include "parsertypes.h" #include "signing_policy.h" +#include "lexparse.h" #ifndef strndup extern char *strndup(const char*, size_t); #endif diff --git a/src/sslutils/lexparse.h b/src/sslutils/lexparse.h new file mode 100644 index 00000000..675a10fb --- /dev/null +++ b/src/sslutils/lexparse.h @@ -0,0 +1,4 @@ +/* Declarations for lexer/parser integration. */ +union YYSTYPE; +int signinglex (union YYSTYPE *, void *); +int namespaceslex (union YYSTYPE *, void *); diff --git a/src/sslutils/namespaces.c b/src/sslutils/namespaces.c index 780845d7..a0064994 100644 --- a/src/sslutils/namespaces.c +++ b/src/sslutils/namespaces.c @@ -108,6 +108,7 @@ #include #include "parsertypes.h" +#include "lexparse.h" #include "listfunc.h" char **parse_subjects(char *string); diff --git a/src/sslutils/namespaces.l b/src/sslutils/namespaces.l index c3e6b04a..cdd10df3 100644 --- a/src/sslutils/namespaces.l +++ b/src/sslutils/namespaces.l @@ -30,6 +30,7 @@ #include #include "parsertypes.h" +#include "lexparse.h" #include "namespaces.h" #ifndef strndup extern char *strndup(const char*, size_t); diff --git a/src/sslutils/namespaces.y b/src/sslutils/namespaces.y index 23e51933..9be4271c 100644 --- a/src/sslutils/namespaces.y +++ b/src/sslutils/namespaces.y @@ -29,6 +29,7 @@ #include #include "parsertypes.h" +#include "lexparse.h" #include "listfunc.h" char **parse_subjects(char *string); diff --git a/src/sslutils/signing_policy.c b/src/sslutils/signing_policy.c index 03f13ab2..f36374b7 100644 --- a/src/sslutils/signing_policy.c +++ b/src/sslutils/signing_policy.c @@ -110,6 +110,7 @@ #include #include "parsertypes.h" +#include "lexparse.h" #include "listfunc.h" char **parse_subjects(char *string); diff --git a/src/sslutils/signing_policy.l b/src/sslutils/signing_policy.l index c5115a19..c521dd5d 100644 --- a/src/sslutils/signing_policy.l +++ b/src/sslutils/signing_policy.l @@ -31,6 +31,7 @@ #include "parsertypes.h" #include "signing_policy.h" +#include "lexparse.h" #ifndef strndup extern char *strndup(const char*, size_t); #endif diff --git a/src/sslutils/signing_policy.y b/src/sslutils/signing_policy.y index 93fab4fb..a56ac37d 100644 --- a/src/sslutils/signing_policy.y +++ b/src/sslutils/signing_policy.y @@ -31,6 +31,7 @@ #include #include "parsertypes.h" +#include "lexparse.h" #include "listfunc.h" char **parse_subjects(char *string); diff --git a/src/utils/lex.yy.c b/src/utils/lex.yy.c index afa13ea1..ac1768b0 100644 --- a/src/utils/lex.yy.c +++ b/src/utils/lex.yy.c @@ -486,6 +486,7 @@ char *yytext; #include "fakeparsertypes.h" #include "vomsparser.h" +#include "lexparse.h" #line 491 "lex.yy.c" diff --git a/src/utils/lexparse.h b/src/utils/lexparse.h new file mode 100644 index 00000000..9937dfa8 --- /dev/null +++ b/src/utils/lexparse.h @@ -0,0 +1,4 @@ +/* Declarations for lexer/parser integration. */ +union YYSTYPE; +int yylex(); +void yyerror(const char *); diff --git a/src/utils/vomsfake.y b/src/utils/vomsfake.y index 7d47bf8d..afc32f61 100644 --- a/src/utils/vomsfake.y +++ b/src/utils/vomsfake.y @@ -19,6 +19,7 @@ #include #include "fakeparsertypes.h" +#include "lexparse.h" #define MAX_SIZE 200 diff --git a/src/utils/vomsparser.c b/src/utils/vomsparser.c index ad61f133..8312571a 100644 --- a/src/utils/vomsparser.c +++ b/src/utils/vomsparser.c @@ -90,6 +90,7 @@ #include #include "fakeparsertypes.h" +#include "lexparse.h" #define MAX_SIZE 200 diff --git a/src/utils/vomsparser.l b/src/utils/vomsparser.l index 649bea73..1bf72cd9 100644 --- a/src/utils/vomsparser.l +++ b/src/utils/vomsparser.l @@ -31,6 +31,7 @@ #include "fakeparsertypes.h" #include "vomsparser.h" +#include "lexparse.h" %} %x STR