Skip to content
Snippets Groups Projects
Commit 1a1204df authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 2000-05-08 15:03:24 by simonmar]

Put the extern declarations *outside* the function body for a
CCodeBlock.  This will enable us to give "extern" declarations for
variables that have scope static to the current module.
parent 22f40af7
No related merge requests found
......@@ -361,13 +361,14 @@ pprAbsC (CCodeBlock lbl abs_C) _
else
case (pprTempAndExternDecls abs_C) of { (pp_temps, pp_exts) ->
vcat [
char ' ',
empty,
pp_exts,
hcat [text (if (externallyVisibleCLabel lbl)
then "FN_(" -- abbreviations to save on output
else "IFN_("),
pprCLabel lbl, text ") {"],
pp_exts, pp_temps,
pp_temps,
nest 8 (ptext SLIT("FB_")),
nest 8 (pprAbsC abs_C (costs abs_C)),
......
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