Hi!

On Fri, Jul 09, 2021 at 02:32:59PM -0500, will schmidt wrote:
> On Thu, 2021-06-17 at 10:18 -0500, Bill Schmidt via Gcc-patches wrote:
> > 2021-06-07  Bill Schmidt  <wschm...@linux.ibm.com>
> > +/* Pass over unprintable characters and whitespace (other than a newline,
> > +   which terminates the scan).  */

> > +static void
> > +consume_whitespace (void)
> > +{
> > +  while (pos < LINELEN && isspace(linebuf[pos]) && linebuf[pos] != '\n')
> > +    pos++;
> > +  return;
> > +}

> AFAIK isspace() and thusly this helper only skips whitespace, so
> nothing unprintable is actually handled or skipped here.

Right, and that behaviour would not match with the function name either.
isspace returns true for 0x09..0x0d and 0x20, all of which are
whitespace.


Segher

Reply via email to