atom feed22 messages in net.java.dev.rococoa.usersRe: BOOL mapping issues
FromSent OnAttachments
Harald KuhrFeb 9, 2010 11:58 am 
Duncan McGregorFeb 9, 2010 12:04 pm 
Harald KuhrFeb 9, 2010 12:27 pm 
Harald KuhrFeb 9, 2010 12:37 pm.java
Duncan McGregorFeb 10, 2010 12:37 am 
Harald KuhrFeb 10, 2010 2:39 am.java
Harald KuhrFeb 17, 2010 7:25 am 
Duncan McGregorFeb 18, 2010 1:56 am 
Andrew ThompsonFeb 18, 2010 6:52 pm 
Harald KuhrFeb 19, 2010 6:49 am 
Harald KuhrFeb 19, 2010 7:23 am 
Harald KuhrFeb 19, 2010 10:37 am 
Harald KuhrFeb 19, 2010 12:13 pm 
Duncan McGregorFeb 19, 2010 2:04 pm 
Harald KuhrFeb 19, 2010 3:06 pm 
Andrew ThompsonFeb 20, 2010 8:02 am 
Harald KuhrFeb 20, 2010 1:12 pm 
Andrew ThompsonFeb 20, 2010 5:22 pm 
Duncan McGregorFeb 21, 2010 2:55 am 
Harald KuhrFeb 21, 2010 8:14 am 
Duncan McGregorFeb 21, 2010 8:40 am 
Duncan McGregorFeb 21, 2010 9:01 am 
Subject:Re: BOOL mapping issues
From:Duncan McGregor (dun@oneeyedmen.com)
Date:Feb 21, 2010 9:01:42 am
List:net.java.dev.rococoa.users

On 21 Feb 2010, at 16:15, Harald Kuhr wrote:

Strictly, BOOL and bool (stbool.h) are both typedef'ed as signed char, I guess
that is a java.lang.Byte in Java. But I figured it didn't make any difference,
as the only values ever used are 0 and 1 and JNA does the magic in any case.

Difficult to tell what bool is typedef'd to , but it certainly is true that
sizeof(bool) gives 1! stdbool.h also definitely defines true 1 and false 0.

The sizes might well be important though, as the magic that JNA does involves
putting and taking enough bytes from the stack for the arguments for each
function. The first few are probably always sent in registers, but I do wonder
about bools in long argument lists.

Duncan