This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: PATCH: Support for Pascal strings -- Take 3


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.


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