From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8639 invoked by alias); 16 Feb 2014 21:46:33 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 8627 invoked by uid 89); 16 Feb 2014 21:46:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_50,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: hera.aquilenet.fr Received: from hera.aquilenet.fr (HELO hera.aquilenet.fr) (141.255.128.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 16 Feb 2014 21:46:31 +0000 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 71D6A18B0 for ; Sun, 16 Feb 2014 22:46:29 +0100 (CET) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zhPyUsx5cDZr for ; Sun, 16 Feb 2014 22:46:29 +0100 (CET) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 2170C1787 for ; Sun, 16 Feb 2014 22:46:29 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: gdb-patches@sourceware.org Subject: [PATCH] guile: Fix documentation typos. X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 =?utf-8?Q?Pluvi=C3=B4se?= an 222 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Sun, 16 Feb 2014 21:46:00 -0000 Message-ID: <87vbwespcb.fsf@gnu.org> User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2014-02/txt/msg00518.txt.bz2 Hello, The patch below fixes a couple of typos in the Guile API documentation. Thanks, Ludo=E2=80=99. 2014-02-16 Ludovic Court=C3=A8s * doc/guile.texi (Writing a Guile Pretty-Printer) : Remove 'string-begins-with' procedure. Add 'pretty-printer' parameter to 'str-lookup-function' procedure. Look for the "std::string<" prefix. (Frames In Guile): Add 'frame' parameter to 'frame-read-var'. Adjust description. diff --git a/gdb/doc/guile.texi b/gdb/doc/guile.texi index 924f97a..ceb98dc 100644 --- a/gdb/doc/guile.texi +++ b/gdb/doc/guile.texi @@ -1545,14 +1545,11 @@ And here is an example showing how a lookup functio= n for the printer example above might be written. =20 @smallexample -(define (string-begins-with str prefix) - (=3D (string-prefix-length str prefix) (string-length prefix))) - -(define (str-lookup-function value) +(define (str-lookup-function pretty-printer value) (let ((tag (type-tag (value-type value)))) (and tag - (string-begins-with tag "my::string<") - (make-std-string-printer value)))) + (string-prefix? "std::string<" tag) + (make-my-string-printer value)))) @end smallexample =20 Then to register this printer in the global printer list: @@ -1893,8 +1890,8 @@ Return the frame's @code{} (symtab and line)= object. @xref{Symbol Tables In Guile}. @end deffn =20 -@deffn {Scheme Procedure} frame-read-var variable @r{[}#:block block@r{]} -Return the value of @var{variable} in this frame. If the optional +@deffn {Scheme Procedure} frame-read-var frame variable @r{[}#:block block= @r{]} +Return the value of @var{variable} in @var{frame}. If the optional argument @var{block} is provided, search for the variable from that block; otherwise start at the frame's current block (which is determined by the frame's current program counter). @var{variable}