summaryrefslogtreecommitdiff
path: root/Language/C
diff options
context:
space:
mode:
Diffstat (limited to 'Language/C')
-rw-r--r--Language/C/Print.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Language/C/Print.hs b/Language/C/Print.hs
index e075b0e..cc511b2 100644
--- a/Language/C/Print.hs
+++ b/Language/C/Print.hs
@@ -20,12 +20,12 @@ printFunDef (FunDef rt n as (StExpr ss rete)) =
% intercalates ", " [printType t % printString " " % printName an | (t, an) <- as]
% printString ") {\n "
% addIndent 2 (intercalates "\n" (map printStmt ss))
- % printString "\n return (" % printExpr rete % printString ");\n}"
+ % printString "\n return (" % printExpr rete % printString ");\n}\n"
printFunDef (ProcDef n as ss) =
printString "void " % printName n
% printString "("
% intercalates ", " [printType t % printString " " % printName an | (t, an) <- as]
- % printString ") " % printBlock ss
+ % printString ") " % printBlock ss % printString "\n"
printName :: Name -> PrintS
printName (Name s) = printString s