public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
From: "Greg J. Badros" <gjb@cs.washington.edu>
To: Mikael Djurfeldt <mdj@mdj.nada.kth.se>
Cc: Ariel Rios <ariel@arcavia.com>,
	Marius Vollmer <mvo@dt.e-technik.uni-dortmund.de>,
	guile@sourceware.cygnus.com, guile-gtk@sourceware.cygnus.com,
	djurfeldt@nada.kth.se
Subject: Re: Patch to make guile-gtk work with upcoming guile-1.4
Date: Mon, 19 Jun 2000 14:11:00 -0000	[thread overview]
Message-ID: <qrr8zw1v0ki.fsf@clavicle.cs.washington.edu> (raw)
In-Reply-To: <xy766r69h0u.fsf@mdj.nada.kth.se>

Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:

> "Greg J. Badros" <gjb@cs.washington.edu> writes:
> 
> > +  tc16_gtkobj_marker_hook = scm_make_smob_type_mfpe("gtkobj_marker_hook",
> > +                                                    sizeof(sgtk_object_proxy),
> > +                                                    gtkobj_marker_hook,
> > +                                                    NULL,
> > +                                                    gtkobj_marker_hook_print,
> > +                                                    NULL);
> 
> (Thanks to Greg for the patch.)
> 
> Just a small comment:
> 
> The `scm_make_smob_type_mfpe' function has not been mentioned in the
> NEWS file because it might become deprecated in next release of Guile.

I'd much prefer that this function not be depracated... notice all of
the redundancies and potential maintenance headaches below.  People
*will* cut and paste from one section to another, change the *_hook in
the first line, and forget to change it in later lines, resulting in a
hard-to-find and nasty bug.

Greg

> 
> Please instead use the standard interface:
> 
> tc16_gtkobj_marker_hook = scm_make_smob_type ("gtkobj_marker_hook",
>                                               sizeof (sgtk_object_proxy));
> scm_set_smob_mark (tc16_gtkobj_marker_hook, gtkobj_marker_hook);
> scm_set_smob_print (tc16_gtkobj_marker_hook, gtkobj_marker_hook_print);

  reply	other threads:[~2000-06-19 14:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-01 21:05 guile-gtk 0.18 Released Ariel Rios
2000-06-18 19:06 ` Patch to make guile-gtk work with upcoming guile-1.4 Greg J. Badros
2000-06-19  2:06   ` Mikael Djurfeldt
2000-06-19 14:11     ` Greg J. Badros [this message]
2000-06-19 15:47       ` Mikael Djurfeldt
2000-06-19 14:49     ` Marius Vollmer
2000-06-19 15:01       ` Greg J. Badros
2000-06-19 21:54         ` Jim Blandy
2000-06-20  8:41           ` Greg J. Badros
2000-06-20  9:15             ` Jost Boekemeier
2000-06-20  9:22               ` Brett Viren
2000-06-19 14:49   ` Marius Vollmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=qrr8zw1v0ki.fsf@clavicle.cs.washington.edu \
    --to=gjb@cs.washington.edu \
    --cc=ariel@arcavia.com \
    --cc=djurfeldt@nada.kth.se \
    --cc=guile-gtk@sourceware.cygnus.com \
    --cc=guile@sourceware.cygnus.com \
    --cc=mdj@mdj.nada.kth.se \
    --cc=mvo@dt.e-technik.uni-dortmund.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).