From 80ffc87f94810a44c11eb753097789aa7eff2615 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 21 Mar 2008 18:47:09 +0000 Subject: [PATCH] Added a newline at the end of the generated C++ files --- backends/GenerateCPPCSP.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backends/GenerateCPPCSP.hs b/backends/GenerateCPPCSP.hs index 387a1ee..2089a62 100644 --- a/backends/GenerateCPPCSP.hs +++ b/backends/GenerateCPPCSP.hs @@ -145,7 +145,9 @@ cppgenTopLevel s genName name tell ["("] infixComma $ map tlpChannel chans - tell [")) (new csp::common::ChannelPoisoner< csp::Chanout<",chanType,">/**/> (out.writer())) (new csp::common::ChannelPoisoner< csp::Chanout<",chanType,">/**/> (err.writer())) ) ); csp::End_CPPCSP(); return 0;}"] + tell [")) (new csp::common::ChannelPoisoner< csp::Chanout<" + ,chanType,">/**/> (out.writer())) (new csp::common::ChannelPoisoner< csp::Chanout<" + ,chanType,">/**/> (err.writer())) ) ); csp::End_CPPCSP(); return 0;}\n"] where tlpChannel :: (A.Direction,TLPChannel) -> CGen() tlpChannel (dir,c) = case dir of