classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] FYI: gnu_java_awt_peer_gtk_GtkClipboard.c 64-bit fix


From: Christian Thalinger
Subject: Re: [cp-patches] FYI: gnu_java_awt_peer_gtk_GtkClipboard.c 64-bit fix
Date: Mon, 07 Nov 2005 21:36:56 +0100

On Mon, 2005-11-07 at 14:15 -0700, Tom Tromey wrote:
> >>>>> "Twisti" == Christian Thalinger <address@hidden> writes:
> 
> Twisti> +#if SIZEOF_VOID_P == 8
> Twisti> +static long current_selection = 0;
> Twisti> +#else
> Twisti>  static int current_selection = 0;
> Twisti> +#endif
>  
> How about, instead of testing SIZEOF_VOID_P all over, we use a
> typedef?  Or, given that this is gtk-using code, use the
> GPOINTER_TO_SIZE and GSIZE_TO_POINTER macros where appropriate?

Sounds good to me.  Didn't know that such macros exist in classpath.  In
CACAO we use a typedef for such stuff.

TWISTI





reply via email to

[Prev in Thread] Current Thread [Next in Thread]