[comp.windows.x] more Xtools problems

dana@faline.UUCP (04/08/87)

Hi,
	For those keeping track of things to make Xtools more
portable when it is released 'for real', here's another one.

I have noticed that in making resource arguments, one of the
functions (Copy[ToFrom]Arg) uses bcopy(src, dst, size).  Now, if
src and dst are considered numbers, as opposed to text strings,
this does not work the same on the VAX and the SUN.  Example:

	short x = 0x1234;
	int y = 0x89abcdef;
	
	bcopy(&x, &y, sizeof(x))
	
On a vax:
	y = 0x89ab1234;
but on a sun:
	y = 0x1234cdef;
	
which causes many problems for arguments.  To get around this, I
changed all shorts to ints, but this is not a real solution.  I
hope something gets worked out before the real release.
Otherwise, the package looks good.

			Dana Chee
			MRE 2Q-250
			(201) 829-4488
			dana@thumper.bellcore.com