Tk Source Code

View Ticket
Login
Ticket UUID: 434538
Title: tkUnixDraw.c", line 97: error 1563: Expr
Type: Bug Version: obsolete: 8.3.3
Submitter: nobody Created on: 2001-06-19 17:50:40
Subsystem: 84. Unix Build Assigned To: nobody
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2001-06-20 03:42:45
Resolution: Works For Me Closed By: hobbs
    Closed on: 2001-06-19 20:42:45
Description:
During the make I get:
tkUnixDraw.c", line 97: error 1563: Expression in if 
must be scalar

Line 97 is a submitted by problem # 220747.

HPUX 11.00 gcc v2.8.1

Any help would be very nice.
User Comments: hobbs added on 2001-06-20 03:42:45:
Logged In: YES 
user_id=72656

This is fairly simple code:

97=>    if (XEmptyRegion((Region) damageRgn)) {
return 0;
    } else {
return 1;
    }

that used to be (from early days):

    return XEmptyRegion((Region) damageRgn) ? 0 : 1;

The translation seems straightforward, and the defn of
XEmptyRegion in the Tk xlib headers (as well as Linux) is:

extern int XEmptyRegion(
#if NeedFunctionPrototypes
    Region/* r */
#endif
);

So something might be wrong with the user's installed X 
headers.