mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 01:23:03 +01:00
Put unused function declaration and definition inside NOT_USED_OR_REPLACED ifdef.
This commit is contained in:
parent
11bd91ae35
commit
c01f381d51
@ -26,7 +26,7 @@
|
|||||||
*
|
*
|
||||||
*____________________________________________________________
|
*____________________________________________________________
|
||||||
*
|
*
|
||||||
* $Id: gpre_meta.epp,v 1.16 2003-02-13 09:58:18 dimitr Exp $
|
* $Id: gpre_meta.epp,v 1.17 2003-03-03 08:36:04 brodsom Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "firebird.h"
|
#include "firebird.h"
|
||||||
@ -67,8 +67,9 @@ static void get_array(DBB, TEXT *, GPRE_FLD);
|
|||||||
static int get_intl_char_subtype(SSHORT *, UCHAR *, USHORT, DBB);
|
static int get_intl_char_subtype(SSHORT *, UCHAR *, USHORT, DBB);
|
||||||
static int resolve_charset_and_collation(SSHORT *, UCHAR *, UCHAR *);
|
static int resolve_charset_and_collation(SSHORT *, UCHAR *, UCHAR *);
|
||||||
static int symbol_length(TEXT *);
|
static int symbol_length(TEXT *);
|
||||||
|
#ifdef NOT_USED_OR_REPLACED
|
||||||
static int upcase(TEXT *, TEXT *);
|
static int upcase(TEXT *, TEXT *);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*____________________________________________________________
|
/*____________________________________________________________
|
||||||
*
|
*
|
||||||
@ -2185,7 +2186,7 @@ static int symbol_length( TEXT * string)
|
|||||||
return p - string;
|
return p - string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef NOT_USED_OR_REPLACED
|
||||||
/*____________________________________________________________
|
/*____________________________________________________________
|
||||||
*
|
*
|
||||||
* Upcase a string into another string. Return
|
* Upcase a string into another string. Return
|
||||||
@ -2207,3 +2208,4 @@ static int upcase( TEXT * from, TEXT * to)
|
|||||||
|
|
||||||
return p - to;
|
return p - to;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
*
|
*
|
||||||
*____________________________________________________________
|
*____________________________________________________________
|
||||||
*
|
*
|
||||||
* $Id: gpre_meta_boot.cpp,v 1.13 2003-03-02 01:01:25 brodsom Exp $
|
* $Id: gpre_meta_boot.cpp,v 1.14 2003-03-03 08:36:03 brodsom Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "firebird.h"
|
#include "firebird.h"
|
||||||
@ -60,14 +60,14 @@ static const UCHAR blr_bpb[] = { isc_bpb_version1,
|
|||||||
#ifdef SCROLLABLE_CURSORS
|
#ifdef SCROLLABLE_CURSORS
|
||||||
static SCHAR db_version_info[] = { gds__info_base_level };
|
static SCHAR db_version_info[] = { gds__info_base_level };
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef NOT_USED_OR_REPLACED
|
||||||
static SLONG array_size(GPRE_FLD);
|
static SLONG array_size(GPRE_FLD);
|
||||||
static void get_array(DBB, TEXT *, GPRE_FLD);
|
static void get_array(DBB, TEXT *, GPRE_FLD);
|
||||||
static int get_intl_char_subtype(SSHORT *, UCHAR *, USHORT, DBB);
|
static int get_intl_char_subtype(SSHORT *, UCHAR *, USHORT, DBB);
|
||||||
static int resolve_charset_and_collation(SSHORT *, UCHAR *, UCHAR *);
|
static int resolve_charset_and_collation(SSHORT *, UCHAR *, UCHAR *);
|
||||||
static int symbol_length(TEXT *);
|
static int symbol_length(TEXT *);
|
||||||
static int upcase(TEXT *, TEXT *);
|
static int upcase(TEXT *, TEXT *);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*____________________________________________________________
|
/*____________________________________________________________
|
||||||
*
|
*
|
||||||
@ -733,7 +733,7 @@ BOOLEAN MET_trigger_exists(DBB dbb, TEXT * trigger_name)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef NOT_USED_OR_REPLACED
|
||||||
/*____________________________________________________________
|
/*____________________________________________________________
|
||||||
*
|
*
|
||||||
* Compute and return the size of the array.
|
* Compute and return the size of the array.
|
||||||
@ -879,6 +879,7 @@ static int upcase( TEXT * from, TEXT * to)
|
|||||||
|
|
||||||
return p - to;
|
return p - to;
|
||||||
}
|
}
|
||||||
|
#endif // NOT_USED_OR_REPLACED
|
||||||
|
|
||||||
STATUS API_ROUTINE isc_print_blr(SCHAR * blr,
|
STATUS API_ROUTINE isc_print_blr(SCHAR * blr,
|
||||||
void (*callback) (), void *callback_argument, SSHORT language)
|
void (*callback) (), void *callback_argument, SSHORT language)
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
//
|
//
|
||||||
//____________________________________________________________
|
//____________________________________________________________
|
||||||
//
|
//
|
||||||
// $Id: int.cpp,v 1.10 2003-02-27 21:34:41 brodsom Exp $
|
// $Id: int.cpp,v 1.11 2003-03-03 08:36:03 brodsom Exp $
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "firebird.h"
|
#include "firebird.h"
|
||||||
@ -40,7 +40,9 @@
|
|||||||
|
|
||||||
static void align(int);
|
static void align(int);
|
||||||
static void asgn_from(REF, int);
|
static void asgn_from(REF, int);
|
||||||
|
#ifdef NOT_USED_OR_REPLACED
|
||||||
static void asgn_to(REF);
|
static void asgn_to(REF);
|
||||||
|
#endif
|
||||||
static void gen_at_end(ACT, int);
|
static void gen_at_end(ACT, int);
|
||||||
static int gen_blr(int *, int, TEXT *);
|
static int gen_blr(int *, int, TEXT *);
|
||||||
static void gen_compile(GPRE_REQ, int);
|
static void gen_compile(GPRE_REQ, int);
|
||||||
@ -216,7 +218,7 @@ static void asgn_from( REF reference, int column)
|
|||||||
// Build an assignment to a host language variable from
|
// Build an assignment to a host language variable from
|
||||||
// a port variable.
|
// a port variable.
|
||||||
//
|
//
|
||||||
|
#ifdef NOT_USED_OR_REPLACED
|
||||||
static void asgn_to( REF reference)
|
static void asgn_to( REF reference)
|
||||||
{
|
{
|
||||||
TEXT s[20];
|
TEXT s[20];
|
||||||
@ -240,7 +242,7 @@ static void asgn_to( REF reference)
|
|||||||
else
|
else
|
||||||
ib_fprintf(out_file, "%s = %s;", reference->ref_value, s);
|
ib_fprintf(out_file, "%s = %s;", reference->ref_value, s);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//____________________________________________________________
|
//____________________________________________________________
|
||||||
//
|
//
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
//
|
//
|
||||||
//____________________________________________________________
|
//____________________________________________________________
|
||||||
//
|
//
|
||||||
// $Id: int_cxx.cpp,v 1.8 2003-02-13 09:58:19 dimitr Exp $
|
// $Id: int_cxx.cpp,v 1.9 2003-03-03 08:36:03 brodsom Exp $
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "firebird.h"
|
#include "firebird.h"
|
||||||
@ -40,7 +40,9 @@
|
|||||||
|
|
||||||
static void align(int);
|
static void align(int);
|
||||||
static void asgn_from(REF, int);
|
static void asgn_from(REF, int);
|
||||||
|
#ifdef NOT_USED_OR_REPLACED
|
||||||
static void asgn_to(REF);
|
static void asgn_to(REF);
|
||||||
|
#endif
|
||||||
static void gen_at_end(ACT, int);
|
static void gen_at_end(ACT, int);
|
||||||
static int gen_blr(int *, int, TEXT *);
|
static int gen_blr(int *, int, TEXT *);
|
||||||
static void gen_compile(GPRE_REQ, int);
|
static void gen_compile(GPRE_REQ, int);
|
||||||
@ -219,7 +221,7 @@ static void asgn_from( REF reference, int column)
|
|||||||
// Build an assignment to a host language variable from
|
// Build an assignment to a host language variable from
|
||||||
// a port variable.
|
// a port variable.
|
||||||
//
|
//
|
||||||
|
#ifdef NOT_USED_OR_REPLACED
|
||||||
static void asgn_to( REF reference)
|
static void asgn_to( REF reference)
|
||||||
{
|
{
|
||||||
GPRE_FLD field;
|
GPRE_FLD field;
|
||||||
@ -245,7 +247,7 @@ static void asgn_to( REF reference)
|
|||||||
else
|
else
|
||||||
ib_fprintf(out_file, "%s = %s;", reference->ref_value, s);
|
ib_fprintf(out_file, "%s = %s;", reference->ref_value, s);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//____________________________________________________________
|
//____________________________________________________________
|
||||||
//
|
//
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
//
|
//
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Contributor(s): ______________________________________.
|
// Contributor(s): ______________________________________.
|
||||||
// $Id: sqe.cpp,v 1.8 2003-02-08 00:36:50 brodsom Exp $
|
// $Id: sqe.cpp,v 1.9 2003-03-03 08:36:03 brodsom Exp $
|
||||||
// Revision 1.3 2000/11/16 15:54:29 fsg
|
// Revision 1.3 2000/11/16 15:54:29 fsg
|
||||||
// Added new switch -verbose to gpre that will dump
|
// Added new switch -verbose to gpre that will dump
|
||||||
// parsed lines to stderr
|
// parsed lines to stderr
|
||||||
@ -38,7 +38,7 @@
|
|||||||
//
|
//
|
||||||
//____________________________________________________________
|
//____________________________________________________________
|
||||||
//
|
//
|
||||||
// $Id: sqe.cpp,v 1.8 2003-02-08 00:36:50 brodsom Exp $
|
// $Id: sqe.cpp,v 1.9 2003-03-03 08:36:03 brodsom Exp $
|
||||||
//
|
//
|
||||||
#include "firebird.h"
|
#include "firebird.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -144,25 +144,27 @@ static OPS rel_ops[] = {
|
|||||||
{ nod_matches, KW_MATCHES, nod_any },
|
{ nod_matches, KW_MATCHES, nod_any },
|
||||||
{ nod_any, KW_none, nod_any },
|
{ nod_any, KW_none, nod_any },
|
||||||
{ nod_ansi_any, KW_none, nod_ansi_any },
|
{ nod_ansi_any, KW_none, nod_ansi_any },
|
||||||
{ nod_ansi_all, KW_none, nod_ansi_all }
|
{ nod_ansi_all, KW_none, nod_ansi_all }};
|
||||||
}, scalar_stat_ops[] = {
|
#ifdef NOT_USED_OR_REPLACED
|
||||||
|
static OPS scalar_stat_ops[] = {
|
||||||
{ nod_count, KW_COUNT, nod_any },
|
{ nod_count, KW_COUNT, nod_any },
|
||||||
{ nod_max, KW_MAX, nod_any },
|
{ nod_max, KW_MAX, nod_any },
|
||||||
{ nod_min, KW_MIN, nod_any },
|
{ nod_min, KW_MIN, nod_any },
|
||||||
{ nod_total, KW_TOTAL, nod_any },
|
{ nod_total, KW_TOTAL, nod_any },
|
||||||
{ nod_total, KW_SUM, nod_any },
|
{ nod_total, KW_SUM, nod_any },
|
||||||
{ nod_average, KW_AVERAGE, nod_any },
|
{ nod_average, KW_AVERAGE, nod_any },
|
||||||
|
{ nod_via, KW_none, nod_any}};
|
||||||
{ nod_via, KW_none, nod_any} }, stat_ops[] = {
|
#endif
|
||||||
|
static OPS stat_ops[] = {
|
||||||
{ nod_agg_count, KW_COUNT, nod_any },
|
{ nod_agg_count, KW_COUNT, nod_any },
|
||||||
{ nod_agg_max, KW_MAX, nod_any },
|
{ nod_agg_max, KW_MAX, nod_any },
|
||||||
{ nod_agg_min, KW_MIN, nod_any },
|
{ nod_agg_min, KW_MIN, nod_any },
|
||||||
{ nod_agg_total, KW_TOTAL, nod_any },
|
{ nod_agg_total, KW_TOTAL, nod_any },
|
||||||
{ nod_agg_total, KW_SUM, nod_any },
|
{ nod_agg_total, KW_SUM, nod_any },
|
||||||
{ nod_agg_average, KW_AVERAGE, nod_any },
|
{ nod_agg_average, KW_AVERAGE, nod_any },
|
||||||
{ nod_any, KW_none, nod_any },
|
{ nod_any, KW_none, nod_any },
|
||||||
{ nod_ansi_any, KW_none, nod_ansi_any },
|
{ nod_ansi_any, KW_none, nod_ansi_any },
|
||||||
{ nod_ansi_all, KW_none, nod_ansi_all }};
|
{ nod_ansi_all, KW_none, nod_ansi_all }};
|
||||||
|
|
||||||
static NOD_T relationals[] = {
|
static NOD_T relationals[] = {
|
||||||
nod_eq, nod_ne, nod_gt, nod_ge, nod_le, nod_lt, nod_containing,
|
nod_eq, nod_ne, nod_gt, nod_ge, nod_le, nod_lt, nod_containing,
|
||||||
|
Loading…
Reference in New Issue
Block a user