public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Proposed toplev/parser protocol change
@ 1998-01-14  4:17 Per Bothner
  0 siblings, 0 replies; only message in thread
From: Per Bothner @ 1998-01-14  4:17 UTC (permalink / raw)
  To: egcs; +Cc: brolley

Please look at the changes marked if #if USE_CPPLIB in toplev.c.
You will see a new interface for initializing the lexer/paser,
and opening the input file.  Basically, the change is to make the
front-end be responsible for opening the input file, and removing
the finput global variable from the common code.  This is more
flexible, and is desirable for most languages (C/ObjC/C++ so the
front-end can use cpplib;  Java so the front-end can open a binary
.class file in binary mode;  Chill so the front-end can get the
real name of the actual input file).

I would like to change toplev.c so those changes are standard,
and remove the old interface.  I am not proposing to actually
make use of cpplib the default for C/C++ - only this specific
change in the interface between toplev.c and the parsers.
Note that this requires changing every front-end to match the
next interface.

It would help if a f77 hacker could make the appropriate patch
for Fortran, but I can probably figure it out myself.

Any reason this would be a bad time to make this change?

	--Per Bothner
Cygnus Solutions     bothner@cygnus.com     http://www.cygnus.com/~bothner

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-01-14  4:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-14  4:17 Proposed toplev/parser protocol change Per Bothner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).