Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!ksr!ubglue!dudek From: dudek@ubglue.ksr.com (Glen Dudek) Newsgroups: comp.windows.x Subject: Re: Problems with ximpv of V10R4 Message-ID: <189@ksr.UUCP> Date: Wed, 7-Oct-87 11:01:55 EDT Article-I.D.: ksr.189 Posted: Wed Oct 7 11:01:55 1987 Date-Received: Sat, 10-Oct-87 10:29:43 EDT References: <17066@yale-celray.yale.UUCP> Sender: nobody@ksr.UUCP Reply-To: dudek@ksr.UUCP (Glen Dudek) Organization: Kendall Square Research, Cambridge MA Lines: 45 Keywords: ximpv I had to change some byte-order dependencies to get ximpv to work on our Suns - context diffs to 'imPdefs.h' and 'decode.c' follow: Glen Dudek ksr!dudek@harvard.harvard.edu *** /tmp/,RCSt1a05090 Wed Oct 7 10:53:41 1987 --- imPdefs.h Wed Oct 7 10:52:06 1987 *************** *** 57,63 **** } parva; /**************************************/ parva param[10]; #define V(i) (param[i].pval) ! #define v(i) (param[i].pval2.loval) #define P(i) (param[i].pptr) /* extend sign for an int */ ! #define EXTSIGN(n) if (v(n)<0) param[n].pval2.hival = 0377 --- 57,63 ---- } parva; /**************************************/ parva param[10]; #define V(i) (param[i].pval) ! #define v(i) (param[i].pval & 0xff) #define P(i) (param[i].pptr) /* extend sign for an int */ ! #define EXTSIGN(n) if (v(n)&0x80) param[n].pval = (char)v(n); *** /tmp/,RCSt1a05095 Wed Oct 7 10:53:54 1987 --- decode.c Wed Oct 7 10:51:47 1987 *************** *** 127,134 **** sp = cmdpmsk[CMDPMIX(ccode)]; while (*sp!=0) { if (*sp == 'B') { ! parap->pval2.hival = 0; ! parap->pval2.loval = *Cinpcurr; Cinpcurr++; } else if (*sp == 'W') { --- 127,133 ---- sp = cmdpmsk[CMDPMIX(ccode)]; while (*sp!=0) { if (*sp == 'B') { ! parap->pval = ((BDIM)*Cinpcurr) & 0xff; Cinpcurr++; } else if (*sp == 'W') {