From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Interfacing with C
Date: Mon, 18 May 2009 05:13:36 -0700 (PDT)
Date: 2009-05-18T05:13:36-07:00 [thread overview]
Message-ID: <97ae6c99-13e8-4480-8f3e-ee60d5f87568@n4g2000vba.googlegroups.com> (raw)
In-Reply-To: 2120d50c-55a9-40b6-8637-d9dbec3f97e0@z5g2000vba.googlegroups.com
I just wrote on comp.lang.ada:
> package SPSS is
> type Adapter is null record;
> type Adapter_Access is access all Adapter;
> pragma Convention (C, Adapter_Access);
>
> type XD_SMB is null record;
> type XD_SMB_Access is access all XD_SMB;
> pragma Convention (C, XD_SMB_Access);
>
> function Set_Up_From_SPSS
> (An_Adapter : in Adapter; An_SMB : in XD_SMB_Access)
Sorry; of course I meant
function Set_Up_From_SPSS
(An_Adapter : in Adapter_Access; An_SMB : in XD_SMB_Access)
> return Interfaces.C.int;
> pragma Import (Convention => C, Entity => Set_Up_From_SPSS,
> Linker_Name => "SetUpFromSPSS");
> end SPSS;
--
Ludovic Brenta.
next prev parent reply other threads:[~2009-05-18 12:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-18 11:29 Interfacing with C cedric
2009-05-18 11:51 ` Maciej Sobczak
2009-05-18 11:58 ` Dmitry A. Kazakov
2009-05-18 12:11 ` Ludovic Brenta
2009-05-18 12:13 ` Ludovic Brenta [this message]
2009-06-01 8:24 ` David Thompson
[not found] <vhiln6cllz7.fsf@grotte.ifi.uio.no>
1999-12-30 0:00 ` Simon Wright
1999-12-31 0:00 ` Jerry van Dijk
1999-12-31 0:00 ` Simon Wright
[not found] <7rtlav$bm7$1@nnrp1.deja.com>
[not found] ` <37e2b0e7.0@news.pacifier.com>
1999-09-22 0:00 ` Richard D Riehle
1999-09-22 0:00 ` Ted Dennison
1999-09-22 0:00 ` David Botton
1999-09-23 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox