--- branches/pure-cfg/src/compiler/c-target/c-target.sml 2011/03/13 16:51:09 617 +++ branches/pure-cfg/src/compiler/c-target/c-target.sml 2011/03/14 13:21:58 618 @@ -99,11 +99,20 @@ strands = ref [] }) + (* register the global initialization part of a program *) fun globalInit (Prog{topDecls, ...}, init) = let val initFn = CL.D_Func([], CL.voidTy, RN.initGlobals, [], init) in topDecls := initFn :: !topDecls end + + (* register the initially code for a program *) + fun initially (Prog{topDecls, ...}, init) = let +(* FIXME: what is the correct return type for this function? *) + val initFn = CL.D_Func([], CL.voidTy, RN.initially, [], init) + in + topDecls := initFn :: !topDecls + end structure Var = struct
Click to toggle
does not end with </html> tag
does not end with </body> tag
The output has ended thus: [], init) + in + topDecls := initFn :: !topDecls + end structure Var = struct