Skip to content
Snippets Groups Projects
Commit cef8f47a authored by Cheng Shao's avatar Cheng Shao Committed by Marge Bot
Browse files

docs: minor adjustments for stdcall removal

This commit include minor adjustments of documentation related to
stdcall removal.
parent d2a83302
No related branches found
No related tags found
No related merge requests found
...@@ -694,8 +694,7 @@ of ``-W(no-)*``. ...@@ -694,8 +694,7 @@ of ``-W(no-)*``.
Causes a warning to be emitted for foreign declarations that use Causes a warning to be emitted for foreign declarations that use
unsupported calling conventions. In particular, if the ``stdcall`` unsupported calling conventions. In particular, if the ``stdcall``
calling convention is used on an architecture other than i386 then calling convention is used then it will be treated as ``ccall``.
it will be treated as ``ccall``.
.. ghc-flag:: -Wdodgy-foreign-imports .. ghc-flag:: -Wdodgy-foreign-imports
:shortdesc: warn about dodgy foreign imports :shortdesc: warn about dodgy foreign imports
......
...@@ -319,7 +319,7 @@ to call from the outside. For example: ...@@ -319,7 +319,7 @@ to call from the outside. For example:
adder :: Int -> Int -> IO Int -- gratuitous use of IO adder :: Int -> Int -> IO Int -- gratuitous use of IO
adder x y = return (x+y) adder x y = return (x+y)
foreign export stdcall adder :: Int -> Int -> IO Int foreign export ccall adder :: Int -> Int -> IO Int
Add some helper code that starts up and shuts down the Haskell RTS: Add some helper code that starts up and shuts down the Haskell RTS:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment