GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #11305 (Unformatted/full headers)

Back to main page of archive

Previous mail   Next mail   Formatted
Overview  10 days   Subject   Date   Thread   Author  

From gpc-owner@gnu.de  Sat Jan 29 14:20:24 2005
Received: from hera.math.uni.wroc.pl ([156.17.86.1] ident=mail)
	by adele.gerwinski.de with esmtp (Exim 4.34)
	id 1CusWP-0001U7-Fn
	for gpc@gnu.de; Sat, 29 Jan 2005 14:20:17 +0100
Received: from hebisch by hera.math.uni.wroc.pl with local (Exim 3.35 #1 (Debian))
	id 1CusQc-0001K3-00
	for <gpc@gnu.de>; Sat, 29 Jan 2005 14:14:18 +0100
Subject: Re: EOF is not true on reset empty file
In-Reply-To: <200501270726.j0R7QjHn008733@strawberry.ncifcrf.gov>
To: gpc@gnu.de
Date: Sat, 29 Jan 2005 14:14:18 +0100 (CET)
X-Mailer: ELM [version 2.4ME+ PL100 (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Message-Id: <E1CusQc-0001K3-00@hera.math.uni.wroc.pl>
From: Waldek Hebisch <hebisch@math.uni.wroc.pl>
X-Archive-Number: 200501/87
X-Sequence-Number: 5017

> One of my programs, which I have used with many compilers in the past,
> started an odd behavior as soon as I compiled with GPC.  I rooted down
> to what the cause was and found this:
> 
> EOF is not true on a reset empty file.
> 
> Here is the program:
> 
<snip>
> echo -------------------- compile
> gpcc gpcbug2005jan27.p
> echo --------------------
<snip>

You missed an important information. If I type (with `eof.pas' beeing
your file):
../gpc-3.4.3/gcc/xgpc -B../gpc-3.4.3/gcc/ -O -ftransparent-file-names -fstandard-pascal eof.pas
./a.out

I get:
NOT eof of namebook
NOT eof of namelist

However, if I type:
../gpc-3.4.3/gcc/xgpc -B../gpc-3.4.3/gcc/ -O --transparent-file-names eof.pas
./a.out

I get:
eof of namebook
eof of namelist

Both with my (modified) copy of gpc-20041218 on Linux. Yes, standard requires
that you get EOF on empty file.

-- 
                              Waldek Hebisch
hebisch@math.uni.wroc.pl 

Previous mail   Next mail   Formatted
Overview  10 days   Subject   Date   Thread   Author  


In reply to

Author Subject Date
Tom Schneider EOF is not true on reset empty file 27 Jan 2005, 02:26:45

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).