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

SCM Repository

[diderot] Annotation of /branches/lamont/src/compiler/c-util/world.sml
ViewVC logotype

Annotation of /branches/lamont/src/compiler/c-util/world.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1862 - (view) (download)
Original Path: branches/vis12/src/compiler/c-util/world.sml

1 : jhr 1850 (* world.sml
2 :     *
3 :     * COPYRIGHT (c) 2012 The Diderot Project (http://diderot-language.cs.uchicago.edu)
4 :     * All rights reserved.
5 :     *)
6 :    
7 :     structure World : sig
8 :    
9 :     (* create the declaration for the world type *)
10 :     val genStruct : TargetUtil.target_desc * (CLang.ty * string) list -> CLang.decl
11 :    
12 :     end = struct
13 :    
14 :     structure CL = CLang
15 :    
16 :     (* WORLD_STRUCT_PREFIX componenets (see Diderot/world.h) *)
17 :     val prefix = [
18 :     (CL.T_Ptr(CL.T_Named "const char"), "name"),
19 : jhr 1862 (CL.T_Ptr(CL.T_Named "biffMsg"), "errors"),
20 : jhr 1850 (CL.boolTy, "verboseFlg"),
21 :     (CL.boolTy, "isArray"),
22 :     (CL.uint32, "nStrandTys"),
23 :     (CL.T_Ptr(CL.T_Named "Strand_t"), "strandDesc"),
24 :     (CL.uint32, "nAxes"),
25 :     (CL.T_Ptr CL.uint32, "base"),
26 :     (CL.T_Ptr CL.uint32, "size"),
27 :     (CL.uint32, "numStrands")
28 :     ]
29 :    
30 :     fun genStruct (tgt : TargetUtil.target_desc, tgtFields) = CL.D_StructDef(
31 :     SOME(#namespace tgt ^ "struct_world"),
32 :     prefix @ tgtFields,
33 :     NONE)
34 :    
35 :     end

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