
panne 2004/06/12 16:24:28 PDT Modified files: src/prelude/FFI CTypes.hs CTypesExtra.hs Added files: src/prelude/FFI CTypes.h Log: * Changed CPtrdiff, CWchar, and CSigAtomic into INTEGRAL_TYPES * Same for CSize, CClock, and CTime. Note the type => newtype change here * Factored out the macro hacks Note that this implies some mysterious changes to some include/...hi files, but lacking some information I'm totally unable to track the necessary changes here. Some help is needed, the best I could manage was: Cannot find constructor for newtype: InfoData 92 NHC.FFI.CPtrdiff IEnone 92 (DataNewType False []) This happened after copying the generated FFI.hi plus adding finalizerFree to it and compiling some code (= OpenGL package) containing "fromIntegral foo" where foo has the type CPtrdiff. Revision Changes Path 1.5 +1 -148 nhc98/src/prelude/FFI/CTypes.hs 1.3 +12 -10 nhc98/src/prelude/FFI/CTypesExtra.hs