mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 16:03:02 +01:00
CONST -> const
This commit is contained in:
parent
058574354a
commit
9efdc8b096
@ -24,7 +24,7 @@
|
|||||||
//
|
//
|
||||||
//____________________________________________________________
|
//____________________________________________________________
|
||||||
//
|
//
|
||||||
// $Id: alice.cpp,v 1.19 2003-02-11 20:14:54 brodsom Exp $
|
// $Id: alice.cpp,v 1.20 2003-02-13 09:14:28 dimitr Exp $
|
||||||
//
|
//
|
||||||
// 2001.07.06 Sean Leyne - Code Cleanup, removed "#ifdef READONLY_DATABASE"
|
// 2001.07.06 Sean Leyne - Code Cleanup, removed "#ifdef READONLY_DATABASE"
|
||||||
// conditionals, as the engine now fully supports
|
// conditionals, as the engine now fully supports
|
||||||
@ -110,9 +110,9 @@ static int output_thread(SLONG, UCHAR*);
|
|||||||
static int output_main(SLONG, UCHAR*);
|
static int output_main(SLONG, UCHAR*);
|
||||||
static int output_svc(SLONG, UCHAR*);
|
static int output_svc(SLONG, UCHAR*);
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
static void alice_output(CONST SCHAR*, ...) __attribute__ ((format(printf,1,2)));
|
static void alice_output(const SCHAR*, ...) __attribute__ ((format(printf,1,2)));
|
||||||
#else
|
#else
|
||||||
static void alice_output(CONST SCHAR*, ...);
|
static void alice_output(const SCHAR*, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -780,7 +780,7 @@ static void ALICE_error(USHORT number)
|
|||||||
// Platform independent output routine.
|
// Platform independent output routine.
|
||||||
//
|
//
|
||||||
|
|
||||||
static void alice_output(CONST SCHAR * format, ...)
|
static void alice_output(const SCHAR * format, ...)
|
||||||
{
|
{
|
||||||
va_list arglist;
|
va_list arglist;
|
||||||
UCHAR buf[1000];
|
UCHAR buf[1000];
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$Id: backup.epp,v 1.15 2002-12-16 16:17:54 alexpeshkoff Exp $
|
$Id: backup.epp,v 1.16 2003-02-13 09:19:07 dimitr Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "firebird.h"
|
#include "firebird.h"
|
||||||
@ -157,12 +157,12 @@ static UCHAR debug_on = 0; /* able to turn this on in debug mode */
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct rfr_tab_t {
|
typedef struct rfr_tab_t {
|
||||||
CONST TEXT *relation;
|
const TEXT *relation;
|
||||||
CONST TEXT *field;
|
const TEXT *field;
|
||||||
int bit_mask;
|
int bit_mask;
|
||||||
} *RFR_TAB;
|
} *RFR_TAB;
|
||||||
|
|
||||||
static CONST struct rfr_tab_t rfr_table[] = {
|
static const struct rfr_tab_t rfr_table[] = {
|
||||||
{"RDB$INDICES", "RDB$INDEX_INACTIVE", BCK_idx_inactive},
|
{"RDB$INDICES", "RDB$INDEX_INACTIVE", BCK_idx_inactive},
|
||||||
/* Backup of V2 triggers no longer supported 1996-Aug-05 David Schnepper
|
/* Backup of V2 triggers no longer supported 1996-Aug-05 David Schnepper
|
||||||
{"RDB$RELATIONS", "RDB$STORE_TRIGGER", BCK_triggers},
|
{"RDB$RELATIONS", "RDB$STORE_TRIGGER", BCK_triggers},
|
||||||
@ -182,23 +182,23 @@ static CONST struct rfr_tab_t rfr_table[] = {
|
|||||||
{0, 0, 0}
|
{0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
static CONST SCHAR blob_items[] =
|
static const SCHAR blob_items[] =
|
||||||
{
|
{
|
||||||
isc_info_blob_max_segment,
|
isc_info_blob_max_segment,
|
||||||
isc_info_blob_num_segments
|
isc_info_blob_num_segments
|
||||||
};
|
};
|
||||||
static CONST SCHAR blr_items[] =
|
static const SCHAR blr_items[] =
|
||||||
{
|
{
|
||||||
isc_info_blob_max_segment,
|
isc_info_blob_max_segment,
|
||||||
isc_info_blob_total_length
|
isc_info_blob_total_length
|
||||||
};
|
};
|
||||||
static CONST SCHAR source_items[] =
|
static const SCHAR source_items[] =
|
||||||
{
|
{
|
||||||
isc_info_blob_max_segment,
|
isc_info_blob_max_segment,
|
||||||
isc_info_blob_total_length,
|
isc_info_blob_total_length,
|
||||||
isc_info_blob_num_segments
|
isc_info_blob_num_segments
|
||||||
};
|
};
|
||||||
static CONST SCHAR db_info_items[] =
|
static const SCHAR db_info_items[] =
|
||||||
{
|
{
|
||||||
isc_info_db_sql_dialect,
|
isc_info_db_sql_dialect,
|
||||||
isc_info_page_size,
|
isc_info_page_size,
|
||||||
@ -209,12 +209,12 @@ static CONST SCHAR db_info_items[] =
|
|||||||
isc_info_db_read_only,
|
isc_info_db_read_only,
|
||||||
isc_info_end
|
isc_info_end
|
||||||
};
|
};
|
||||||
static CONST SCHAR limbo_tpb[] =
|
static const SCHAR limbo_tpb[] =
|
||||||
{
|
{
|
||||||
isc_tpb_version1,
|
isc_tpb_version1,
|
||||||
isc_tpb_ignore_limbo
|
isc_tpb_ignore_limbo
|
||||||
};
|
};
|
||||||
static CONST SCHAR limbo_nau_tpb[] =
|
static const SCHAR limbo_nau_tpb[] =
|
||||||
{
|
{
|
||||||
isc_tpb_version1,
|
isc_tpb_version1,
|
||||||
isc_tpb_ignore_limbo,
|
isc_tpb_ignore_limbo,
|
||||||
|
@ -137,9 +137,9 @@ static int output_netware(SLONG, UCHAR *);
|
|||||||
static int output_main(SLONG, UCHAR *);
|
static int output_main(SLONG, UCHAR *);
|
||||||
static int output_svc(SLONG, UCHAR *);
|
static int output_svc(SLONG, UCHAR *);
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
static void burp_output(CONST SCHAR *, ...) __attribute__ ((format(printf,1,2)));
|
static void burp_output(const SCHAR *, ...) __attribute__ ((format(printf,1,2)));
|
||||||
#else
|
#else
|
||||||
static void burp_output(CONST SCHAR *, ...);
|
static void burp_output(const SCHAR *, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SUPERSERVER
|
#ifndef SUPERSERVER
|
||||||
@ -1918,7 +1918,7 @@ static SSHORT open_files(TEXT * file1,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void burp_output( CONST SCHAR * format, ...)
|
static void burp_output( const SCHAR * format, ...)
|
||||||
{
|
{
|
||||||
/**************************************
|
/**************************************
|
||||||
*
|
*
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
$Id: restore.epp,v 1.19 2003-01-25 03:12:46 brodsom Exp $
|
$Id: restore.epp,v 1.20 2003-02-13 09:19:08 dimitr Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "firebird.h"
|
#include "firebird.h"
|
||||||
@ -85,7 +85,7 @@ DATABASE DB = STATIC FILENAME "yachts.lnk";
|
|||||||
|
|
||||||
#define RESTORE_VERBOSE_INTERVAL 10000
|
#define RESTORE_VERBOSE_INTERVAL 10000
|
||||||
#define cvtbl_len 28
|
#define cvtbl_len 28
|
||||||
static CONST struct s_t_cvtbl {
|
static const struct s_t_cvtbl {
|
||||||
SSHORT sub_type;
|
SSHORT sub_type;
|
||||||
SSHORT character_set_id;
|
SSHORT character_set_id;
|
||||||
SSHORT collation_id;
|
SSHORT collation_id;
|
||||||
@ -188,7 +188,7 @@ static USHORT flag_on_line = TRUE; /* indicates whether we will bring
|
|||||||
TRUE - we will
|
TRUE - we will
|
||||||
FALSE - we will not */
|
FALSE - we will not */
|
||||||
#ifdef sparc
|
#ifdef sparc
|
||||||
CONST SSHORT old_sparcs[] =
|
const SSHORT old_sparcs[] =
|
||||||
{0, 0, 0, 2, 0, 0, 0, 0, 2, 4, 4, 4, 8, 8, 0, 0, 8, 8, 8};
|
{0, 0, 0, 2, 0, 0, 0, 0, 2, 4, 4, 4, 8, 8, 0, 0, 8, 8, 8};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1184,7 +1184,7 @@ static int get_acl (
|
|||||||
*
|
*
|
||||||
**************************************/
|
**************************************/
|
||||||
|
|
||||||
static CONST SCHAR blr_items [] = {isc_info_blob_max_segment,
|
static const SCHAR blr_items [] = {isc_info_blob_max_segment,
|
||||||
isc_info_blob_total_length,
|
isc_info_blob_total_length,
|
||||||
isc_info_blob_num_segments};
|
isc_info_blob_num_segments};
|
||||||
STATUS status_vector[ISC_STATUS_LENGTH];
|
STATUS status_vector[ISC_STATUS_LENGTH];
|
||||||
@ -6480,7 +6480,7 @@ BURP_FLD field;
|
|||||||
ULONG offset, length, dtype, alignment;
|
ULONG offset, length, dtype, alignment;
|
||||||
TGBL tdgbl;
|
TGBL tdgbl;
|
||||||
|
|
||||||
CONST SSHORT *alignments = old_sparcs;
|
const SSHORT *alignments = old_sparcs;
|
||||||
|
|
||||||
tdgbl = GET_THREAD_DATA;
|
tdgbl = GET_THREAD_DATA;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user