File: c-types.mlb

package info (click to toggle)
mlton 20100608-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 34,980 kB
  • ctags: 69,089
  • sloc: ansic: 18,421; lisp: 2,879; makefile: 1,570; sh: 1,325; pascal: 256; asm: 97
file content (94 lines) | stat: -rw-r--r-- 2,215 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
(* Copyright (C) 2010 Matthew Fluet.
 * Copyright (C) 2004-2007 Henry Cejtin, Matthew Fluet, Suresh
 *    Jagannathan, and Stephen Weeks.
 *
 * MLton is released under a BSD-style license.
 * See the file MLton-LICENSE for details.
 *)

ann  
   "deadCode true"
   "sequenceNonUnit warn"
   "nonexhaustiveMatch warn" "redundantMatch warn"
   "warnUnused true" "forceUsed"
in
   local
      basis.mlb
      mlton.mlb
      local
         config/choose-int.sml
         config/choose-real.sml
         config/choose-word.sml
         config/c/word-to-bool.sml
         config/bind/int-top.sml 
         config/bind/real-top.sml 
         config/bind/word-top.sml 
      in ann "forceUsed" in
         $(LIB_MLTON_DIR)/targets/$(TARGET)/sml/c-types.sml
      end end
      local
         local
            primitive/primitive.mlb
         in
            structure Primitive
         end
      in
         c/pointer.sig
         c/pointer.sml
      end
   in
      structure C_Char
      structure C_SChar
      functor C_SChar_ChooseIntN
      structure C_UChar
      functor C_UChar_ChooseWordN

      structure C_Short
      structure C_SShort
      functor C_SShort_ChooseIntN
      structure C_UShort
      functor C_UShort_ChooseWordN

      structure C_Int
      structure C_SInt
      functor C_SInt_ChooseIntN
      structure C_UInt
      functor C_UInt_ChooseWordN

      structure C_Long
      structure C_SLong
      functor C_SLong_ChooseIntN
      structure C_ULong
      functor C_ULong_ChooseWordN

      structure C_LongLong
      structure C_SLongLong
      functor C_SLongLong_ChooseIntN
      structure C_ULongLong
      functor C_ULongLong_ChooseWordN

      structure C_Float
      functor C_Float_ChooseRealN
      structure C_Double
      functor C_Double_ChooseRealN

      structure C_Size
      functor C_Size_ChooseWordN

      structure C_Ptrdiff
      functor C_Ptrdiff_ChooseIntN

      structure C_Intmax
      functor C_Intmax_ChooseIntN
      structure C_UIntmax
      functor C_UIntmax_ChooseWordN

      structure C_Intptr
      functor C_Intptr_ChooseIntN
      structure C_UIntptr
      functor C_UIntptr_ChooseWordN

      signature C_POINTER
      structure C_Pointer
   end
end