[project @ 1999-10-26 17:27:25 by sewardj]
authorsewardj <unknown>
Tue, 26 Oct 1999 17:27:54 +0000 (17:27 +0000)
committersewardj <unknown>
Tue, 26 Oct 1999 17:27:54 +0000 (17:27 +0000)
commit6642714ec59883c1edd31e9e5b485e99f0edd952
tree9cec68849f82246a26bb11b0a0e88ad9754b72ca
parent37cb07db3d7827c8b5058411b12e23e86e6a6520
[project @ 1999-10-26 17:27:25 by sewardj]
Add foreign import/export implementations for x86 stdcall convention.

Make parser notice calling conventions on f-i and f-x declarations,
check they are supported on the platform Hugs is compiled on.  Pass
them all the way through the code generator to the interpreter.

Allow f-i/f-x decls to omit the calling convention, in which case
ccall is used.  Remove calling convention from all such decls
in the Prelude so it will work on any platform.
19 files changed:
ghc/includes/Assembler.h
ghc/interpreter/connect.h
ghc/interpreter/dynamic.c
ghc/interpreter/dynamic.h
ghc/interpreter/input.c
ghc/interpreter/lib/Prelude.hs
ghc/interpreter/parser.y
ghc/interpreter/static.c
ghc/interpreter/storage.c
ghc/interpreter/storage.h
ghc/interpreter/translate.c
ghc/lib/hugs/Prelude.hs
ghc/rts/Assembler.c
ghc/rts/Bytecodes.h
ghc/rts/Disassembler.c
ghc/rts/Evaluator.c
ghc/rts/ForeignCall.c
ghc/rts/ForeignCall.h
ghc/rts/universal_call_c.S