Build scripts & automatic generation of FFI files
[hcoop/smlsql.git] / libpq / FFI / f-lo_lseek.sml
CommitLineData
f147efc8
AC
1(* This file has been generated automatically. DO NOT EDIT! *)
2(* [from code at "/usr/include/postgresql/libpq-fe.h":359.1-66] *)
790a48a1
AC
3(* [by Matthias Blume's ml-nlffigen (version 0.9.1) for x86-unix] *)
4(* Send comments and suggestions to blume@tti-c.org. Thanks! *)
f147efc8
AC
5local
6 open C.Dim C_Int
7 val h = LibpqH.libh "lo_lseek"
8in
9structure F_lo_lseek : sig
10 val typ :
11 ((ST_pg_conn.tag, rw) su_obj ptr' * sint * sint * sint -> sint) fptr T.typ
12 val fptr :
13 unit ->
14 ((ST_pg_conn.tag, rw) su_obj ptr' * sint * sint * sint ->
15 sint) fptr
16 val f :
17 (ST_pg_conn.tag, rw) su_obj ptr *
18 MLRep.Signed.int *
19 MLRep.Signed.int *
20 MLRep.Signed.int -> MLRep.Signed.int
21 val f' :
22 (ST_pg_conn.tag, rw) su_obj ptr' *
23 MLRep.Signed.int *
24 MLRep.Signed.int *
25 MLRep.Signed.int -> MLRep.Signed.int
26end = struct
27 val typ = FPtrRTTI_46.typ
28 fun fptr () = mk_fptr (FPtrRTTI_46.mkcall, h ())
29 fun f (x1, x2, x3, x4)
30 = Cvt.ml_sint
31 (call
32 (fptr (),
33 (Light.ptr x1,
34 Cvt.c_sint x2,
35 Cvt.c_sint x3,
36 Cvt.c_sint x4)))
37 fun f' (x1, x2, x3, x4)
38 = Cvt.ml_sint
39 (call
40 (fptr (),
41 (x1, Cvt.c_sint x2, Cvt.c_sint x3, Cvt.c_sint x4)))
42end
43end