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)
regexp.c:284: error: (Each undeclared identifier is reported only once
regexp.c:284: error: for each function it appears in.)
regexp.c:285: error: 'pcre_extra' has no member named 'match_limit_recursion'
Called from tools/install.neko line 397
Called from tools/install.neko line 358
Called from tools/install.neko line 195
Uncaught exception - Error 256 : aborted
make: *** [libs] Error 1

Mike


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Nicolas Cannasse
Sent: Friday, February 20, 2009 1:24 PM
To: Neko intermediate language mailing list
Subject: Re: [Neko] How to get PID of the current process

Michael Pliskin a écrit :
> Hi Nicolas,
> 
>   Ok any API to extend? I can try to write some C code..
> 
> Mike

We could add something like

process_current_pid()

in libs/std/process.c

Full testing on Linux+Windows is required before submission ;)

Best,
Nicolas

-- 
Neko : One VM to run them all
(http://nekovm.org)

Attachment: process.c.patch
Description: process.c.patch

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to