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 3
- To: Ziemowit Laski <zlaski at apple dot com>
- Subject: Re: PATCH: Support for Pascal strings -- Take 3
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Tue, 3 Jul 2001 22:42:49 +1000
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200107022355.QAA29924@scv1.apple.com>
On 02-Jul-2001, Ziemowit Laski <zlaski@apple.com> wrote:
> Index: gcc/testsuite/g++.dg/pascal-strings-1.C
...
> + extern "C" void abort (void);
> + extern "C" long unsigned strlen (const char *s);
That's not standard-conforming C++...
why not just use #include <stdlib.h> and #include <string.h>?
> --- pascal-strings-1.c Mon Jul 2 15:54:21 2001
> ***************
> *** 0 ****
> --- 1,44 ----
> + /* Test for handling of Pascal-style string literals */
> + /* Origin: Ziemowit Laski <zlaski@apple.com> */
> + /* { dg-do run } */
> + /* { dg-options "-std=iso9899:1999 -fpascal-strings" } */
> +
> + typedef __WCHAR_TYPE__ wchar_t;
> +
> + extern void abort (void);
> + extern long unsigned strlen (const char *s);
Likewise here.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.