This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Support for Pascal strings -- Take 2
- To: Ziemowit Laski <zlaski at apple dot com>
- Subject: Re: PATCH: Support for Pascal strings -- Take 2
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Fri, 29 Jun 2001 15:35:25 -0400
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200106291910.MAA15591@scv3.apple.com>
On Fri, Jun 29, 2001 at 12:10:22PM -0700, Ziemowit Laski wrote:
> Ok, here is a new, "leaner and meaner" version of the Pascal string patch
> that I submitted on June 15. Per Zack Weinberg's suggestion, I removed
> all modifications in cpplib sources, and moved \p handling to
> lex_string().
> Also, I've added a blurb in extend.texi describing the usage of Pascal
> literals.
>
> Unfortunately, Pascal literals do have to be 'const unsigned char *'.
> While I certainly agree with Mark Mitchell that this is "weird," we
> nevertheless have to support this to be (backwards) compatible with
> other tools on the MacOS platform -- c'est la vie. :(
>
> Please take a look at this patch, and give Stan and/or myself a
> "yea" or "nay." Thanks!
I still think that -pedantic should give an error, since \p is exlicitly
reserved for future standards, and not allowed for compilers to upsurp.
--
Michael Meissner, Red Hat, Inc. (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482