3 messages in net.java.dev.jna.usersRe: JRuby / JNA / pointer to struct
FromSent OnAttachments
Timothy WallSep 11, 2007 9:09 am 
skaarSep 11, 2007 11:15 am 
Timothy WallSep 11, 2007 11:40 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: JRuby / JNA / pointer to structActions...
From:Timothy Wall (twal@dev.java.net)
Date:Sep 11, 2007 11:40:00 am
List:net.java.dev.jna.users

On Sep 11, 2007, at 2:16 PM, skaar wrote:

I don't think X11 intends for you to be poking about in the Display structure.

The only reason for this, was that there is a numer of macros defined in Xlib.h, such as ConnectionNumber, DefaultScreen which are returning data using these, which I belive need to be replaced by Java/JRuby eqivialents in a X11 implementaton. They are in the AllPlanes(3) man page.

All the C macros should have functional equivalents, usually prefixed by "X", for the very reason that X did not assume it would only be accessed by C programs. Back in the day when a single function call was considered significant overhead, the macros were provided as an optimization for C programs.