unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@giblet.glug.org>
Cc: guile-user@gnu.org
Subject: Re: [guile/scwm] SCM_HOOKP changed?
Date: Mon, 16 Sep 2002 04:35:24 -0700	[thread overview]
Message-ID: <E17qu9z-0002a9-00@giblet> (raw)
In-Reply-To: <87bs6ymffa.fsf@zagadka.ping.de> (message from Marius Vollmer on 16 Sep 2002 11:50:33 +0200)

   From: Marius Vollmer <mvo@zagadka.ping.de>
   Date: 16 Sep 2002 11:50:33 +0200

   This is wrong.  SCM_HOOKP is for Scheme-level hooks.  It is a variant
   of scm_hook_p, like SCM_VECTORP is a variant of scm_vector_p.

   There is no type predicate for C-level hooks (like there is no type
   predicate for ints).

thanks for pointing this out.  i've changed the docs to:

  @example
  if (SCM_NFALSEP (scm_hook_p (obj)))
    scm_reset_hook_x (obj);
  else
    /* do something else (obj is not a hook) */
  @end example
  
  In addition to @code{scm_hook_p} there is a slightly faster variant:
  
  @deftypefn {C Macro} int SCM_HOOKP (x)
  Return 1 if @var{x} is a Scheme-level hook and 0 otherwise.
  @end deftypefn

(will show up in 1.4.1.88 or so.)

thi


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


  reply	other threads:[~2002-09-16 11:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-15 13:01 [guile/scwm] SCM_HOOKP changed? P Pareit
2002-09-15 20:56 ` Thien-Thi Nguyen
2002-09-15 21:28   ` Thien-Thi Nguyen
2002-09-16  4:39     ` Thien-Thi Nguyen
2002-09-16  9:50     ` Marius Vollmer
2002-09-16 11:35       ` Thien-Thi Nguyen [this message]
2002-09-19 20:20         ` Neil Jerram
2002-09-15 23:59 ` 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

  List information: https://www.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=E17qu9z-0002a9-00@giblet \
    --to=ttn@giblet.glug.org \
    --cc=guile-user@gnu.org \
    --cc=ttn@glug.org \
    /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).