Date: Sun, 20 Oct 1996 13:42:18 +0200 (IST) From: Eli Zaretskii To: "Salvador Eduardo Tropea (SET)" Cc: djgpp-workers AT delorie DOT com Subject: Re: .INF files questions In-Reply-To: <9610171437.aa28928@ailin.inti.edu.ar> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 17 Oct 1996, Salvador Eduardo Tropea (SET) wrote: > Actually my code automatically converts all the DOS files to UNIX, first ask > to the operator if he wants that. Is NOT the same, I use the binary mode for > the files becase is: > a) Much more fast. > b) Much more safe, I tried with text mode but is imposible, soon or later some > thing fails in the seek routines, I'm not making any pointer arithmetic, I'm Try the libc in v2.01, it should solve these problems. > just storing values returned by ftell and then using it with fseek, that's > works the major part of the time but not ever. My task uses a lot of seeks and Why do you need at all to seek? You have virtual memory; just read all the file into memory and forget about disk I/O. That's how GNU info works. > If somebody touchs one of the .inf files with a DOS editor is crazy because > that isn't the way to modify the file, you destroy can mess the pointers of the > indirect table!!!, the right way is modify the SOURCES not the .infs, if the Many people don't download the Texinfo sources, and don't know how to use Makeinfo. Sometimes the Info files include errors (such as mis-spelled cross-references to other Info files) which need to be corrected. It is true that this invalidates the tag tables, but Info readers generally use the tag table only as guideline, searching a few KBytes around the position they point to, so a small change is usually not a problem at all.