Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!eecae!netnews.upenn.edu!rutgers!att!ulysses!mhuxo!mhuxu!m10ux!rgr From: rgr@m10ux.UUCP (Duke Robillard) Newsgroups: comp.windows.x Subject: Structure initiallization problem Message-ID: <892@m10ux.UUCP> Date: 23 Mar 89 19:55:35 GMT References: <8902081425.AA06738@black-ice.tis.llnl.gov> <8903191754.AA12616@tub.UUCP> Reply-To: rgr@m10ux.UUCP (Duke Robillard) Organization: AT&T Bell Labs, Murray Hill Lines: 35 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 | |