8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 00:03:03 +01:00

We have two "blr_table" arrays that keep related but different information. Kill the ambiguity.

This commit is contained in:
robocop 2010-02-16 06:43:36 +00:00
parent 421154bb73
commit f5a21bc4a4
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ static const struct
{ {
const char* blr_string; const char* blr_string;
const UCHAR* blr_operators; const UCHAR* blr_operators;
} blr_table[] = } blr_print_table[] =
{ {
{NULL, NULL}, {NULL, NULL},
{"assignment", two}, {"assignment", two},

View File

@ -2766,7 +2766,7 @@ static void blr_print_blr(gds_ctl* control, UCHAR blr_operator)
**************************************/ **************************************/
const char* p; const char* p;
if (blr_operator >= FB_NELEM(blr_table) || !(p = blr_table[blr_operator].blr_string)) if (blr_operator >= FB_NELEM(blr_print_table) || !(p = blr_print_table[blr_operator].blr_string))
{ {
blr_error(control, "*** blr operator %d is undefined ***", (int) blr_operator); blr_error(control, "*** blr operator %d is undefined ***", (int) blr_operator);
} }
@ -3195,7 +3195,7 @@ static void blr_print_verb(gds_ctl* control, SSHORT level)
blr_print_blr(control, blr_operator); blr_print_blr(control, blr_operator);
level++; level++;
const UCHAR* ops = blr_table[blr_operator].blr_operators; const UCHAR* ops = blr_print_table[blr_operator].blr_operators;
SSHORT n; SSHORT n;
while (*ops) while (*ops)