[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk
Subject: [gtk-list] Re: gtk_object_set_data() and integers
From: Michael Vance <briareos () lokigames ! com>
Date: 1999-07-30 17:59:25
[Download RAW message or body]
On Fri, 30 Jul 1999, Havoc Pennington wrote:
> There are GINT_TO_POINTER() and GPOINTER_TO_INT() macros in glib. In
> practice putting an int in a pointer is pretty safe; but the reverse is
> not. The glib macros are intended only to store ints in pointers, not
This is exactly what I'm doing. I'll consider the matter closed until something
breaks horribly ;).
> a 32-bit int is big enough you have no problem. If you need 64 bits, you
> need to be using gint64 anyway and checking the HAVE_GINT64 macro.)
I may port to Alpha and UltraSparc very soon--we'll see. Right now
we're only releasing x86 and PPC binaries, so it's effectively a non-issue.
Thanks,
m.
--
"How wonderful! How mysterious Programmer
I carry wood! I draw water!" Loki Entertainment Software
- Anonymous Tao poet
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic