Changes for Devel-Declare
+0.001010
+ - fix traits code, again, so it compiles on 5.10.
+
+0.001009
- only mangle evals if o->op_ppaddr is actually PL_ppaddr[OP_ENTERVAL]
- don't set OPf_SPECIAL on entereval ops, mistaken cargo cult from autobox
- fix traits code to work on older 5.8.x perls
#include <stdio.h>
#include <string.h>
+#ifndef Newx
+# define Newx(v,n,t) New(0,v,n,t)
+#endif /* !Newx */
+
+#if 1
#define DD_HAS_TRAITS
+#endif
+
#if 0
#define DD_DEBUG
#endif
while (*s && *s != '{') ++s;
if (*s) {
int tlen = s - traitstart;
- New(0, found_traits, tlen+1, char);
+ Newx(found_traits, tlen+1, char);
Copy(traitstart, found_traits, tlen, char);
found_traits[tlen] = 0;
#ifdef DD_DEBUG