#2979: better support for FFI C wrappers for macros in system headers
---------------------------------+------------------------------------------
Reporter: duncan | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 7.4.1
Component: Compiler (FFI) | Version: 6.10.1
Keywords: | Testcase:
Blockedby: | Difficulty: Unknown
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by igloo@…):
commit 36f8cabecd5a8320ee174abb56e73841a5cbc9c7
{{{
Author: Ian Lynagh <[email protected]>
Date: Sat Nov 26 14:54:47 2011 +0000
Implement a capi calling convention; fixes #2979
In GHC, this provides an easy way to call a C function via a C
wrapper.
This is important when the function is really defined by CPP.
Requires the new CApiFFI extension.
Not documented yet, as it's still an experimental feature at this
stage.
compiler/cmm/PprC.hs | 1 +
compiler/deSugar/DsForeign.lhs | 62
+++++++++++++++++++++++++-----
compiler/llvmGen/LlvmCodeGen/CodeGen.hs | 1 +
compiler/main/DynFlags.hs | 2 +
compiler/parser/Lexer.x | 5 ++
compiler/parser/Parser.y.pp | 3 +
compiler/prelude/ForeignCall.lhs | 11 ++++-
compiler/typecheck/TcForeign.lhs | 1 +
8 files changed, 73 insertions(+), 13 deletions(-)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2979#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs