🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #25366

more Xtools problems

#25366
From: dana
Date: Wed, 08 Apr 1987 15:25
29 lines
1249 bytes
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
Technical Details
Message-ID: <521@faline.bellcore.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!princeton!allegra!ulysses!faline!dana

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!princeton!allegra!ulysses!faline!dana
From: dana@faline.UUCP
Newsgroups: comp.windows.x
Subject: more Xtools problems
Message-ID: <521@faline.bellcore.com>
Date: Wed, 8-Apr-87 10:25:08 EST
Article-I.D.: faline.521
Posted: Wed Apr  8 10:25:08 1987
Date-Received: Sat, 11-Apr-87 21:14:59 EST
Lines: 29