72 Copyright (C) 2008 Search Solution Corporation.\nCopyright (C) 2016 CUBRID Corporation.\n\ 76 Copyright Information\n\ 82 #define makestring1(x) #x 83 #define makestring(x) makestring1(x) 92 #if defined (VERSION_STRING) 93 static const char *version_string = VERSION_STRING;
112 #if defined (CUBRID_OWFS) 116 #if defined (VERSION_STRING) 117 snprintf (buf, len,
"%s (%s) (%dbit %s build for %s) (%s %s)",
rel_name (), rel_version_string (),
187 #if defined (VERSION_STRING) 193 rel_version_string (
void)
195 return version_string;
199 #if defined (ENABLE_UNUSED_FUNCTION) 205 rel_copyright_header (
void)
219 rel_copyright_body (
void)
308 float base_level, apply_level;
349 int a, b, retval = 0;
350 char *a_temp, *b_temp, *end_p;
356 if (!rel_a || !rel_b)
365 a_temp = (
char *) rel_a;
366 b_temp = (
char *) rel_b;
372 while (!retval && *a_temp && *b_temp)
390 while (*a_temp && *a_temp ==
'.')
394 while (*b_temp && *b_temp ==
'.')
400 if (*a_temp != *b_temp)
415 if (*a_temp !=
'.' && *a_temp !=
'0')
424 if (*b_temp !=
'.' && *b_temp !=
'0')
503 net_incompatible_versions);
519 char *base, *apply, *str_a, *str_b;
522 unsigned char base_major, base_minor, apply_major, apply_minor;
523 unsigned short base_patch, apply_patch;
525 if (apply_rel_str ==
NULL || base_rel_str ==
NULL)
534 apply_major = (
unsigned char) val;
536 base_major = (
unsigned char) val;
537 if (apply_major == 0 || base_major == 0)
543 while (*str_a && *str_a ==
'.')
547 while (*str_b && *str_b ==
'.')
556 apply_minor = (
unsigned char) val;
558 base_minor = (
unsigned char) val;
561 while (*str_a && *str_a ==
'.')
565 while (*str_b && *str_b ==
'.')
572 if (apply_major != base_major)
576 if (apply_minor != base_minor)
586 apply_patch = (
unsigned short) val;
588 base_patch = (
unsigned short) val;
589 if (apply_major == base_major && apply_minor == base_minor && apply_patch == base_patch)
595 apply_version =
NULL;
596 for (version = &versions[0]; version->
major != 0; version++)
598 if (base_major >= version->
major && base_minor >= version->
minor && base_patch >= version->
patch)
600 base_version = version;
602 if (apply_major >= version->
major && apply_minor >= version->
minor && apply_patch >= version->
patch)
604 apply_version = version;
608 if (base_version ==
NULL || apply_version ==
NULL || base_version != apply_version)
static const char * release_string
float rel_disk_compatible(void)
int rel_compare(const char *rel_a, const char *rel_b)
int rel_bit_platform(void)
void rel_copy_version_string(char *buf, size_t len)
static REL_COMPATIBILITY rel_get_compatible_internal(const char *base_rel_str, const char *apply_rel_str, COMPATIBILITY_CHECK_MODE check, REL_VERSION rules[])
const char * rel_build_os(void)
void(* REL_FIXUP_FUNCTION)(void)
static float disk_compatibility_level
struct version REL_VERSION
const char * rel_build_number(void)
const char * rel_build_type(void)
#define MSGCAT_GENERAL_COPYRIGHT_BODY
static const char * copyright_body
struct compatibility_rule COMPATIBILITY_RULE
REL_COMPATIBILITY rel_get_net_compatible(const char *client_rel_str, const char *server_rel_str)
void rel_set_disk_compatible(float level)
static REL_VERSION net_incompatible_versions[]
bool rel_is_log_compatible(const char *writer_rel_str, const char *reader_rel_str)
const char * rel_name(void)
int str_to_int32(int *ret_p, char **end_p, const char *str_p, int base)
static const char * build_type
static REL_VERSION log_incompatible_versions[]
static COMPATIBILITY_RULE disk_compatibility_rules[]
REL_COMPATIBILITY compatibility
#define MSGCAT_SET_GENERAL
#define MSGCAT_GENERAL_COPYRIGHT_HEADER
#define MSGCAT_CATALOG_CUBRID
static const char * package_string
REL_COMPATIBILITY rel_get_disk_compatible(float db_level, REL_FIXUP_FUNCTION **fixups)
static const char * build_number
char * msgcat_message(int cat_id, int set_id, int msg_id)
REL_FIXUP_FUNCTION * fix_function
const char * rel_release_string(void)
static const char * copyright_header
static const char * build_os
static const char * major_release_string
const char * rel_major_release_string(void)