diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /dviware/dvipaste/dvipaste.patch.01 |
Initial commit
Diffstat (limited to 'dviware/dvipaste/dvipaste.patch.01')
-rw-r--r-- | dviware/dvipaste/dvipaste.patch.01 | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/dviware/dvipaste/dvipaste.patch.01 b/dviware/dvipaste/dvipaste.patch.01 new file mode 100644 index 0000000000..0102c7e59e --- /dev/null +++ b/dviware/dvipaste/dvipaste.patch.01 @@ -0,0 +1,76 @@ +This should fix dvipaste.c so that it will work on big-endian +machines as well. + + Ed Sznyter + ews@babel.COM + Jun 3, 1993 + +*** dvipaste.c.new Thu Jun 3 09:30:02 1993 +--- dvipaste.c Thu Jun 3 09:29:23 1993 +*************** +*** 338,347 **** + int num; + FILE *f; + { +! char *p; +! p=(char *)# +! PutByte(*(p+1), f); +! PutByte(*p, f); + return; + } + +--- 346,353 ---- + int num; + FILE *f; + { +! PutByte( (num>>8) , f); +! PutByte( (num>>0) , f); + return; + } + +*************** +*** 351,360 **** + FILE *f; + { + int i; +! char *p; +! p = (char *)&trio; +! for (i=2; i>=0; i--) +! PutByte( *(p+i), f); + return; + } + +--- 357,365 ---- + FILE *f; + { + int i; +! PutByte( (trio>>16) , f); +! PutByte( (trio>>8) , f); +! PutByte( (trio>>0) , f); + return; + } + +*************** +*** 362,372 **** + long quad; + FILE *f; + { +! int i; +! char *p; +! p = (char *)&quad; +! for (i=3; i>=0; i--) +! PutByte( *(p+i), f ); + return; + } + +--- 367,376 ---- + long quad; + FILE *f; + { +! PutByte( (quad>>24) , f); +! PutByte( (quad>>16) , f); +! PutByte( (quad>>8) , f); +! PutByte( (quad>>0) , f); + return; + } + |