[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash ChangeLog server/asobj/Global.cpp
From: |
zou lunkai |
Subject: |
Re: [Gnash-commit] gnash ChangeLog server/asobj/Global.cpp |
Date: |
Thu, 13 Dec 2007 16:46:50 +0800 |
> > - while ((input[0] == ' ') || (input[0] == 0x9))
> > + while( input[0] == ' ' || input[0] == '\n' || input[0] == '\t' ||
> > input[0] == '\r' )
>
> C99 defines this:
>
> isspace()
> checks for white-space characters. In the "C" and "POSIX" locales, these
> are: space, form-feed ('\f'), newline ('\n'), carriage return
> ('\r'), horizontal tab ('\t'), and vertical tab ('\v').
I'v tested the change I made. Unfortunately, '\f' and '\v' are not
ignored and took as invalid characters. You may want to do a double
check. BTW, pp seems doesn't respect "POSIX" at all.
--zou
On Dec 13, 2007 4:38 PM, strk <address@hidden> wrote:
> On Thu, Dec 13, 2007 at 07:38:23AM +0000, Zou Lunkai wrote:
>
> > // Skip leading whitespace
> > - while ((input[0] == ' ') || (input[0] == 0x9))
> > + while( input[0] == ' ' || input[0] == '\n' || input[0] == '\t' ||
> > input[0] == '\r' )
>
> C99 defines this:
>
> isspace()
> checks for white-space characters. In the "C" and "POSIX" locales, these
> are: space, form-feed ('\f'), newline ('\n'), carriage return
> ('\r'), horizontal tab ('\t'), and vertical tab ('\v').
>
>
> --strk;
>