Changes between Version 15 and Version 16 of ForeignFunctionInterface


Ignore:
Timestamp:
Oct 9, 2009 11:28:15 AM (6 years ago)
Author:
chak@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ForeignFunctionInterface

    v15 v16  
    5050'''TODO:''' Decide whether we want this addition. 
    5151 
     52=== `ccall` vs. `stdcall` === 
     53 
     54Cross-platform libraries (e.g. HOpenGL) often want to import the same foreign functions using the `ccall` convention on Unix and the `stdcall` convention on Windows. The usual method is to use CPP hackery.  Would there be any harm to implement `stdcall` as `ccall` on Unix?  In other words, do we need `stdcall` on Unix at all? 
     55 
     56'''TODO:''' Decide whether we allow implementations to implement `stdcall` as `ccall` if that is appropriate for the platform. 
     57 
    5258---- 
    5359 
     
    7076 * We add one or two examples. 
    7177 
    72  
    73  
    74 == Topics that need discussion for the integration into Haskell' == 
    75  
    76  
    77 === `ccall` vs. `stdcall` === 
    78  
    79 Cross-platform libraries (e.g. HOpenGL) often want to import the same foreign functions using the `ccall` convention on Unix and the `stdcall` convention on Windows. The usual method is to use CPP hackery. 
    80  
    81  Earlier versions of the FFI addendum had another conventions that would automatically adapt.  IIRC we remove this eventually, because it wasn't always sufficient.  Before considering this again, we should consult the mailing list archives for the exact reason of the earlier removal. 
    82  
    83   -- ManuelChakravarty 
    84  
    85 === `CString` === 
    86  
    87 The specified CString conversions are not yet supported in the hierarchical libraries. 
    88  
    89  Is this a Haskell' issue? 
    90  
    91   -- ManuelChakravarty  
    92  
    93 === Specifying libraries === 
    94  
    95 jhc allows libraries to be specified as well as include files. this is handy for its lazy linking, the syntax is "-lfoo include.h foo_func" 
    96  
    97  This is another feature that we had for a while and then removed as it didn't always work.  I think this is something the package manager should handle. 
    98  
    99   -- ManuelChakravarty 
    100  
    101 == Changes to the FFI libraries == 
     78=== Changes to the FFI libraries === 
    10279 
    10380Additions: