From: Ted Dennison <dennison@telepath.com>
Subject: Re: Function returning "Boolean" in a binding
Date: Sat, 23 Dec 2000 15:36:01 GMT
Date: 2000-12-23T15:36:01+00:00 [thread overview]
Message-ID: <922gp1$8nm$1@nnrp1.deja.com> (raw)
In-Reply-To: 977543301.615948@cachalote.ip.pt
In article <977543301.615948@cachalote.ip.pt>,
antonio.vargas@clix.pt wrote:
type Xt_Work_Proc is access function (Client_Data : in Xt_Pointer)
> return Boolean;
> pragma Convention (C, Xt_Work_Proc);
>
> But if I change the return type form "Boolean" to "Interfaces.C.Int"
> it compiles. Shouldn't the compiler make an automatic conversion
> from Boolean(Ada side) to C.int (C side) ?.
Why? How does the compiler know that's what you want Boolean to map to?
You could want to use it for a C "char" for all it knows.
--
T.E.D.
http://www.telepath.com/~dennison/Ted/TED.html
Sent via Deja.com
http://www.deja.com/
next prev parent reply other threads:[~2000-12-23 15:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-23 2:47 Function returning "Boolean" in a binding Antonio Vargas
2000-12-23 15:36 ` Ted Dennison [this message]
2000-12-23 16:29 ` Antonio Vargas
2000-12-24 13:14 ` Marc A. Criley
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox