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
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.