[1451] in Athena Bugs

home help back first fref pref prev next nref lref last post

A bug with X11R3 <--(please put the name of the program here)

daemon@ATHENA.MIT.EDU (--------------------------------)
Thu Dec 1 00:46:30 1988

To: bugs@ATHENA.MIT.EDU
Date: Thu, 01 Dec 88 00:43:04 EST
From: -------------------------------- <joe@ATHENA.MIT.EDU>
Program with which you had the problem: X11R3 Intrinsics.h

Name of person who discovered the bug: Joseph Wang
Their MIT phone number:x5-9283
Their MIT address:MacGregor C-111
Their Athena Login ID: joe
Name of consultant reporting bug:
------------------------------------------------------------------------
A brief synopsis of the problem:

The definition of Dimension in the R3 Intrinsics.h is incompatible with
XGetGeometry




------------------------------------------------------------------------
Please describe the problem in detail (mention any necessary files or
commands that may be involved, on which machine the bug happened, and what
the program did that was wrong):

Instead of typedef'ing Dimension as unsigned int.  R3 Intrinsics typedef's
it as unsigned short.  XGetGeometry expects a pointer to unsigned int.  So
when a pointer to a variable of type Dimension is passed as an argument
to XGetGeometry, an RT returns funny values.




------------------------------------------------------------------------
Repeat by (please enter a set of commands which will allow us to 
repeat the bug):
Dimension blah, blah1, blah2 ...
XGetGeometry(display, window, &blah, &blah2 ...)


------------------------------------------------------------------------
Fix (if you know what it is):

Convert the inputs of XGetGeometry from unsigned int * to unsigned short *.
There needs to be a way of insuring that the typedef of X Toolkit don't
conflict with X lib.



home help back first fref pref prev next nref lref last post