This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Cpp patches for VMS
On Wed, Nov 21, 2001 at 06:37:31PM -0800, Douglas B. Rupp wrote:
> There's an undocumented macro __UNIX_FOPEN in stdio.h that, if
> defined, will redefine fopen to pass "rfm=stmlf" as in my proposed
> patch to cppmain.c.
>
> I could add that to xm-vms.h, do you want to go that route?
My current plan is to change the output code so we build up an entire
line in a user-side buffer, then fwrite() it all at once. This should
eliminate the problem you're having, without needing any VMS specific
gook. It'll also let me junk a bunch of almost-duplicate code, and
will be faster to boot (stdio can have a lot of overhead).
zw