]> git.pld-linux.org Git - packages/d1x.git/blame - d1x-gcc3.patch
- add missing include
[packages/d1x.git] / d1x-gcc3.patch
CommitLineData
7079c373
JB
1--- d1x/include/vecmat.h.orig Tue Jun 15 00:02:28 1999
2+++ d1x/include/vecmat.h Sat Oct 12 02:00:57 2002
3@@ -247,8 +247,8 @@
4
5 #ifdef __WATCOMC__
6 #pragma aux vm_vec_make "*_" parm [eax] [edx] [ebx] [ecx] value [eax] modify exact [] = \
7-"mov 0[eax],edx" \
8-"mov 4[eax],ebx" \
9+"mov 0[eax],edx" \
10+"mov 4[eax],ebx" \
11 "mov 8[eax],ecx";
12
13 #endif
14@@ -258,8 +258,8 @@
15
16 #ifdef __WATCOMC__
17 #pragma aux vm_angvec_make "*_" parm [eax] [dx] [bx] [cx] value [eax] modify exact [] = \
18-"mov 0[eax],dx" \
19-"mov 2[eax],bx" \
20+"mov 0[eax],dx" \
21+"mov 2[eax],bx" \
22 "mov 4[eax],cx";
23
24 #endif
25@@ -470,20 +470,20 @@
26 #ifdef INLINE
27 #ifdef __WATCOMC__
28 #pragma aux vm_vec_dotprod parm [esi] [edi] value [eax] modify exact [eax ebx ecx edx] = \
29-"mov eax,[esi]" \
30-"imul dword ptr [edi]" \
31-"mov ebx,eax" \
32-"mov ecx,edx" \
33-\
34-"mov eax,4[esi]" \
35-"imul dword ptr 4[edi]" \
36-"add ebx,eax" \
37-"adc ecx,edx" \
38-\
39-"mov eax,8[esi]" \
40-"imul dword ptr 8[edi]" \
41-"add eax,ebx" \
42-"adc edx,ecx" \
43+"mov eax,[esi]" \
44+"imul dword ptr [edi]" \
45+"mov ebx,eax" \
46+"mov ecx,edx" \
47+\
48+"mov eax,4[esi]" \
49+"imul dword ptr 4[edi]" \
50+"add ebx,eax" \
51+"adc ecx,edx" \
52+\
53+"mov eax,8[esi]" \
54+"imul dword ptr 8[edi]" \
55+"add eax,ebx" \
56+"adc edx,ecx" \
57 \
58 "shrd eax,edx,16";
59
60--- d1x/arch/linux/linuxnet.c.orig Mon Feb 7 11:26:06 2000
61+++ d1x/arch/linux/linuxnet.c Sat Oct 12 02:03:10 2002
62@@ -1,5 +1,6 @@
63
64 #include "types.h"
65+#include <string.h>
66
67 #include "ipx_drv.h"
68 #include "ipx_bsd.h"
69--- d1x/arch/linux/include/ukali.h.orig Tue Jun 15 00:01:50 1999
70+++ d1x/arch/linux/include/ukali.h Sat Oct 12 02:03:39 2002
71@@ -69,4 +69,4 @@
72 int KaliSendPacket(int hand, char *data, int len, kaliaddr_ipx *to);
73 int KaliReceivePacket(int hand, char *data, int len, kaliaddr_ipx *from);
74
75-#endif __UKALI_H__
76+#endif
77--- d1x/main/ip_base.h.orig Wed Mar 1 10:21:46 2000
78+++ d1x/main/ip_base.h Sat Oct 12 02:10:39 2002
79@@ -5,9 +5,9 @@
80 #ifndef ___IP_BASE_H
81 #define ___IP_BASE_H
82
83-#include <map.h>
84-#include <list.h>
85-#include <algo.h>
86+#include <map>
87+#include <list>
88+#include <algorithm>
89 extern "C" {
90 #include "ip_basec.h"
91 #include "fix.h"
92@@ -17,6 +17,8 @@
93 #include "timer.h"
94 }
95
96+using namespace std;
97+
98 class ip_addr;//prototype for arch_ip_queryhost
99
100 #include "ipclient.h"
101--- d1x/arch/sdl/digi.c.orig Thu May 25 03:11:50 2000
102+++ d1x/arch/sdl/digi.c Sat Oct 12 02:12:19 2002
103@@ -214,8 +214,8 @@
104 sldata = sl->samples;
105 }
106 v = *(sldata++) - 0x80;
107- *(sp++) = mix8[ *sp + fixmul(v, vl) + 0x80 ];
108- *(sp++) = mix8[ *sp + fixmul(v, vr) + 0x80 ];
109+ *(sp) = mix8[ *sp + fixmul(v, vl) + 0x80 ]; sp++;
110+ *(sp) = mix8[ *sp + fixmul(v, vr) + 0x80 ]; sp++;
111 }
112 sl->position = sldata - sl->samples;
113 }
114--- d1x/texmap/scanline.c.orig Wed Dec 8 02:08:10 1999
115+++ d1x/texmap/scanline.c Sat Oct 12 02:13:27 2002
116@@ -86,7 +86,7 @@
117
118 fade = tmap_flat_shade_value<<8;
119 for (x= fx_xright-fx_xleft+1 ; x > 0; --x ) {
120- *dest++ = gr_fade_table[ fade |(*dest)];
121+ *dest = gr_fade_table[ fade |(*dest)]; dest++;
122 }
123 }
124
125--- d1x/main/game.c.orig Sat Oct 12 02:13:49 2002
126+++ d1x/main/game.c Sat Oct 12 02:15:14 2002
127@@ -2710,7 +2710,7 @@
128
129 //DEFINE_CHEAT needs to be done this weird way since stupid c macros can't (portably) handle multiple args, nor can they realize that within {}'s should all be the same arg. blah.
130 #define DEFINE_CHEAT(name) int cheat_ ## name ## _index;\
131- ubyte cheat_ ## name ## []
132+ ubyte cheat_ ## name []
133
134 DEFINE_CHEAT(frametime)={KEY_F, KEY_R, KEY_A, KEY_M, KEY_E, KEY_T, KEY_I, KEY_M, KEY_E};
135 int gr_renderstats=0;
136--- d1x/main/netlist.c.orig Sat Oct 28 11:31:08 2000
137+++ d1x/main/netlist.c Sat Oct 12 02:18:28 2002
138@@ -297,7 +297,7 @@
139 if(game.flags & NETFLAG_ENABLE_ALT_VULCAN)
140 info+=sprintf(info,"\n Alt Vulcan");
141 info+=sprintf(info,"\n Banned");
142-#define NETFLAG_SHOW_BANNED(D,V) if (!(game.flags&NETFLAG_DO ## D)) {if (i>3) i=0; else i++; info+=sprintf(info,"%c " ## #V,i?sep0:'\n');b++;sep0=',';}
143+#define NETFLAG_SHOW_BANNED(D,V) if (!(game.flags&NETFLAG_DO ## D)) {if (i>3) i=0; else i++; info+=sprintf(info,"%c " #V,i?sep0:'\n');b++;sep0=',';}
144 NETFLAG_SHOW_BANNED(LASER,laser);
145 NETFLAG_SHOW_BANNED(QUAD,quad);
146 NETFLAG_SHOW_BANNED(VULCAN,vulcan);
This page took 0.082358 seconds and 4 git commands to generate.