Skip to content

Commit

Permalink
Don't dereference PL_parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafl committed Nov 6, 2008
1 parent 61fb798 commit 2134691
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Signature.xs
Expand Up @@ -5,6 +5,11 @@
#define NEED_PL_parser
#include "ppport.h"

/* this should go into ppport */
#if PERL_BCDVERSION >= 0x5009005
#define PL_oldbufptr D_PPP_my_PL_parser_var(oldbufptr)
#endif

#include "hook_op_check.h"
#include "hook_parser.h"

Expand Down Expand Up @@ -76,7 +81,7 @@ handle_proto (pTHX_ OP *op, void *user_data) {
}

/* sub $name */
s = PL_parser->oldbufptr;
s = PL_oldbufptr;
s = hook_toke_skipspace (aTHX_ s);

if (strnNE (s, "sub", 3)) {
Expand Down

0 comments on commit 2134691

Please sign in to comment.