This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: FYI: important memory-trashing fix
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: tromey at redhat dot com, GCC libjava patches <java-patches at gcc dot gnu dot org>, Bryce McKinlay <bryce at mckinlay dot net dot nz>
- Date: Fri, 14 Nov 2003 07:15:18 -0600
- Subject: Re: Patch: FYI: important memory-trashing fix
- Reply-to: gnustuff at thisiscool dot com
Hi Andrew,
>Why would you want to use a macro? Surely you could do
>
> void
> gnu::awt::gtk::GtkButtonPeer::setLabel (java::lang::String *label)
> {
> _Jv_GdkThreadLock sync;
> Jv_temp_utf_string utflabel(label);
>
> // The button child is a label.
> GtkBin *bin = GTK_BIN (ptr);
> gtk_label_set_text (GTK_LABEL (bin->child), safe_cstr (utflabel.data));
> }
>
>or somesuch.
http://gcc.gnu.org/ml/java-patches/2003-q3/msg00361.html
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/