mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 00:03:03 +01:00
-Undo gds__vax_integer to isc_vax_integer and gds__event_* to isc_event_* changes
This commit is contained in:
parent
6fb579912a
commit
9b7994233c
@ -63,7 +63,7 @@ entry(gds__attach_database)
|
||||
entry(perf_get_info)
|
||||
entry(perf_report)
|
||||
entry(gds__temp_file)
|
||||
entry(isc_vax_integer)
|
||||
entry(gds__vax_integer)
|
||||
entry(gds__encode)
|
||||
entry(gds__decode)
|
||||
entry(gds__interprete)
|
||||
|
@ -430,7 +430,7 @@ SLONG EVENT_que(ISC_STATUS * status_vector,
|
||||
*ptr = interest;
|
||||
ptr = &interest->rint_req_interests;
|
||||
interest->rint_request = request;
|
||||
interest->rint_count = isc_vax_integer(p, 4);
|
||||
interest->rint_count = gds__vax_integer(p, 4);
|
||||
p += 4;
|
||||
if (interest->rint_count <= event->evnt_count)
|
||||
flag = true;
|
||||
|
@ -1104,9 +1104,9 @@ static void print_counts( QLI_REQ request)
|
||||
int length = 0;
|
||||
for (SCHAR* c = count_buffer; *c != isc_info_end; c += length) {
|
||||
UCHAR item = *c++;
|
||||
length = isc_vax_integer(c, 2);
|
||||
length = gds__vax_integer((UCHAR*) c, 2);
|
||||
c += 2;
|
||||
const ULONG number = isc_vax_integer(c, length);
|
||||
const ULONG number = gds__vax_integer((UCHAR*) c, length);
|
||||
|
||||
if (number)
|
||||
switch (item) {
|
||||
|
@ -2747,7 +2747,7 @@ static void get_database_type( DBB new_dbb)
|
||||
|
||||
while (*p != isc_info_end && p < buffer + sizeof(buffer)) {
|
||||
UCHAR item = *p++;
|
||||
USHORT l = isc_vax_integer(reinterpret_cast<const SCHAR*>(p), 2);
|
||||
USHORT l = gds__vax_integer(p, 2);
|
||||
p += 2;
|
||||
switch (item) {
|
||||
case isc_info_implementation:
|
||||
@ -3355,31 +3355,29 @@ static SYN parse_blr( UCHAR ** ptr, SYM symbol)
|
||||
switch (BLR_BYTE) {
|
||||
case blr_text:
|
||||
dtype = dtype_text;
|
||||
length = l = isc_vax_integer(reinterpret_cast<const SCHAR*>(blr), 2);
|
||||
length = l = gds__vax_integer(blr, 2);
|
||||
blr += 2;
|
||||
break;
|
||||
|
||||
case blr_text2:
|
||||
dtype = dtype_text;
|
||||
scale = isc_vax_integer(reinterpret_cast<const SCHAR*>(blr), 2);
|
||||
scale = gds__vax_integer(blr, 2);
|
||||
blr += 2;
|
||||
length = l = isc_vax_integer(reinterpret_cast<const SCHAR*>(blr), 2);
|
||||
length = l = gds__vax_integer(blr, 2);
|
||||
blr += 2;
|
||||
break;
|
||||
|
||||
case blr_varying:
|
||||
dtype = dtype_varying;
|
||||
length = l = isc_vax_integer(reinterpret_cast<const SCHAR*>(blr), 2)
|
||||
+ sizeof(USHORT);
|
||||
length = l = gds__vax_integer(blr, 2) + sizeof(USHORT);
|
||||
blr += 2;
|
||||
break;
|
||||
|
||||
case blr_varying2:
|
||||
dtype = dtype_varying;
|
||||
scale = isc_vax_integer(reinterpret_cast<const SCHAR*>(blr), 2);
|
||||
scale = gds__vax_integer(blr, 2);
|
||||
blr += 2;
|
||||
length = l = isc_vax_integer(reinterpret_cast<const SCHAR*>(blr), 2)
|
||||
+ sizeof(USHORT);
|
||||
length = l = gds__vax_integer(blr, 2) + sizeof(USHORT);
|
||||
blr += 2;
|
||||
break;
|
||||
|
||||
@ -3438,11 +3436,11 @@ static SYN parse_blr( UCHAR ** ptr, SYM symbol)
|
||||
while (l--)
|
||||
*p++ = BLR_BYTE;
|
||||
else if (dtype == dtype_short) {
|
||||
*(SSHORT *) p = isc_vax_integer(reinterpret_cast<const SCHAR*>(blr), l);
|
||||
*(SSHORT *) p = gds__vax_integer(blr, l);
|
||||
blr += l;
|
||||
}
|
||||
else if (dtype == dtype_long) {
|
||||
*(SLONG *) p = isc_vax_integer(reinterpret_cast<const SCHAR*>(blr), l);
|
||||
*(SLONG *) p = gds__vax_integer(blr, l);
|
||||
blr += l;
|
||||
}
|
||||
node = make_node(nod_constant, 1);
|
||||
@ -3854,11 +3852,11 @@ static void wal_info(
|
||||
UCHAR item;
|
||||
UCHAR* d;
|
||||
while ((item = *p++) != isc_info_end) {
|
||||
SLONG length = isc_vax_integer(reinterpret_cast<const SCHAR*>(p), 2);
|
||||
SLONG length = gds__vax_integer(p, 2);
|
||||
p += 2;
|
||||
switch (item) {
|
||||
case isc_info_logfile:
|
||||
*log = isc_vax_integer(reinterpret_cast<const SCHAR*>(p), length);
|
||||
*log = gds__vax_integer(p, length);
|
||||
p += length;
|
||||
break;
|
||||
|
||||
@ -3871,7 +3869,7 @@ static void wal_info(
|
||||
break;
|
||||
|
||||
case isc_info_cur_log_part_offset:
|
||||
*part_offset = isc_vax_integer(reinterpret_cast<const SCHAR*>(p), length);
|
||||
*part_offset = gds__vax_integer(p, length);
|
||||
p += length;
|
||||
break;
|
||||
|
||||
|
@ -820,15 +820,15 @@ static void show_dbb_parameters( DBB database)
|
||||
|
||||
for (UCHAR *d = buffer; *d != isc_info_end;) {
|
||||
UCHAR item = *d++;
|
||||
int length = isc_vax_integer(reinterpret_cast<const SCHAR*>(d), 2);
|
||||
int length = gds__vax_integer(d, 2);
|
||||
d += 2;
|
||||
switch (item) {
|
||||
case (isc_info_db_size_in_pages):
|
||||
allocation = isc_vax_integer(reinterpret_cast<const SCHAR*>(d), length);
|
||||
allocation = gds__vax_integer(d, length);
|
||||
break;
|
||||
|
||||
case (isc_info_page_size):
|
||||
page_size = isc_vax_integer(reinterpret_cast<const SCHAR*>(d), length);
|
||||
page_size = gds__vax_integer(d, length);
|
||||
break;
|
||||
|
||||
case (isc_info_error):
|
||||
|
@ -105,7 +105,7 @@ USHORT MERGE_database_info(const UCHAR* in,
|
||||
break;
|
||||
|
||||
default:
|
||||
length = (SSHORT) isc_vax_integer(reinterpret_cast<const SCHAR*>(in), 2);
|
||||
length = (SSHORT) gds__vax_integer(in, 2);
|
||||
in += 2;
|
||||
if (out + length + 2 >= end) {
|
||||
out[-1] = isc_info_truncated;
|
||||
@ -177,7 +177,7 @@ static ISC_STATUS merge_setup(
|
||||
* already there.
|
||||
*
|
||||
**************************************/
|
||||
USHORT length = (USHORT) isc_vax_integer(reinterpret_cast<const SCHAR*>(*in), 2);
|
||||
USHORT length = (USHORT) gds__vax_integer(*in, 2);
|
||||
const USHORT new_length = length + delta_length;
|
||||
|
||||
if (*out + new_length + 2 >= end) {
|
||||
|
@ -787,7 +787,7 @@ static SLONG get_parameter(const UCHAR** ptr)
|
||||
*
|
||||
**************************************/
|
||||
const SSHORT l = *(*ptr)++;
|
||||
const SLONG parameter = isc_vax_integer(reinterpret_cast<const SCHAR*>(*ptr), l);
|
||||
const SLONG parameter = gds__vax_integer(*ptr, l);
|
||||
*ptr += l;
|
||||
|
||||
return parameter;
|
||||
|
@ -1038,8 +1038,8 @@ static USHORT check_statement_type( RSR statement)
|
||||
{
|
||||
for (info = buffer; (*info != isc_info_end) && !done;)
|
||||
{
|
||||
l = (USHORT) isc_vax_integer(reinterpret_cast<const SCHAR*>(info + 1), 2);
|
||||
type = (USHORT) isc_vax_integer(reinterpret_cast<const SCHAR*>(info + 3), l);
|
||||
l = (USHORT) gds__vax_integer(info + 1, 2);
|
||||
type = (USHORT) gds__vax_integer(info + 3, l);
|
||||
switch (*info)
|
||||
{
|
||||
case isc_info_sql_stmt_type:
|
||||
@ -2251,8 +2251,8 @@ static bool get_next_msg_no(RRQ request,
|
||||
|
||||
bool result = false;
|
||||
for (info = info_buffer; *info != isc_info_end;) {
|
||||
l = (USHORT) isc_vax_integer(reinterpret_cast<const SCHAR*>(info + 1), 2);
|
||||
n = (USHORT) isc_vax_integer(reinterpret_cast<const SCHAR*>(info + 3), l);
|
||||
l = (USHORT) gds__vax_integer(info + 1, 2);
|
||||
n = (USHORT) gds__vax_integer(info + 3, l);
|
||||
switch (*info) {
|
||||
case isc_info_state:
|
||||
if (n != isc_info_req_send)
|
||||
|
@ -101,7 +101,7 @@ int CLIB_ROUTINE main( int argc, char *argv[])
|
||||
while (p < buffer + sizeof(buffer) &&
|
||||
(item = *p) != isc_info_end &&
|
||||
item != isc_info_truncated && item != isc_info_svc_timeout) {
|
||||
len = isc_vax_integer(p + 1, 2);
|
||||
len = gds__vax_integer(p + 1, 2);
|
||||
p += 2;
|
||||
while (len--) {
|
||||
p++;
|
||||
|
@ -28,7 +28,7 @@
|
||||
DATABASE DB = "yachts.lnk";
|
||||
|
||||
extern SCHAR *gds__alloc();
|
||||
extern SLONG isc_vax_integer();
|
||||
extern SLONG gds__vax_integer();
|
||||
|
||||
#define ITEM_seq_reads 0
|
||||
#define ITEM_idx_reads 1
|
||||
@ -153,7 +153,7 @@ int stats_fetch(SLONG *status_vector, int **db_handle, STATS *stats_ptr)
|
||||
|
||||
for (p = info_buffer;
|
||||
p < info_buffer + sizeof(info_buffer) && *p != isc_info_end;) {
|
||||
length = isc_vax_integer(p + 1, 2);
|
||||
length = gds__vax_integer(p + 1, 2);
|
||||
item = -1;
|
||||
switch (*p) {
|
||||
case isc_info_read_seq_count:
|
||||
@ -282,7 +282,7 @@ static int get_counts(ISC_STATUS *status_vector, SCHAR *info, SSHORT length,
|
||||
stats = *stats_ptr;
|
||||
|
||||
for (p = info, end = p + length; p < end; p += 6) {
|
||||
relation_id = isc_vax_integer(p, 2);
|
||||
relation_id = gds__vax_integer(p, 2);
|
||||
if (relation_id >= stats->stats_count)
|
||||
if (!expand_stats(&stats, relation_id)) {
|
||||
status_vector[0] = isc_arg_gds;
|
||||
@ -291,7 +291,7 @@ static int get_counts(ISC_STATUS *status_vector, SCHAR *info, SSHORT length,
|
||||
return status_vector[1];
|
||||
}
|
||||
stats->stats_counts[relation_id * ITEM_count + item] =
|
||||
isc_vax_integer(p + 2, 4);
|
||||
gds__vax_integer(p + 2, 4);
|
||||
}
|
||||
return status_vector[1];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user