Michael Pliskin a écrit :
Hi Nicolas,
Well I've made the patch and it compiles on both Linux and Windows and I've
tried it on Windows and it worked. I wanted to try on Linux but my Fedora 4
complained when building the latest neko. Did you add something recently to
PCRE lib?
Compiling regexp...
gcc -O3 -fPIC -pthread -c -I../../vm -I/usr/include regexp.c
regexp.c: In function 'regexp_main':
regexp.c:284: error: 'PCRE_EXTRA_MATCH_LIMIT_RECURSION' undeclared (first use
in this function)
Yes, it's in the CHANGES :
"regexp : use a recursion limit to prevent stack overflows in pcre"
Seems like your pcre library is a bit outdated. Could you try to upgrade
it ? It no new version is available, it would be useful to check if
there's some kind of PCRE VERSION variable so we can disable this with
conditional compilation (although this might lead to crashes when doing
some regexps on very big texts).
Best,
Nicolas
--
Neko : One VM to run them all
(http://nekovm.org)