1 --- firebird-1.5.0.4290/src/extern/editline/editline.c.orig 2003-11-13 08:28:47.000000000 +0100
2 +++ firebird-1.5.0.4290/src/extern/editline/editline.c 2004-05-28 12:17:26.000000000 +0200
9 +#if defined(USE_TERMCAP)
14 ** Manifest constants.
18 STATIC CHAR *editinput();
21 -#if defined(USE_TERMCAP)
22 -extern char *getenv();
23 -extern char *tgetstr();
24 -extern int tgetent();
25 -extern int tgetnum();
26 -#endif /* defined(USE_TERMCAP) */
29 ** TTY input/output functions.
30 --- firebird-1.5.0.4290/src/jrd/gdsold.h.orig 2003-06-05 12:12:45.000000000 +0200
31 +++ firebird-1.5.0.4290/src/jrd/gdsold.h 2004-05-28 16:25:57.000000000 +0200
36 -ISC_STATUS GDS_EXPORT gds__ftof(char *,
37 +SLONG /*ISC_STATUS*/ GDS_EXPORT gds__ftof(char *,
43 ISC_STATUS GDS_EXPORT gds__print_status(ISC_STATUS *);
45 -ISC_STATUS GDS_EXPORT gds__sqlcode(ISC_STATUS *);
46 +SLONG /*ISC_STATUS*/ GDS_EXPORT gds__sqlcode(ISC_STATUS *);
48 ISC_STATUS GDS_EXPORT gds__ddl(ISC_STATUS *,
50 --- firebird-1.5.0.4290/src/jrd/gdsold.h.orig 2004-05-28 16:26:27.000000000 +0200
51 +++ firebird-1.5.0.4290/src/jrd/gdsold.h 2004-05-28 16:48:17.000000000 +0200
56 -ISC_STATUS GDS_EXPORT gds__event_block(char **,
57 +SLONG /*ISC_STATUS*/ GDS_EXPORT gds__event_block(char **,
61 --- firebird-1.5.0.4290/src/jrd/cvt.cpp.orig 2003-08-11 23:42:58.000000000 +0200
62 +++ firebird-1.5.0.4290/src/jrd/cvt.cpp 2004-05-28 23:14:53.000000000 +0200
64 static const SQUAD quad_min_int = { LONG_MIN, 0 };
65 static const SQUAD quad_max_int = { LONG_MAX, -1 };
68 +#define quad_min_int LONG_MIN
69 +#define quad_max_int LONG_MAX
72 static const TEXT *const months[] = {
75 CVT_make_string(desc, ttype_ascii, &p, (VARY *) buffer,
77 - scale -= decompose(p, length, dtype_quad, &value.high, err);
78 + scale -= decompose(p, length, dtype_quad, (SLONG *) & value, err);
85 if (value > QUAD_LIMIT || value < -QUAD_LIMIT)
86 - (*err) (gds_arith_except, 0);
87 + reinterpret_cast < pfn_cvt_private_cludge >
88 + (err) (gds_arith_except, 0);
92 --- firebird-1.5.0.4290/src/jrd/ail.cpp.orig 2003-04-16 12:17:24.000000000 +0200
93 +++ firebird-1.5.0.4290/src/jrd/ail.cpp 2004-05-28 23:25:25.000000000 +0200
95 reinterpret_cast < UCHAR * >(journal_name), CLUMP_ADD, 0);
96 PAG_add_clump(HEADER_PAGE, HDR_backup_info, d_len, data, CLUMP_ADD, 1);
97 WAL_flush(tdbb->tdbb_status_vector, dbb->dbb_wal,
98 - reinterpret_cast < long *>(&seqno),
99 - reinterpret_cast < long *>(&offset), FALSE);
100 + reinterpret_cast < SLONG *>(&seqno),
101 + reinterpret_cast < SLONG *>(&offset), FALSE);
109 - reinterpret_cast < long *>(seqno),
110 - reinterpret_cast < long *>(offset));
111 + reinterpret_cast < SLONG *>(seqno),
112 + reinterpret_cast < SLONG *>(offset));
116 --- firebird-1.5.0.4290/src/jrd/blb.cpp.orig 2003-04-10 08:49:10.000000000 +0200
117 +++ firebird-1.5.0.4290/src/jrd/blb.cpp 2004-05-28 23:27:47.000000000 +0200
119 if (BLF_create_blob(tdbb,
122 - reinterpret_cast < long *>(blob_id),
123 + reinterpret_cast < SLONG *>(blob_id),
126 reinterpret_cast < long (*)() > (blob_filter),
127 @@ -1088,7 +1088,7 @@
128 if (BLF_open_blob(tdbb,
131 - reinterpret_cast < long *>(blob_id),
132 + reinterpret_cast < SLONG *>(blob_id),
135 reinterpret_cast < long (*)() > (blob_filter),
136 --- firebird-1.5.0.4290/src/jrd/cch.cpp.orig 2003-05-16 22:35:06.000000000 +0200
137 +++ firebird-1.5.0.4290/src/jrd/cch.cpp 2004-05-28 23:30:26.000000000 +0200
138 @@ -5542,8 +5542,8 @@
142 - reinterpret_cast < long *>(&page->pag_seqno),
143 - reinterpret_cast < long *>(&page->pag_offset), TRUE);
144 + reinterpret_cast < SLONG *>(&page->pag_seqno),
145 + reinterpret_cast < SLONG *>(&page->pag_offset), TRUE);
147 #ifdef DEBUG_SAVE_BDB_PAGE
148 /* Save page number into page->pag_offset before computing the checksum */
149 --- firebird-1.5.0.4290/src/jrd/common.h.orig 2004-05-28 22:16:09.000000000 +0200
150 +++ firebird-1.5.0.4290/src/jrd/common.h 2004-05-28 23:36:22.000000000 +0200
153 #define QUADFORMAT "ll"
154 #define QUADCONST(n) (n##LL)
155 +#if SIZEOF_LONG == 8
156 + /* EKU: Firebird requires (S)LONG to be 32 bit */
157 +#define SLONGFORMAT "d"
158 +#define ULONGFORMAT "u"
159 +#define XLONGFORMAT "X"
160 +#define xLONGFORMAT "x"
162 #define SLONGFORMAT "ld"
163 #define ULONGFORMAT "lu"
164 #define XLONGFORMAT "lX"
165 #define xLONGFORMAT "lx"
169 #define __LINE__IS_INT
171 --- firebird-1.5.0.4290/src/jrd/jrd.cpp.orig 2004-01-28 10:28:39.000000000 +0100
172 +++ firebird-1.5.0.4290/src/jrd/jrd.cpp 2004-05-28 23:56:05.000000000 +0200
173 @@ -2693,7 +2693,7 @@
174 reinterpret_cast < BID > (array_id),
177 - reinterpret_cast < long *>(param),
178 + reinterpret_cast < SLONG *>(param),
179 slice_length, slice);
181 catch (const std::exception&)
182 @@ -2885,7 +2885,7 @@
183 reinterpret_cast < BID > (array_id),
186 - reinterpret_cast < long *>(param), slice_length, slice);
187 + reinterpret_cast < SLONG *>(param), slice_length, slice);
189 catch (const std::exception&)
191 --- firebird-1.5.0.4290/src/jrd/rec.cpp.orig 2003-04-03 15:52:36.000000000 +0200
192 +++ firebird-1.5.0.4290/src/jrd/rec.cpp 2004-05-29 00:00:16.000000000 +0200
193 @@ -1061,8 +1061,8 @@
194 WALR_get(tdbb->tdbb_status_vector,
195 reinterpret_cast < walrs * >(WALRS_handle), wal_buff,
196 reinterpret_cast < USHORT * >(&len),
197 - reinterpret_cast < long *>(&seqno),
198 - reinterpret_cast < long *>(&offset));
199 + reinterpret_cast < SLONG *>(&seqno),
200 + reinterpret_cast < SLONG *>(&offset));
201 if (ret_val == -1) /* done processing */
203 else if (ret_val != FB_SUCCESS) {
204 --- firebird-1.5.0.4290/src/remote/xdr.cpp.orig 2004-05-28 22:16:09.000000000 +0200
205 +++ firebird-1.5.0.4290/src/remote/xdr.cpp 2004-05-29 00:05:08.000000000 +0200
206 @@ -754,10 +754,10 @@
210 - return PUTLONG(xdrs, reinterpret_cast < long *>(ip));
211 + return PUTLONG(xdrs, reinterpret_cast < SLONG *>(ip));
214 - if (!GETLONG(xdrs, reinterpret_cast < long *>(ip)))
215 + if (!GETLONG(xdrs, reinterpret_cast < SLONG *>(ip)))
219 --- firebird-1.5.0.4290/src/jrd/evl.cpp.orig 2003-12-22 18:43:39.000000000 +0100
220 +++ firebird-1.5.0.4290/src/jrd/evl.cpp 2004-05-29 00:44:05.000000000 +0200
221 @@ -1652,7 +1652,7 @@
222 asb_impure = (IASB) ((SCHAR *) request + asb->nod_impure);
223 if (SORT_put(tdbb->tdbb_status_vector,
224 reinterpret_cast<scb*>(asb_impure->iasb_sort_handle),
225 - reinterpret_cast<unsigned long**>(&data)))
226 + reinterpret_cast<ULONG**>(&data)))