Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
b79fd013
Commit
b79fd013
authored
Mar 23, 2001
by
simonmar
Browse files
[project @ 2001-03-23 17:04:26 by simonmar]
don't forget to inject a #include for the stub.h file.
parent
50027272
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/main/CodeOutput.lhs
View file @
b79fd013
...
...
@@ -71,7 +71,7 @@ codeOutput dflags mod_name tycons core_binds stg_binds
HscInterpreted -> return stub_names
HscAsm -> outputAsm dflags filenm flat_abstractC
>> return stub_names
HscC -> outputC dflags filenm flat_abstractC
HscC -> outputC dflags filenm flat_abstractC
stub_names
>> return stub_names
HscJava -> outputJava dflags filenm mod_name tycons core_binds
>> return stub_names
...
...
@@ -98,11 +98,14 @@ doOutput filenm io_action
%************************************************************************
\begin{code}
outputC dflags filenm flat_absC
outputC dflags filenm flat_absC
(maybe_stub_h, _)
= do dumpIfSet_dyn dflags Opt_D_dump_realC "Real C" (dumpRealC flat_absC)
header <- readIORef v_HCHeader
doOutput filenm $ \ h -> do
hPutStr h header
case maybe_stub_h of
Nothing -> return ()
Just filename -> hPutStrLn h ("#include \"" ++ filename ++ "\"")
writeRealC h flat_absC
\end{code}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment