[project @ 2002-12-02 14:33:10 by simonmar]
authorsimonmar <unknown>
Mon, 2 Dec 2002 14:33:10 +0000 (14:33 +0000)
committersimonmar <unknown>
Mon, 2 Dec 2002 14:33:10 +0000 (14:33 +0000)
commit286a25bb4e6c5baf8900874300dc095705d84918
treee8b1060ba40caa4b07a79b38c1d9ee7a605dd183
parent12718d149717b5e209081dcc3ac5dd33f62e8c6d
[project @ 2002-12-02 14:33:10 by simonmar]
Fix a bug and clean up some cruft in here:

 - In each function in the rts_getXXXX() family, there was a test that
   the object is actually of the desired type by examining its info
   table.  Some of these tests were disabled, but there was no comment
   explaining why.  I've just (re-)discovered the reason: the
   info table might be dynamically-loaded in the GHCi case.

   Not all the tests were disabled, which lead to bugs using the FFI
   in GHCi (in particular with functions that return Float or Double).

 - I've added consistent, but commented out, assertions to each of
   the rts_getXXXX() functions, and left a comment explaining why
   these reasonable-looking assertions are disabled.

MERGE TO STABLE
ghc/rts/RtsAPI.c