Messages per Month
| From | Sent On | Attachments |
|---|---|---|
| Harald Kuhr | Feb 9, 2010 11:58 am | |
| Duncan McGregor | Feb 9, 2010 12:04 pm | |
| Harald Kuhr | Feb 9, 2010 12:27 pm | |
| Harald Kuhr | Feb 9, 2010 12:37 pm | .java |
| Duncan McGregor | Feb 10, 2010 12:37 am | |
| Harald Kuhr | Feb 10, 2010 2:39 am | .java |
| Harald Kuhr | Feb 17, 2010 7:25 am | |
| Duncan McGregor | Feb 18, 2010 1:56 am | |
| Andrew Thompson | Feb 18, 2010 6:52 pm | |
| Harald Kuhr | Feb 19, 2010 6:49 am | |
| Harald Kuhr | Feb 19, 2010 7:23 am | |
| Harald Kuhr | Feb 19, 2010 10:37 am | |
| Harald Kuhr | Feb 19, 2010 12:13 pm | |
| Duncan McGregor | Feb 19, 2010 2:04 pm | |
| Harald Kuhr | Feb 19, 2010 3:06 pm | |
| Andrew Thompson | Feb 20, 2010 8:02 am | |
| Harald Kuhr | Feb 20, 2010 1:12 pm | |
| Andrew Thompson | Feb 20, 2010 5:22 pm | |
| Duncan McGregor | Feb 21, 2010 2:55 am | |
| Harald Kuhr | Feb 21, 2010 8:14 am | |
| Duncan McGregor | Feb 21, 2010 8:40 am | |
| Duncan McGregor | Feb 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






.java