compressed maps
Hokey
hokey%plus5 at ADS.COM
Sun Jun 5 03:21:45 AEST 1988
I just made some small changes to parse.y which examined the file name.
If the name ends in .Z, make input come from a pipe from zcat.
This has been working for me since V8 pathalias.
This does point out a shortcoming in the stdio routines.
It would be really nice to have [fp][fp]reopen() routines, to handle
all the possible combinations of "Close the old file/pipe and make it
a new file/pipe".
Another possibility would be to have a preopen() function. In this case,
both freopen() and preopen() would have to be able to properly close whatever
(either a file or a pipe) is currently associated with the FILE before opening
the new file or pipe.
--
Hokey
More information about the Comp.std.c
mailing list