> > -    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 <[EMAIL PROTECTED]> 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;
>


_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to