From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexandr Vityazev Newsgroups: gmane.lisp.guile.bugs Subject: bug#49911: [PATCH] api-control: Fix misprint in code example. Date: Fri, 06 Aug 2021 15:06:56 +0000 Message-ID: <875ywifw8f.fsf@posteo.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26628"; mail-complaints-to="usenet@ciao.gmane.io" To: 49911@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri Aug 06 17:07:12 2021 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mC1RI-0006m8-Cj for guile-bugs@m.gmane-mx.org; Fri, 06 Aug 2021 17:07:12 +0200 Original-Received: from localhost ([::1]:58978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mC1RG-0007RN-UX for guile-bugs@m.gmane-mx.org; Fri, 06 Aug 2021 11:07:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mC1R9-0007RE-3h for bug-guile@gnu.org; Fri, 06 Aug 2021 11:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mC1R8-00064W-SY for bug-guile@gnu.org; Fri, 06 Aug 2021 11:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mC1R8-0004W7-FU for bug-guile@gnu.org; Fri, 06 Aug 2021 11:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexandr Vityazev Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 06 Aug 2021 15:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49911 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162826241217342 (code B ref -1); Fri, 06 Aug 2021 15:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Aug 2021 15:06:52 +0000 Original-Received: from localhost ([127.0.0.1]:51159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mC1Qx-0004Ve-OR for submit@debbugs.gnu.org; Fri, 06 Aug 2021 11:06:51 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mC1Qv-0004VW-Kc for submit@debbugs.gnu.org; Fri, 06 Aug 2021 11:06:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mC1Qv-0007PH-54 for bug-guile@gnu.org; Fri, 06 Aug 2021 11:06:49 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:34751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mC1Qp-0005oM-Qp for bug-guile@gnu.org; Fri, 06 Aug 2021 11:06:48 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 3016B240101 for ; Fri, 6 Aug 2021 17:06:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1628262399; bh=rHvExhOtPswvNL/JL6UHNSxIifAr2IBx4nEpmbutZ+A=; h=From:To:Subject:Date:From; b=Xlt9clgU3YKSO8QH1Cenyl1QXb6RaK4dxNHw0aW241kfBkzACfY6++KPIVUOsuN6y 48OBKWa9rl0954vrKJ7zuw5G39cohIoBzHFXwNdUBMGygpSDWxmSz4kbIU8QvTCmp8 nfr7hMfxYuvI3CUre/MzNW0Ex4pQ0aw2lCOWIJzl2x27nayRYt4Oo5Vg/5judwlzj3 71e+FBGpEU1b0GGAMNRXFN91srjTkJpoJpvqzh4jfQJD0h4elT/G8yLdtd5Sh30pM3 YIrwnkU7WvXBWtQUHtkC0DJ+Gqbq7POXSUZfieUv8XMCXs17Pzr/Y3Bf7p1GmbI7KB /AvVQla3kolhA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Gh82P6PFcz6tmY for ; Fri, 6 Aug 2021 17:06:37 +0200 (CEST) Received-SPF: pass client-ip=185.67.36.66; envelope-from=avityazev@posteo.org; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10160 Archived-At: * doc/ref/api-control.texi (Simple Conditional Evaluation): Correct the typo in the example unless form. Delete trailing whitespaces. --- doc/ref/api-control.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/ref/api-control.texi b/doc/ref/api-control.texi index 5df5344c5..6c87811d0 100644 --- a/doc/ref/api-control.texi +++ b/doc/ref/api-control.texi @@ -154,7 +154,7 @@ documentation: (define-syntax-rule (when test stmt stmt* ...) (if test (begin stmt stmt* ...))) -(define-syntax-rule (unless condition stmt stmt* ...) +(define-syntax-rule (unless test stmt stmt* ...) (if (not test) (begin stmt stmt* ...))) @end example @@ -1657,12 +1657,12 @@ scm_foo (SCM s1, SCM s2) c_s1 = scm_to_locale_string (s1); - /* Call 'free (c_s1)' when the dynwind context is left. + /* Call 'free (c_s1)' when the dynwind context is left. */ scm_dynwind_unwind_handler (free, c_s1, SCM_F_WIND_EXPLICITLY); c_s2 = scm_to_locale_string (s2); - + /* Same as above, but more concisely. */ scm_dynwind_free (c_s2); @@ -2312,7 +2312,7 @@ causing a segmentation fault. Guile provides some macros to make this easier. @deftypefn Macro void SCM_ASSERT (int @var{test}, SCM @var{obj}, unsigned int @var{position}, const char *@var{subr}) -@deftypefnx Macro void SCM_ASSERT_TYPE (int @var{test}, SCM @var{obj}, unsigned int @var{position}, const char *@var{subr}, const char *@var{expected}) +@deftypefnx Macro void SCM_ASSERT_TYPE (int @var{test}, SCM @var{obj}, unsigned int @var{position}, const char *@var{subr}, const char *@var{expected}) If @var{test} is zero, signal a ``wrong type argument'' error, attributed to the subroutine named @var{subr}, operating on the value @var{obj}, which is the @var{position}'th argument of @var{subr}. -- 2.32.0 -- Alexandr Vityazev