From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tomas@fabula.de Newsgroups: gmane.lisp.guile.devel Subject: [PATCH] Small doc fix Date: Thu, 3 Apr 2003 12:15:56 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <20030403101556.GA15001@www> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049363228 12271 80.91.224.249 (3 Apr 2003 09:47:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2003 09:47:08 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Apr 03 11:47:07 2003 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 1911JK-0003Bk-00 for ; Thu, 03 Apr 2003 11:47:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1911HR-0004KA-01 for guile-devel@m.gmane.org; Thu, 03 Apr 2003 04:45:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1911Gm-00040J-00 for guile-devel@gnu.org; Thu, 03 Apr 2003 04:44:28 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1911GY-0003Yj-00 for guile-devel@gnu.org; Thu, 03 Apr 2003 04:44:17 -0500 Original-Received: from [217.22.192.104] (helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1911GS-0003B9-00 for guile-devel@gnu.org; Thu, 03 Apr 2003 04:44:08 -0500 Original-Received: by www.elogos.de (Postfix, from userid 5002) id C40C61457F; Thu, 3 Apr 2003 12:15:56 +0200 (CEST) Original-To: guile-devel@gnu.org Content-Disposition: inline User-Agent: Mutt/1.5.3i X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2124 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2124 Hi, it's an obvious ommission, thus rather harmless. Still, here's the patch (diff -u): ===================================================================== --- guile-core/doc/ref/data-rep.texi.original Thu Apr 3 11:44:36 2003 +++ guile-core/doc/ref/data-rep.texi Thu Apr 3 11:44:40 2003 @@ -1489,12 +1489,6 @@ use the mechanism described above for new code, and change old code not to use deprecated features. -Instead of using @code{scm_make_smob_type} and calling each of the -individual @code{scm_set_smob_XXX} functions to register each special -function independently, you could use @code{scm_make_smob_type_mfpe} to -register all of the special functions at once as you create the smob -type - @deftypefun long scm_make_smob_type_mfpe(const char *name, size_t size, SCM (*mark) (SCM), size_t (*free) (SCM), int (*print) (SCM, SCM, scm_print_state*), SCM (*equalp) (SCM, SCM)) This function invokes @code{scm_make_smob_type} on its first two arguments to add a new smob type named @var{name}, with instance size @var{size} to the system. @@ -1504,6 +1498,8 @@ The return value is a tag that is used in creating instances of the type. If @var{size} is 0, then no memory will be allocated when instances of the smob are created, and nothing will be freed by the default free function. + +@emph{This function is deprecated} @end deftypefun For example, here is how one might declare and register a new type ===================================================================== Regards -- tomas _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel