John Levon <[EMAIL PROTECTED]> writes:
| On Fri, 15 Sep 2000, Angus Leeming wrote:
|
| > John,
| > thanks for the advice. I have compiled the stuff in src/frontends/kde against
| > kde-1.1.2, as you suggested. I used the DEC cxx compiler to test the code, so
| > haven't tried to link. The code compiles fine with this compiler; see
| > attached patch.
| >
|
| Your patch has :
|
| - GOTOREF, GOTOBACK,
| + GOTOREF, GOTOBACK
|
| Is this really necessary ? I know for structures at least a trailing , is
| part of the standard, maybe it's different for enums. I'll have to watch
| out for this, as its standard practice in the linux kernel, and I do it
| without thinking.
struct Foo {
int a;
int b; ,
};
is certainly not allowed, so you are probably thingking of
initilization of structures
Foo bar = { 5, 7, };
Are you sure this is allowed in C89 and in C++?
in C99 you are allowed to end an enum list with ',' in C++ you are not
allowed to do this. Even if Gcc has that as an extension.
Lgb