[comp.windows.open-look] Porting XView 2.0 to a Cray

ml3q+@andrew.cmu.edu (Michael H. Lambert) (11/29/90)

I am attempting to port XView 2.0 (from expo.lcs.mit.edu) to a Cray Y-MP
running UNICOS (a System V derivative).  I have a couple of questions:

1) The Cray likes to address 64-bit words.  Does anyone know if XView
assumes that words are 32 bits long?  If so, do you think this would be
easy to fix?

2) Although it checks to see if __STDC__ is defined, XView does not
conform to the ANSI C standard.  In particular, the EXTERN_FUNCTION
macro produces bogus function declarations.  For example (from attr.h)

	EXTERN_FUNCTION(Attr_avlist, attr_create_list, (DOTDOTDOT));

creates a declaration

	Attr_avlist attr_create_list(...);

This is not valid because the ellipsis must follow another parameter. 
Does anyone have patches to allow compilation with a Standard C compiler?

I would appreciate any help anyone could provide.

Michael H. Lambert
Pittsburgh Supercomputing Center
lambert@psc.edu