From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: [guile/scwm] SCM_HOOKP changed? Date: Mon, 16 Sep 2002 04:35:24 -0700 Sender: guile-user-admin@gnu.org Message-ID: References: <200209151501.24373.pieter.pareit@planetinternet.be> <87bs6ymffa.fsf@zagadka.ping.de> Reply-To: ttn@glug.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1032176641 27119 127.0.0.1 (16 Sep 2002 11:44:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2002 11:44:01 +0000 (UTC) Cc: guile-user@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17quIF-00072q-00 for ; Mon, 16 Sep 2002 13:43:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17quIR-0004cx-00; Mon, 16 Sep 2002 07:44:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17quHb-0004YQ-00 for guile-user@gnu.org; Mon, 16 Sep 2002 07:43:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17quHZ-0004YE-00 for guile-user@gnu.org; Mon, 16 Sep 2002 07:43:14 -0400 Original-Received: from ca-crlsca-cuda3-c6a-b-211.crlsca.adelphia.net ([68.71.15.211] helo=giblet) by monty-python.gnu.org with esmtp (Exim 4.10) id 17quHZ-0004Xo-00 for guile-user@gnu.org; Mon, 16 Sep 2002 07:43:13 -0400 Original-Received: from ttn by giblet with local (Exim 3.35 #1 (Debian)) id 17qu9z-0002a9-00; Mon, 16 Sep 2002 04:35:23 -0700 Original-To: mvo@zagadka.ping.de In-reply-to: <87bs6ymffa.fsf@zagadka.ping.de> (message from Marius Vollmer on 16 Sep 2002 11:50:33 +0200) Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:987 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:987 From: Marius Vollmer 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