Hi,
I'm trying to use sysctl.h under FreeBSD (should also exists under OSX) , but grovel can't parse that file. /usr/include/sys/sysctl.h:699: error: expected declaration specifiers or '...' before 'size_t' grovel.c: In function 'print_double_for_lisp':
grovel.c:64: warning: incompatible implicit declaration of built-in function 'memset'
The offending line is: int sysctlnametomib(const char *, int *, size_t *);
Any clues how to fix this or is it a known feature?
On Sat, Sep 12, 2009 at 7:30 PM, Reinout Stevens resteven@infogroep.be wrote:
I'm trying to use sysctl.h under FreeBSD (should also exists under OSX) , but grovel can't parse that file. /usr/include/sys/sysctl.h:699: error: expected declaration specifiers or '...' before 'size_t' grovel.c: In function 'print_double_for_lisp':
Grovel doesn't actually parse headers; it just generates a C file that #includes them. Do you have a small test case I can try?
K, sorry for bothering The problems seems to be with the headerfile as it doesn't work in plain old C either
Luís Oliveira wrote:
On Sat, Sep 12, 2009 at 7:30 PM, Reinout Stevens resteven@infogroep.be wrote:
I'm trying to use sysctl.h under FreeBSD (should also exists under OSX) , but grovel can't parse that file. /usr/include/sys/sysctl.h:699: error: expected declaration specifiers or '...' before 'size_t' grovel.c: In function 'print_double_for_lisp':
Grovel doesn't actually parse headers; it just generates a C file that #includes them. Do you have a small test case I can try?