Article View: comp.windows.interviews
Article #1353bugs in IV3.1 list macros
From: Mike Howard
Date: Wed, 16 Dec 1992 23:35
Date: Wed, 16 Dec 1992 23:35
44 lines
2195 bytes
2195 bytes
The List macros appear to have been broken between IV3.1beta3 and IV3.1.
They are given in <OS/list.h>. I have a working 3.1beta3 program that
complains about the macro in 3.1.
/usr/local/CenterLine/bin/CC -Dcplusplus_2_1 -I/appl1/iv3.1/installed/include -I/appl1/X11R5/include -pipe -c ../arcdial.C
CC ../arcdial.C:
"../arcdial.C", line 17: error: argument declaration syntax
"../arcdial.C", line 17: error: syntax error
"../arcdial.C", line 17: error: bad declaration of item -- did you forget a ';'?
"../arcdial.C", line 17: error: syntax error
"../arcdial.C", line 17: error: syntax error
"../arcdial.C", line 17: warning: `.' used for qualification; please use `::' (anachronism)
"../arcdial.C", line 17: error: argument type expected for insert()
"../arcdial.C", line 17: error: bad qualifier impl_ for insert()
7 errors
*** Error code 1
make: Fatal error: Command failed for target `arcdial.o'
line 17 is:
implementPtrList(LabelList,ArcDialLabel);
which expands into:
void LabelList::insert(long index, ArcDialLabel* item) {
const __AnyPtr p = item;
impl_.insert(index, p);
}
ListItr(LabelList)::ListItr(LabelList)(const LabelList& list) {
list_ = &list;
cur_ = 0;
}
ListUpdater(LabelList)::ListUpdater(LabelList)(LabelList& list) {
list_ = &list;
cur_ = 0;
}
The errors occur on the 1st and 3rd lines of the expanded macro.
My program compiles fine under IV3.1 if I include OS/line.h from the
beta3 distribution, so this isn't a big enough problem to spend a lot
of debugging time (on a macro <<groan>>), and I can't tell right off
what the problem is. For what it's worth, I'm on a Sun 4/330 with
32MB and SunOS4.1.1, using CenterLine CC to compile.
I suggest substituting the beta3 copy of OS/list.h for now.
Technical Details
Message-ID:
<24480@hacgate.SCG.HAC.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!usc!hacgate!bug.hrl!howardShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!usc!hacgate!bug.hrl!howard From: howard@aic.hrl.hac.com (Mike Howard) Newsgroups: comp.windows.interviews Subject: bugs in IV3.1 list macros Keywords: 3.1 List Message-ID: <24480@hacgate.SCG.HAC.COM> Date: 16 Dec 92 23:35:01 GMT Sender: news@hacgate.SCG.HAC.COM Organization: Hughes Research Labs Lines: 44