Xref: utzoo comp.lang.c:16584 comp.windows.x:8312 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!wiley!spp2!ries%arcturus From: ries@arcturus (Marc Ries) Newsgroups: comp.lang.c,comp.windows.x Subject: Re: Linting a routine using varargs (WidgetSet()) Keywords: lint, VARARGS, varargs Message-ID: <1669@spp2.UUCP> Date: 27 Feb 89 16:39:49 GMT References: <1665@spp2.UUCP> Sender: news@spp2.UUCP Reply-To: ries@spp2.UUCP (Marc Ries) Organization: TRW SEDD Lines: 37 Might also mention that (in pursuit of the truth 8-*) I have tried the lint /*VARARGS*/ flag, both just before the invocation of my call to WigetSet() as well as just before the routine that contains the WidgetSet call. Neither made a difference. Both my program, and the actual PD WidgetSet() routines, see NULL defined as a zero. The calls to WidgetSet() are setup along these lines: static Widget do_it(parent) Widget parent; { Arg al[25]; int ac = 0; Widget ...; ... XtSetArg(al[ac], ....); ac++; (Widget) mytextwidget = DwtSTextCreate(parent, "mylabel", al, ac); WidgetSet(mytextwidget, DwtNfocusCallback, my_callback, DwtNadbTopAttachment, DwtAttachOppWidget, DwtNadbTopWidget, abovewidget, DwtNadbLeftAttachment, DwtAttachWidget, DwtNadbLeftWidget, abovewidget, DwtNadbRightAttachment, DwtAttachAdb, NULL); XtManageChild(mytextwidget); ... } Marc Ries TRW Defense Systems Group/HMI UUCP: ...!spp2!ries@trwspp.UUCP