From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11648 invoked by alias); 19 Jan 2014 17:19:51 -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 11595 invoked by uid 89); 19 Jan 2014 17:19:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f182.google.com Received: from mail-wi0-f182.google.com (HELO mail-wi0-f182.google.com) (209.85.212.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 19 Jan 2014 17:19:49 +0000 Received: by mail-wi0-f182.google.com with SMTP id ex4so2414641wid.9 for ; Sun, 19 Jan 2014 09:19:45 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.181.13.40 with SMTP id ev8mr5848761wid.16.1390151985692; Sun, 19 Jan 2014 09:19:45 -0800 (PST) Received: by 10.194.17.104 with HTTP; Sun, 19 Jan 2014 09:19:45 -0800 (PST) In-Reply-To: <83wqhvj4bw.fsf@gnu.org> References: <52b9da59.64ab440a.0b0b.7e1c@mx.google.com> <83ha9w68av.fsf@gnu.org> <87sit4kb1t.fsf@gnu.org> <83eh4ow78t.fsf@gnu.org> <87k3egez8e.fsf@gnu.org> <87mwitovvh.fsf@gnu.org> <83wqhvj4bw.fsf@gnu.org> Date: Sun, 19 Jan 2014 17:19:00 -0000 Message-ID: Subject: Re: [PATCH v1 02/36] Guile extension language: doc additions From: Doug Evans To: Eli Zaretskii Cc: =?ISO-8859-1?Q?Ludovic_Court=E8s?= , "gdb-patches@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00718.txt.bz2 On Sun, Jan 19, 2014 at 8:58 AM, Eli Zaretskii wrote: >> Date: Sat, 18 Jan 2014 12:55:22 -0800 >> From: Doug Evans >> Cc: Eli Zaretskii , "gdb-patches@sourceware.org" >> >> > If the functionality is that only null-terminated strings are supported, >> > then the text is fin >> >> Correction: Either a null-terminated string or a string with the >> specified length passed in (i.e., not present in the string itself) is >> supported. >> >> > Eli was suggesting supporting non-null-terminated strings as well, but >> > indeed, that can always be added later. >> >> They are supported, but the caller has to provide the length. > > Then let's say that explicitly. The text as is can be interpreted as > meaning that such strings aren't supported. The text does say that strings are either zero-terminated or the length is explicitly specified. Here's my current wording. For C-like languages, a value is a string if it is a pointer to or an array of characters or ints of type @code{wchar_t}, @code{char16_t}, or @code{char32_t}. The string is assumed to be terminated by a zero of the appropriate width. However if the optional length argument is given, the string will be converted to that given length, and will include any embedded zeros that the string may contain. I'm happy to change it, but I'm going to need some help on what to change it to.