From eichin@ATHENA.MIT.EDU Sun Jun  3 21:09:42 1990
SUM: Mark W. Eichin <eichin>->bugs
SUB: RTPC hc2.1y extern breaks struct 
Received: by E40-PO.MIT.EDU (5.45/4.7) id AA02440; Sun, 3 Jun 90 21:09:26 EDT
Received: from PORTNOY.MIT.EDU by ATHENA.MIT.EDU with SMTP
	id AA07969; Sun, 3 Jun 90 21:09:23 EDT
Received: by PORTNOY.MIT.EDU (5.61/4.7) id AA20199; Sun, 3 Jun 90 21:09:21 -0400
Date: Sun, 3 Jun 90 21:09:21 -0400
From: Mark W. Eichin <eichin@ATHENA.MIT.EDU>
Message-Id: <9006040109.AA20199@PORTNOY.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Subject: RTPC hc2.1y extern breaks struct 


/* hmm... */
struct y1;
struct y2;

extern struct y1 v1[7];   /* NOTE: >>y1<< is important here, not v1 */

struct y1 {
  int x;
};

struct y2 {
  int x;
};

struct y1 v1[7];  /* this ends up undefined below */
struct y1 w1[7];  /* >>as does this<<, implying that the _type_, not the
		     variable, is broken */
struct y2 v2[7];  /* these two are fine. */
struct y2 w2[7];

/* the end */

/*
% cc -c dck..c ; nm -pog dck..o
dck..o:00000000 A .oVncs
dck..o:00000000 A .oVhc2.1y
dck..o:         U _v1
dck..o:         U _w1
dck..o:0000001c C _v2
dck..o:0000001c C _w2
*/






From eichin@ATHENA.MIT.EDU Sun Jun 10 18:38:38 1990
SUM: Mark W. Eichin <eichin>->bugs
SUB: (VAX & RT) Version 6.4R: cpp "Unreasonable include nesting"
Received: by E40-PO.MIT.EDU (5.45/4.7) id AA15886; Sun, 10 Jun 90 18:12:59 EDT
Received: from PORTNOY.MIT.EDU by ATHENA.MIT.EDU with SMTP
	id AA09014; Sun, 10 Jun 90 18:12:57 EDT
Received: by PORTNOY.MIT.EDU (5.61/4.7) id AA01366; Sun, 10 Jun 90 18:12:50 -0400
Date: Sun, 10 Jun 90 18:12:50 -0400
From: Mark W. Eichin <eichin@ATHENA.MIT.EDU>
Message-Id: <9006102212.AA01366@PORTNOY.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Subject: (VAX & RT) Version 6.4R: cpp "Unreasonable include nesting"


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_


From eichin@ATHENA.MIT.EDU Mon Jul  9 07:23:49 1990
SUM: Mark W. Eichin <eichin>->bugs
SUB: /usr/andrew/lib/tpls/letter.tpl has bogus lines
Received: by E40-PO.MIT.EDU (5.45/4.7) id AA02378; Sun, 8 Jul 90 23:07:04 EDT
Received: from BILL-THE-CAT.MIT.EDU by ATHENA.MIT.EDU with SMTP
	id AA11431; Sun, 8 Jul 90 23:07:01 EDT
Received: by BILL-THE-CAT.MIT.EDU (5.61/4.7) id AA22232; Sun, 8 Jul 90 23:06:57 -0400
Date: Sun, 8 Jul 90 23:06:57 -0400
From: Mark W. Eichin <eichin@ATHENA.MIT.EDU>
Message-Id: <9007090306.AA22232@BILL-THE-CAT.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Subject: /usr/andrew/lib/tpls/letter.tpl has bogus lines


Beginning at line 25 of /usr/andrew/lib/tpls/letter.tpl see the following:

\define{display
menu:[Region~4,Display~14]
attr:[Flags KeepPriorNL Int Set]
attr:[Flags KeepNextNL Int Set]
attr:[LeftMargin LeftMargin Inch 32768]
attr:[RightMargin RightMargin Inch 32768]}
attr:[Justification LeftJustified Point 0]}
\define{example
menu:[Region~4,Example~12]

Note the extra closed curly brace at the beginning of line 30. This
leads to any "letter" having attr:[Justification LeftJustified Point 0]}
at the beginning. [This is on the RT with the Andrew locker attached.]
						_Mark_


