This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v1 02/36] Guile extension language: doc additions


> Date: Sun, 19 Jan 2014 09:19:45 -0800
> From: Doug Evans <xdje42@gmail.com>
> Cc: Ludovic Courtès <ludo@gnu.org>, 
> 	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
> 
> 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.

The only problem with this text is that it seems to cover _only_
C-like languages.  It says nothing about the other languages.

How about this:

  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}.  For other languages ... [say here how string
  values are distinguished in other languages].  If the string is
  terminated by a zero of the appropriate width, it will be converted up
  to that zero.  For strings that are not zero-terminated (which
  includes strings in non C-like languages), you must specify the length
  for conversion.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]