🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.windows.interviews
2 messages
2 total messages Started by Mike Howard Wed, 16 Dec 1992 23:35
bugs in IV3.1 list macros
#1353
Author: Mike Howard
Date: Wed, 16 Dec 1992 23:35
44 lines
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.
Re: bugs in IV3.1 list macros
#1228
Author: Mark Linton
Date: Mon, 21 Dec 1992 22:33
16 lines
1436 bytes
In article <24480@hacgate.SCG.HAC.COM>, howard@aic.hrl.hac.com (Mike Howard) writes:
|> 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.
|> 
|> 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 don't see anything wrong with that macro, nor have I heard
of any problems on other compilers.  Perhaps the bug is in
the CenterLine compiler?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads