Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2001 03:27:02 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        "Peter S. Housel" <housel@acm.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/stdio ftell.c ungetc.c
Message-ID:  <20010901032658.A24264@nagual.pp.ru>
In-Reply-To: <20010901024748.A23318@nagual.pp.ru>
References:  <200108311950.f7VJoPd48683@freefall.freebsd.org> <mu9n14g2bq8.wl@cx281057-a.irvn1.occa.home.com> <20010901010738.B21988@nagual.pp.ru> <20010901024748.A23318@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 01, 2001 at 02:47:51 +0400, Andrey A. Chernov wrote:
> 2) Unspecified >= 0
> 
> Look at another place of ungetc() description:
> 
> The value of the
> file-position indicator for the stream after reading or discarding
> all pushed-back bytes shall be
> the same as it was before the bytes were pushed back.
> ^^^^^^^^
> 
> We can't make it "the same" in this case, because have value >= 0
> as non-unique.

From other side, 0 is good value. We can keep unique internal
negative representation, but make ftell() return 0 externally.
I'll think about it more tomorrow.

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010901032658.A24264>