Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis15/src/compiler/cxx-util/gen-library-util.sml
ViewVC logotype

View of /branches/vis15/src/compiler/cxx-util/gen-library-util.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4317 - (download) (annotate)
Sat Jul 30 14:12:14 2016 UTC (3 years, 5 months ago) by jhr
File size: 912 byte(s)
working on merge: expand tabs to eight spaces
(* gen-library-util.sml
 *
 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
 *
 * COPYRIGHT (c) 2016 The University of Chicago
 * All rights reserved.
 *)

structure GenLibraryUtil : sig

  (* generate the header part of the C++ source file for standalone executables *)
    val head : CodeOutput.t * (string * string) list -> unit

  (* generate the footer part of the C++ source file for standalone executables *)
    val foot : CodeOutput.t * (string * string) list -> unit

  end = struct

    structure Out = CodeOutput
    structure CL = CLang

    fun head (outS, substitutions) = (
          Out.decl outS (CL.verbatimDcl [Fragments.libCXXHead] substitutions);
          Out.decl outS (CL.verbatimDcl [Fragments.nrrdSaveHelper] substitutions))

    fun foot (outS, substitutions) =
          Out.decl outS (CL.verbatimDcl [Fragments.libCXXFoot] substitutions)

  end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0