1 (* Copyright (C) 2009 Matthew Fluet.
2 * Copyright (C) 2004-2006 Henry Cejtin, Matthew Fluet, Suresh
3 * Jagannathan, and Stephen Weeks.
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
9 signature FFI_STRUCTS =
11 structure CFunction: C_FUNCTION
12 structure CType: C_TYPE
19 val addExport: {args: CType.t vector,
20 convention: CFunction.Convention.t,
23 symbolScope: CFunction.SymbolScope.t} -> int
24 val addSymbol: {ty: CType.t,
26 symbolScope: CFunction.SymbolScope.t} -> unit
27 val checkScope: {name: string,
28 symbolScope: CFunction.SymbolScope.t} ->
29 CFunction.SymbolScope.t
30 val declareExports: {print: string -> unit} -> unit
31 val declareHeaders: {print: string -> unit} -> unit
32 val numExports: unit -> int