[comp.windows.x] Structure initiallization problem

rgr@m10ux.UUCP (Duke Robillard) (03/24/89)

From time to time, when building X stuff on my Sun 3/50, SunOS 4.0 (but
it also happened on SunOS 3.5) I get a syntax error message from the
compiler in a structure initialization.  As an example, I just got
it in the HP widget set stuff: 

"Manager.c", line 166: } expected

It seems to be related to a trailing comma in the initialization stuff.
For example:

struct-typdefed-name variable-name =
{
       {
         ....
            NULL,
            NULL,<--this one, here, I think
       },{
            0,
            NULL,
         ...
};

It doesn't help to take the comma out, though.

I've seen this in a number of pieces of X code, both from the release 
and from the net.  Does anyone know anything about it?

thanks in advance.



-- 
|  Duke Robillard                                                            |
|                                      |                                     |
|  ARPA:     rgr@m10ux.att.com         | BITNET:   rgr%m10ux.uucp@psuvax1 (?)|
|  UUCP:     {backbone!}att!m10ux!rgr  |                                     |