[5142] in Athena Bugs
(VAX & RT) Version 6.4R: cpp "Unreasonable include nesting"
daemon@ATHENA.MIT.EDU (Mark W. Eichin)
Sun Jun 10 18:13:07 1990
Date: Sun, 10 Jun 90 18:12:50 -0400
From: Mark W. Eichin <eichin@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
System type, version: (RT/PC, CVAXSTAR) Version 6.4R
System name: portnoy, e40-008-7
What's wrong:
/source/bsd-4.3/vax/lib/cpp/cpp.c, line 130:
# define MAXINC 10
This is the maximum include nesting depth. As a gross generalization,
C++ uses makes more extensive use of #include than C; AT&T Cfront (1.2
and 2.0) uses /lib/cpp (or rather, cc -E) and I've had trouble
building UniDraw (an addition to the InterViews library) because of
this.
What should have happened:
MAXINC should probably be the maximum number of file descriptors. Even
better, it should dynamically reallocate file handles in order to
handle excessively complex code.
Workarounds:
On the RT, I can make Cfront use "hc -nocpp -E" instead, which uses
the built in ANSI preprocessor instead of invoking the (pcc) /lib/cpp.
_Mark_