Syslog.h
Jonathan Coxhead
jonathan at doves.demon.co.uk
Tue May 4 01:32:30 BST 2004
On 2 May 2004, at 12:51, Tony van der Hoff wrote:
> Yes. I guess everything needs os.h (or Hdr.OS) for os_error, so the correct
> place to fix it is probably in DefMod.
Not quite everything needs "os.h":
---"os.h" doesn't need "os.h".
---A module that doesn't define any SWI's (and there are a few) doesn't need
"os.h", probably. (It might do for other reasons, though.)
So the right place to fix it is not in DefMod: it's in "syslog.swi". It is
annoying that *almost* everything needs "os.h", but it's livable with.
A useful test would be to make sure that the following programme compiles
#include TEST
int main (void)
{
return 0;
}
for every value of TEST that is a header file. (Maybe some others have slipped
through the net?) If you have sh/ksh/bash, something like the following could
do the job
for f in $(find OS: -name "*.h" -print)
do
h=$(basename $f)
cc -c "-DTEST=\"$h\"" -o /dev/null prog.c
done
Cheers ...
/|
o o o (_|/
/|
(_/ Kucinich for President! <http://www.kucinich.us>
More information about the oslib-user
mailing list