summaryrefslogtreecommitdiff
path: root/dviware/dvipaste/dvipaste.patch.01
blob: 0102c7e59e62509916179fe7b5e37e561fe1dfbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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;
  }