--- branches/pure-cfg/src/compiler/cl-target/cl-target.sml 2011/06/06 18:21:50 1281 +++ branches/pure-cfg/src/compiler/cl-target/cl-target.sml 2011/06/06 19:22:54 1282 @@ -242,7 +242,7 @@ (***** OUTPUT *****) - fun genStrandInit(Strand{name,tyName,state,output,code,...},nDims) = let + fun genStrandInit (Strand{name,tyName,state,output,code,...}, nDims) = let val params = [ CL.PARAM([], CL.T_Ptr(CL.uint32), "sizes" ), CL.PARAM([], CL.intTy, "width"), @@ -911,7 +911,7 @@ val clppStrm = PrintAsC.new clOutS val cppStrm = PrintAsC.new cOutS fun cppDecl dcl = PrintAsC.output(cppStrm, dcl) - fun clppDecl dcl = PrintAsC.output(clppStrm, dcl) + fun clppDecl dcl = PrintAsCL.output(clppStrm, dcl) val strands = AtomTable.listItems strands val [strand as Strand{name, tyName, code,init_code, ...}] = strands in @@ -946,7 +946,7 @@ List.app cppDecl (List.rev (!topDecls)); cppDecl (genHostSetupFunc (strand, clFileName, !numDims, initially, imgGlobals)); PrintAsC.close cppStrm; - PrintAsC.close clppStrm; + PrintAsCL.close clppStrm; TextIO.closeOut cOutS; TextIO.closeOut clOutS end