Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
7ed8079c
Commit
7ed8079c
authored
Nov 21, 2000
by
sewardj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2000-11-21 14:43:30 by sewardj]
Return the correct file name for .stub_[ch] files.
parent
e663f7b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ghc/compiler/main/CodeOutput.lhs
ghc/compiler/main/CodeOutput.lhs
+3
-3
No files found.
ghc/compiler/main/CodeOutput.lhs
View file @
7ed8079c
...
...
@@ -177,9 +177,9 @@ outputForeignStubs dflags c_code h_code
-- turn out to be empty, in which case no file should be created.
outputForeignStubs_help is_header "" = return Nothing
outputForeignStubs_help is_header doc_str
= newTempName suffix
>>= \ fname ->
writeFile fname (include_prefix ++ doc_str)
>>
return (Just
suffix
)
=
do fname <-
newTempName suffix
writeFile fname (include_prefix ++ doc_str)
return (Just
fname
)
where
suffix
| is_header = "h_stub"
...
...
Write
Preview
Markdown
is supported
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