Patch: FYI: important memory-trashing fix
Andrew Haley
aph@redhat.com
Fri Nov 14 13:25:00 GMT 2003
Mohan Embar writes:
> 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
:-)
"A foolish consistency is the hobgoblin of little minds"
Ralph Waldo Emerson
Anyway, I suppose either would do.
Andrew.
More information about the Java-patches
mailing list