innodb_priv.h | innodb_priv.h | |||
---|---|---|---|---|
skipping to change at line 14 | skipping to change at line 14 | |||
it under the terms of the GNU General Public License as published by | it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation; version 2 of the License. | the Free Software Foundation; version 2 of the License. | |||
This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | GNU General Public License for more details. | |||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | |||
along with this program; if not, write to the Free Software | along with this program; if not, write to the Free Software | |||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A */ | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1, USA */ | |||
#ifndef INNODB_PRIV_INCLUDED | #ifndef INNODB_PRIV_INCLUDED | |||
#define INNODB_PRIV_INCLUDED | #define INNODB_PRIV_INCLUDED | |||
/** @file Declaring server-internal functions that are used by InnoDB. */ | /** @file Declaring server-internal functions that are used by InnoDB. */ | |||
#include <sql_priv.h> | #include <sql_priv.h> | |||
class THD; | class THD; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
my_config.h | my_config.h | |||
---|---|---|---|---|
skipping to change at line 577 | skipping to change at line 577 | |||
*/ | */ | |||
#define HAVE_SPATIAL 1 | #define HAVE_SPATIAL 1 | |||
#define HAVE_RTREE_KEYS 1 | #define HAVE_RTREE_KEYS 1 | |||
#define HAVE_QUERY_CACHE 1 | #define HAVE_QUERY_CACHE 1 | |||
#define BIG_TABLES 1 | #define BIG_TABLES 1 | |||
/* | /* | |||
Important storage engines (those that really need define | Important storage engines (those that really need define | |||
WITH_<ENGINE>_STORAGE_ENGINE for the whole server) | WITH_<ENGINE>_STORAGE_ENGINE for the whole server) | |||
*/ | */ | |||
#define WITH_MYISAM_STORAGE_ENGINE 1 | /* #undef WITH_MYISAM_STORAGE_ENGINE */ | |||
#define WITH_MYISAMMRG_STORAGE_ENGINE 1 | /* #undef WITH_MYISAMMRG_STORAGE_ENGINE */ | |||
#define WITH_HEAP_STORAGE_ENGINE 1 | /* #undef WITH_HEAP_STORAGE_ENGINE */ | |||
#define WITH_CSV_STORAGE_ENGINE 1 | /* #undef WITH_CSV_STORAGE_ENGINE */ | |||
#define WITH_PARTITION_STORAGE_ENGINE 1 | /* #undef WITH_PARTITION_STORAGE_ENGINE */ | |||
#define WITH_PERFSCHEMA_STORAGE_ENGINE 1 | /* #undef WITH_PERFSCHEMA_STORAGE_ENGINE */ | |||
/* #undef WITH_NDBCLUSTER_STORAGE_ENGINE */ | /* #undef WITH_NDBCLUSTER_STORAGE_ENGINE */ | |||
#if (WITH_NDBCLUSTER_STORAGE_ENGINE) && !defined(EMBEDDED_LIBRARY) | #if (WITH_NDBCLUSTER_STORAGE_ENGINE) && !defined(EMBEDDED_LIBRARY) | |||
# define HAVE_NDB_BINLOG 1 | # define HAVE_NDB_BINLOG 1 | |||
#endif | #endif | |||
#define DEFAULT_MYSQL_HOME "/home/ut/testing/mysql/5.5.31" | #define DEFAULT_MYSQL_HOME "/home/ut/testing/mysql/5.5.33" | |||
#define SHAREDIR "/home/ut/testing/mysql/5.5.31/share" | #define SHAREDIR "/home/ut/testing/mysql/5.5.33/share" | |||
#define DEFAULT_BASEDIR "/home/ut/testing/mysql/5.5.31" | #define DEFAULT_BASEDIR "/home/ut/testing/mysql/5.5.33" | |||
#define MYSQL_DATADIR "/home/ut/testing/mysql/5.5.31/data" | #define MYSQL_DATADIR "/home/ut/testing/mysql/5.5.33/data" | |||
#define DEFAULT_CHARSET_HOME "/home/ut/testing/mysql/5.5.31" | #define DEFAULT_CHARSET_HOME "/home/ut/testing/mysql/5.5.33" | |||
#define PLUGINDIR "/home/ut/testing/mysql/5.5.31/lib/plugin" | #define PLUGINDIR "/home/ut/testing/mysql/5.5.33/lib/plugin" | |||
#define DEFAULT_SYSCONFDIR "/home/ut/testing/mysql/5.5.31/etc" | #define DEFAULT_SYSCONFDIR "/home/ut/testing/mysql/5.5.33/etc" | |||
/* #undef SO_EXT */ | /* #undef SO_EXT */ | |||
#define MYSQL_MAJOR_VERSION 5 | #define MYSQL_MAJOR_VERSION 5 | |||
#define MYSQL_MINOR_VERSION 5 | #define MYSQL_MINOR_VERSION 5 | |||
#define PACKAGE "mysql" | #define PACKAGE "mysql" | |||
#define PACKAGE_BUGREPORT "" | #define PACKAGE_BUGREPORT "" | |||
#define PACKAGE_NAME "MySQL Server" | #define PACKAGE_NAME "MySQL Server" | |||
#define PACKAGE_STRING "MySQL Server 5.5.31" | #define PACKAGE_STRING "MySQL Server 5.5.33" | |||
#define PACKAGE_TARNAME "mysql" | #define PACKAGE_TARNAME "mysql" | |||
#define PACKAGE_VERSION "5.5.31" | #define PACKAGE_VERSION "5.5.33" | |||
#define VERSION "5.5.31" | #define VERSION "5.5.33" | |||
#define PROTOCOL_VERSION 10 | #define PROTOCOL_VERSION 10 | |||
/* time_t related defines */ | /* time_t related defines */ | |||
#define SIZEOF_TIME_T 4 | #define SIZEOF_TIME_T 4 | |||
/* #undef TIME_T_UNSIGNED */ | /* #undef TIME_T_UNSIGNED */ | |||
#endif | #endif | |||
End of changes. 4 change blocks. | ||||
16 lines changed or deleted | 16 lines changed or added | |||
my_getopt.h | my_getopt.h | |||
---|---|---|---|---|
skipping to change at line 121 | skipping to change at line 121 | |||
extern void my_getopt_register_get_addr(my_getopt_value); | extern void my_getopt_register_get_addr(my_getopt_value); | |||
ulonglong getopt_ull_limit_value(ulonglong num, const struct my_option *opt p, | ulonglong getopt_ull_limit_value(ulonglong num, const struct my_option *opt p, | |||
my_bool *fix); | my_bool *fix); | |||
longlong getopt_ll_limit_value(longlong, const struct my_option *, | longlong getopt_ll_limit_value(longlong, const struct my_option *, | |||
my_bool *fix); | my_bool *fix); | |||
double getopt_double_limit_value(double num, const struct my_option *optp, | double getopt_double_limit_value(double num, const struct my_option *optp, | |||
my_bool *fix); | my_bool *fix); | |||
my_bool getopt_compare_strings(const char *s, const char *t, uint length); | my_bool getopt_compare_strings(const char *s, const char *t, uint length); | |||
ulonglong getopt_double2ulonglong(double); | ||||
double getopt_ulonglong2double(ulonglong); | ||||
C_MODE_END | C_MODE_END | |||
#endif /* _my_getopt_h */ | #endif /* _my_getopt_h */ | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added | |||
my_global.h | my_global.h | |||
---|---|---|---|---|
/* | /* | |||
Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reser ved. | Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reser ved. | |||
This program is free software; you can redistribute it and/or modify | This program is free software; you can redistribute it and/or modify | |||
it under the terms of the GNU General Public License as published by | it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation; version 2 of the License. | the Free Software Foundation; version 2 of the License. | |||
This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | GNU General Public License for more details. | |||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | |||
along with this program; if not, write to the Free Software | along with this program; if not, write to the Free Software | |||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A */ | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1, USA */ | |||
/* This is the include file that should be included 'first' in every C file . */ | /* This is the include file that should be included 'first' in every C file . */ | |||
#ifndef _global_h | #ifndef _global_h | |||
#define _global_h | #define _global_h | |||
/* Client library users on Windows need this macro defined here. */ | /* Client library users on Windows need this macro defined here. */ | |||
#if !defined(__WIN__) && defined(_WIN32) | #if !defined(__WIN__) && defined(_WIN32) | |||
#define __WIN__ | #define __WIN__ | |||
#endif | #endif | |||
skipping to change at line 392 | skipping to change at line 392 | |||
*/ | */ | |||
#include <assert.h> | #include <assert.h> | |||
/* an assert that works at compile-time. only for constant expression */ | /* an assert that works at compile-time. only for constant expression */ | |||
#ifndef __GNUC__ | #ifndef __GNUC__ | |||
#define compile_time_assert(X) do { } while(0) | #define compile_time_assert(X) do { } while(0) | |||
#else | #else | |||
#define compile_time_assert(X) \ | #define compile_time_assert(X) \ | |||
do \ | do \ | |||
{ \ | { \ | |||
typedef char compile_time_assert[(X) ? 1 : -1]; \ | typedef char compile_time_assert[(X) ? 1 : -1] __attribute__((unused)); \ | |||
} while(0) | } while(0) | |||
#endif | #endif | |||
/* Go around some bugs in different OS and compilers */ | /* Go around some bugs in different OS and compilers */ | |||
#if defined (HPUX11) && defined(_LARGEFILE_SOURCE) | #if defined (HPUX11) && defined(_LARGEFILE_SOURCE) | |||
#ifndef _LARGEFILE64_SOURCE | #ifndef _LARGEFILE64_SOURCE | |||
#define _LARGEFILE64_SOURCE | #define _LARGEFILE64_SOURCE | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added | |||
my_net.h | my_net.h | |||
---|---|---|---|---|
skipping to change at line 14 | skipping to change at line 14 | |||
it under the terms of the GNU General Public License as published by | it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation; version 2 of the License. | the Free Software Foundation; version 2 of the License. | |||
This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | GNU General Public License for more details. | |||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | |||
along with this program; if not, write to the Free Software | along with this program; if not, write to the Free Software | |||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A */ | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1, USA */ | |||
/* | /* | |||
This file is also used to make handling of sockets and ioctl() | This file is also used to make handling of sockets and ioctl() | |||
portable accross systems. | portable accross systems. | |||
*/ | */ | |||
#ifndef _my_net_h | #ifndef _my_net_h | |||
#define _my_net_h | #define _my_net_h | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
my_pthread.h | my_pthread.h | |||
---|---|---|---|---|
skipping to change at line 14 | skipping to change at line 14 | |||
it under the terms of the GNU General Public License as published by | it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation; version 2 of the License. | the Free Software Foundation; version 2 of the License. | |||
This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | GNU General Public License for more details. | |||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | |||
along with this program; if not, write to the Free Software | along with this program; if not, write to the Free Software | |||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A */ | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1, USA */ | |||
/* Defines to make different thread packages compatible */ | /* Defines to make different thread packages compatible */ | |||
#ifndef _my_pthread_h | #ifndef _my_pthread_h | |||
#define _my_pthread_h | #define _my_pthread_h | |||
#include "my_global.h" /* myf */ | #include "my_global.h" /* myf */ | |||
#ifndef ETIME | #ifndef ETIME | |||
#define ETIME ETIMEDOUT /* For FreeBSD */ | #define ETIME ETIMEDOUT /* For FreeBSD */ | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
my_sys.h | my_sys.h | |||
---|---|---|---|---|
skipping to change at line 14 | skipping to change at line 14 | |||
it under the terms of the GNU General Public License as published by | it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation; version 2 of the License. | the Free Software Foundation; version 2 of the License. | |||
This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | GNU General Public License for more details. | |||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | |||
along with this program; if not, write to the Free Software | along with this program; if not, write to the Free Software | |||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A */ | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1, USA */ | |||
#ifndef _my_sys_h | #ifndef _my_sys_h | |||
#define _my_sys_h | #define _my_sys_h | |||
#include "my_global.h" /* C_MODE_START, C_MODE_END */ | #include "my_global.h" /* C_MODE_START, C_MODE_END */ | |||
C_MODE_START | C_MODE_START | |||
#ifdef HAVE_AIOWAIT | #ifdef HAVE_AIOWAIT | |||
#include <sys/asynch.h> /* Used by record-cache */ | #include <sys/asynch.h> /* Used by record-cache */ | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
my_xml.h | my_xml.h | |||
---|---|---|---|---|
skipping to change at line 15 | skipping to change at line 15 | |||
it under the terms of the GNU General Public License as published by | it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation; version 2 of the License. | the Free Software Foundation; version 2 of the License. | |||
This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | GNU General Public License for more details. | |||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | |||
along with this program; if not, write to the Free Software | along with this program; if not, write to the Free Software | |||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A */ | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1, USA */ | |||
#ifndef _my_xml_h | #ifndef _my_xml_h | |||
#define _my_xml_h | #define _my_xml_h | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#define MY_XML_OK 0 | #define MY_XML_OK 0 | |||
#define MY_XML_ERROR 1 | #define MY_XML_ERROR 1 | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
mysql_time.h | mysql_time.h | |||
---|---|---|---|---|
skipping to change at line 15 | skipping to change at line 15 | |||
it under the terms of the GNU General Public License as published by | it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation; version 2 of the License. | the Free Software Foundation; version 2 of the License. | |||
This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | GNU General Public License for more details. | |||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | |||
along with this program; if not, write to the Free Software | along with this program; if not, write to the Free Software | |||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ | |||
#ifndef _mysql_time_h_ | #ifndef _mysql_time_h_ | |||
#define _mysql_time_h_ | #define _mysql_time_h_ | |||
/* | /* | |||
Time declarations shared between the server and client API: | Time declarations shared between the server and client API: | |||
you should not add anything to this header unless it's used | you should not add anything to this header unless it's used | |||
(and hence should be visible) in mysql.h. | (and hence should be visible) in mysql.h. | |||
If you're looking for a place to add new time-related declaration, | If you're looking for a place to add new time-related declaration, | |||
it's most likely my_time.h. See also "C API Handling of Date | it's most likely my_time.h. See also "C API Handling of Date | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
mysql_version.h | mysql_version.h | |||
---|---|---|---|---|
skipping to change at line 13 | skipping to change at line 13 | |||
This file is public domain and comes with NO WARRANTY of any kind */ | This file is public domain and comes with NO WARRANTY of any kind */ | |||
/* Version numbers for protocol & mysqld */ | /* Version numbers for protocol & mysqld */ | |||
#ifndef _mysql_version_h | #ifndef _mysql_version_h | |||
#define _mysql_version_h | #define _mysql_version_h | |||
#ifdef _CUSTOMCONFIG_ | #ifdef _CUSTOMCONFIG_ | |||
#include <custom_conf.h> | #include <custom_conf.h> | |||
#else | #else | |||
#define PROTOCOL_VERSION 10 | #define PROTOCOL_VERSION 10 | |||
#define MYSQL_SERVER_VERSION "5.5.31" | #define MYSQL_SERVER_VERSION "5.5.33" | |||
#define MYSQL_BASE_VERSION "mysqld-5.5" | #define MYSQL_BASE_VERSION "mysqld-5.5" | |||
#define MYSQL_SERVER_SUFFIX_DEF "" | #define MYSQL_SERVER_SUFFIX_DEF "" | |||
#define FRM_VER 6 | #define FRM_VER 6 | |||
#define MYSQL_VERSION_ID 50531 | #define MYSQL_VERSION_ID 50533 | |||
#define MYSQL_PORT 3306 | #define MYSQL_PORT 3306 | |||
#define MYSQL_PORT_DEFAULT 0 | #define MYSQL_PORT_DEFAULT 0 | |||
#define MYSQL_UNIX_ADDR "/tmp/mysql.sock" | #define MYSQL_UNIX_ADDR "/tmp/mysql.sock" | |||
#define MYSQL_CONFIG_NAME "my" | #define MYSQL_CONFIG_NAME "my" | |||
#define MYSQL_COMPILATION_COMMENT "Source distribution" | #define MYSQL_COMPILATION_COMMENT "Source distribution" | |||
/* mysqld compile time options */ | /* mysqld compile time options */ | |||
#endif /* _CUSTOMCONFIG_ */ | #endif /* _CUSTOMCONFIG_ */ | |||
#ifndef LICENSE | #ifndef LICENSE | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
plugin.h | plugin.h | |||
---|---|---|---|---|
skipping to change at line 162 | skipping to change at line 162 | |||
declarations for server variables and command line options | declarations for server variables and command line options | |||
*/ | */ | |||
#define PLUGIN_VAR_BOOL 0x0001 | #define PLUGIN_VAR_BOOL 0x0001 | |||
#define PLUGIN_VAR_INT 0x0002 | #define PLUGIN_VAR_INT 0x0002 | |||
#define PLUGIN_VAR_LONG 0x0003 | #define PLUGIN_VAR_LONG 0x0003 | |||
#define PLUGIN_VAR_LONGLONG 0x0004 | #define PLUGIN_VAR_LONGLONG 0x0004 | |||
#define PLUGIN_VAR_STR 0x0005 | #define PLUGIN_VAR_STR 0x0005 | |||
#define PLUGIN_VAR_ENUM 0x0006 | #define PLUGIN_VAR_ENUM 0x0006 | |||
#define PLUGIN_VAR_SET 0x0007 | #define PLUGIN_VAR_SET 0x0007 | |||
#define PLUGIN_VAR_DOUBLE 0x0008 | ||||
#define PLUGIN_VAR_UNSIGNED 0x0080 | #define PLUGIN_VAR_UNSIGNED 0x0080 | |||
#define PLUGIN_VAR_THDLOCAL 0x0100 /* Variable is per-connection */ | #define PLUGIN_VAR_THDLOCAL 0x0100 /* Variable is per-connection */ | |||
#define PLUGIN_VAR_READONLY 0x0200 /* Server variable is read only */ | #define PLUGIN_VAR_READONLY 0x0200 /* Server variable is read only */ | |||
#define PLUGIN_VAR_NOSYSVAR 0x0400 /* Not a server variable */ | #define PLUGIN_VAR_NOSYSVAR 0x0400 /* Not a server variable */ | |||
#define PLUGIN_VAR_NOCMDOPT 0x0800 /* Not a command line option */ | #define PLUGIN_VAR_NOCMDOPT 0x0800 /* Not a command line option */ | |||
#define PLUGIN_VAR_NOCMDARG 0x1000 /* No argument for cmd line */ | #define PLUGIN_VAR_NOCMDARG 0x1000 /* No argument for cmd line */ | |||
#define PLUGIN_VAR_RQCMDARG 0x0000 /* Argument required for cmd line */ | #define PLUGIN_VAR_RQCMDARG 0x0000 /* Argument required for cmd line */ | |||
#define PLUGIN_VAR_OPCMDARG 0x2000 /* Argument optional for cmd line */ | #define PLUGIN_VAR_OPCMDARG 0x2000 /* Argument optional for cmd line */ | |||
#define PLUGIN_VAR_MEMALLOC 0x8000 /* String needs memory allocated */ | #define PLUGIN_VAR_MEMALLOC 0x8000 /* String needs memory allocated */ | |||
skipping to change at line 340 | skipping to change at line 341 | |||
#define MYSQL_SYSVAR_ENUM(name, varname, opt, comment, check, update, def, typelib) \ | #define MYSQL_SYSVAR_ENUM(name, varname, opt, comment, check, update, def, typelib) \ | |||
DECLARE_MYSQL_SYSVAR_TYPELIB(name, unsigned long) = { \ | DECLARE_MYSQL_SYSVAR_TYPELIB(name, unsigned long) = { \ | |||
PLUGIN_VAR_ENUM | ((opt) & PLUGIN_VAR_MASK), \ | PLUGIN_VAR_ENUM | ((opt) & PLUGIN_VAR_MASK), \ | |||
#name, comment, check, update, &varname, def, typelib } | #name, comment, check, update, &varname, def, typelib } | |||
#define MYSQL_SYSVAR_SET(name, varname, opt, comment, check, update, def, t ypelib) \ | #define MYSQL_SYSVAR_SET(name, varname, opt, comment, check, update, def, t ypelib) \ | |||
DECLARE_MYSQL_SYSVAR_TYPELIB(name, unsigned long long) = { \ | DECLARE_MYSQL_SYSVAR_TYPELIB(name, unsigned long long) = { \ | |||
PLUGIN_VAR_SET | ((opt) & PLUGIN_VAR_MASK), \ | PLUGIN_VAR_SET | ((opt) & PLUGIN_VAR_MASK), \ | |||
#name, comment, check, update, &varname, def, typelib } | #name, comment, check, update, &varname, def, typelib } | |||
#define MYSQL_SYSVAR_DOUBLE(name, varname, opt, comment, check, update, def | ||||
, min, max, blk) \ | ||||
DECLARE_MYSQL_SYSVAR_SIMPLE(name, double) = { \ | ||||
PLUGIN_VAR_DOUBLE | ((opt) & PLUGIN_VAR_MASK), \ | ||||
#name, comment, check, update, &varname, def, min, max, blk } | ||||
#define MYSQL_THDVAR_BOOL(name, opt, comment, check, update, def) \ | #define MYSQL_THDVAR_BOOL(name, opt, comment, check, update, def) \ | |||
DECLARE_MYSQL_THDVAR_BASIC(name, char) = { \ | DECLARE_MYSQL_THDVAR_BASIC(name, char) = { \ | |||
PLUGIN_VAR_BOOL | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \ | PLUGIN_VAR_BOOL | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \ | |||
#name, comment, check, update, -1, def, NULL} | #name, comment, check, update, -1, def, NULL} | |||
#define MYSQL_THDVAR_STR(name, opt, comment, check, update, def) \ | #define MYSQL_THDVAR_STR(name, opt, comment, check, update, def) \ | |||
DECLARE_MYSQL_THDVAR_BASIC(name, char *) = { \ | DECLARE_MYSQL_THDVAR_BASIC(name, char *) = { \ | |||
PLUGIN_VAR_STR | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \ | PLUGIN_VAR_STR | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \ | |||
#name, comment, check, update, -1, def, NULL} | #name, comment, check, update, -1, def, NULL} | |||
skipping to change at line 390 | skipping to change at line 396 | |||
#define MYSQL_THDVAR_ENUM(name, opt, comment, check, update, def, typelib) \ | #define MYSQL_THDVAR_ENUM(name, opt, comment, check, update, def, typelib) \ | |||
DECLARE_MYSQL_THDVAR_TYPELIB(name, unsigned long) = { \ | DECLARE_MYSQL_THDVAR_TYPELIB(name, unsigned long) = { \ | |||
PLUGIN_VAR_ENUM | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \ | PLUGIN_VAR_ENUM | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \ | |||
#name, comment, check, update, -1, def, NULL, typelib } | #name, comment, check, update, -1, def, NULL, typelib } | |||
#define MYSQL_THDVAR_SET(name, opt, comment, check, update, def, typelib) \ | #define MYSQL_THDVAR_SET(name, opt, comment, check, update, def, typelib) \ | |||
DECLARE_MYSQL_THDVAR_TYPELIB(name, unsigned long long) = { \ | DECLARE_MYSQL_THDVAR_TYPELIB(name, unsigned long long) = { \ | |||
PLUGIN_VAR_SET | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \ | PLUGIN_VAR_SET | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \ | |||
#name, comment, check, update, -1, def, NULL, typelib } | #name, comment, check, update, -1, def, NULL, typelib } | |||
#define MYSQL_THDVAR_DOUBLE(name, opt, comment, check, update, def, min, ma | ||||
x, blk) \ | ||||
DECLARE_MYSQL_THDVAR_SIMPLE(name, double) = { \ | ||||
PLUGIN_VAR_DOUBLE | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \ | ||||
#name, comment, check, update, -1, def, min, max, blk, NULL } | ||||
/* accessor macros */ | /* accessor macros */ | |||
#define SYSVAR(name) \ | #define SYSVAR(name) \ | |||
(*(MYSQL_SYSVAR_NAME(name).value)) | (*(MYSQL_SYSVAR_NAME(name).value)) | |||
/* when thd == null, result points to global value */ | /* when thd == null, result points to global value */ | |||
#define THDVAR(thd, name) \ | #define THDVAR(thd, name) \ | |||
(*(MYSQL_SYSVAR_NAME(name).resolve(thd, MYSQL_SYSVAR_NAME(name).offset))) | (*(MYSQL_SYSVAR_NAME(name).resolve(thd, MYSQL_SYSVAR_NAME(name).offset))) | |||
/* | /* | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 13 lines changed or added | |||
typelib.h | typelib.h | |||
---|---|---|---|---|
skipping to change at line 14 | skipping to change at line 14 | |||
it under the terms of the GNU General Public License as published by | it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation; version 2 of the License. | the Free Software Foundation; version 2 of the License. | |||
This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | GNU General Public License for more details. | |||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | |||
along with this program; if not, write to the Free Software | along with this program; if not, write to the Free Software | |||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A */ | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1, USA */ | |||
#ifndef _typelib_h | #ifndef _typelib_h | |||
#define _typelib_h | #define _typelib_h | |||
#include "my_alloc.h" | #include "my_alloc.h" | |||
typedef struct st_typelib { /* Different types saved here */ | typedef struct st_typelib { /* Different types saved here */ | |||
unsigned int count; /* How many types */ | unsigned int count; /* How many types */ | |||
const char *name; /* Name of typelib */ | const char *name; /* Name of typelib */ | |||
const char **type_names; | const char **type_names; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||