diff options
Diffstat (limited to 'security/nessus-libnasl/files/patch-nasl_nasl__grammar.y')
-rw-r--r-- | security/nessus-libnasl/files/patch-nasl_nasl__grammar.y | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/security/nessus-libnasl/files/patch-nasl_nasl__grammar.y b/security/nessus-libnasl/files/patch-nasl_nasl__grammar.y new file mode 100644 index 000000000000..702e88d2cf83 --- /dev/null +++ b/security/nessus-libnasl/files/patch-nasl_nasl__grammar.y @@ -0,0 +1,37 @@ +--- nasl/nasl_grammar.y.orig 2005-11-01 18:27:57 UTC ++++ nasl/nasl_grammar.y +@@ -1,4 +1,6 @@ + %pure_parser ++%parse-param {naslctxt * parm} ++%lex-param {naslctxt * parm} + %expect 1 + %{ + /* Nessus Attack Scripting Language version 2 +@@ -19,9 +21,6 @@ + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +-#define YYPARSE_PARAM parm +-#define YYLEX_PARAM parm +- + #define LNB (((naslctxt*)parm)->line_nb) + #include "includes.h" + #include "nasl_tree.h" +@@ -31,7 +30,7 @@ + #include "nasl_lex_ctxt.h" + #include "nasl_debug.h" + +-static void naslerror(const char *); ++static void naslerror(naslctxt *, const char *); + #define YYERROR_VERBOSE + %} + +@@ -466,7 +465,7 @@ glob: GLOBAL arg_decl + #include <stdlib.h> + + static void +-naslerror(const char *s) ++naslerror(naslctxt *parm, const char *s) + { + fputs(s, stderr); + } |