Hi Pádraig,

Pádraig Brady <[email protected]> writes:

> +   In any case G.len will be 1 if G.err is set.

Certainly worth documenting this.

For some reason when writing gl/lib/mbbuf.h in coreutils I thought that
this wasn't the case:

  if (! g.err)
    mbbuf->offset += g.len;
  else
    {
      /* Assume the program will emit the byte, but keep the error flag.  */
      g.ch = mbbuf->buffer[mbbuf->offset++];
      g.len = 1;
    }

So I can remove that later.

Collin

Reply via email to