[project @ 2002-09-25 15:24:07 by simonmar]
authorsimonmar <unknown>
Wed, 25 Sep 2002 15:24:07 +0000 (15:24 +0000)
committersimonmar <unknown>
Wed, 25 Sep 2002 15:24:07 +0000 (15:24 +0000)
commit36eed61fede3856f9b710dde0871f284d5ec7cc9
tree0a9999a40b6739e39bcf1d0a1f1d5d076b43d61c
parentce9fdae6b57a3704f7cc98a100a266eef870df39
[project @ 2002-09-25 15:24:07 by simonmar]
Re-instate the checking for the values of errno constants at configure
time.  The problem with doing it using foreign calls is simply that
this tickles a bad case in the code gen machinery, which in this case
results in an extra 10-20k of goop ending up in pretty much every
binary, and it impacts GC performance too.

This has some portability implications, but the situation is no worse
than before.  To reliably cross-compile for a new platform you need to
build a set of .hc files for the libraries using a config.h generated on
the *target* machine.  (at some point we'll formalise the
cross-compilation story, but that's another thing on the todo list...)
Foreign/C/Error.hs
cbits/errno.c
include/HsBase.h
include/errUtils.h [deleted file]