[comp.windows.x] Header file/man page discrepancy

Damon.Lipparelli@CS.CMU.EDU (07/21/89)

Hello.  I am just writing to let the X people know about a discrepancy
between
manual page for XtDispatchEvent(), and the declaration of it in the file
Intrinsic.h.
The manual page defines it as:

	Boolean XtDispatchEvent(event)
	XEvent *event;

But, Intrinsic.h declares it with:

	extern void XtDispatchEvent(); /* event */
	/* XEvent *event; */

The man page says that XtDispatchEvent returns True if it dispatches the
event
to some handler and False if it found no handler to dispatch the event
to.

Just thought you might be curious.

Damon
lipp@edrc.cmu.edu

swick@ATHENA.MIT.EDU (Ralph R. Swick) (07/21/89)

> The manual page defines it as:
>
> 	Boolean XtDispatchEvent(event)
> 	XEvent *event;
>
> But, Intrinsic.h declares it with:
>
>	extern void XtDispatchEvent(); /* event */
>	/* XEvent *event; */

Yes, thank you; this is known bug in the R3 implementation. 
The document is the way we intend the interface to be, unfortunately
the code slipped through the cracks.

davidh@dent.Berkeley.EDU (David S. Harrison) (07/22/89)

> 
> 	Boolean XtDispatchEvent(event)
> 	XEvent *event;
> 
> 
> 	extern void XtDispatchEvent(); /* event */
> 	/* XEvent *event; */
> 

I submitted a bug report and patches to fix this problem (the
experts say the documentation is correct).  I assume it will
be fixed in R4.  If you would like to try my patches (which
seem to work fine),  you can drop a note to davidh@ic.Berkeley.EDU.
If I get enough requests,  I may post the patch to comp.sources.x
instead of mailing out the requests individually.

			David Harrison
			UC Berkeley Electronics Research Lab
			(davidh@ic.Berkeley.EDU, ...!ucbvax!ucbcad!davidh)