mirror of
https://github.com/MariaDB/server.git
synced 2025-12-10 19:44:09 +03:00
symbols. Use it for all definitions of non-static variables and functions. lexyy.c, make_flex.sh: Declare yylex as UNIV_INTERN, not static. It is referenced from pars0grm.c. Actually, according to nm .libs/ha_innodb.so|grep -w '[ABCE-TVXYZ]' the following symbols are still global: * The vtable for class ha_innodb * pars0grm.c: The function yyparse() and the variables yychar, yylval, yynerrs The required changes to the Bison-generated file pars0grm.c will be addressed in a separate commit, which will add a script similar to make_flex.sh. The class ha_innodb is renamed from class ha_innobase by a #define. Thus, there will be no clash with the builtin InnoDB. However, there will be some overhead for invoking virtual methods of class ha_innodb. Ideas for making the vtable hidden are welcome. -fvisibility=hidden is not available in GCC 3.
38 lines
1005 B
C++
38 lines
1005 B
C++
/******************************************************
|
|
This file contains functions that need to be added to
|
|
MySQL code but have not been added yet.
|
|
|
|
Whenever you add a function here submit a MySQL bug
|
|
report (feature request) with the implementation. Then
|
|
write the bug number in the comment before the
|
|
function in this file.
|
|
|
|
When MySQL commits the function it can be deleted from
|
|
here. In a perfect world this file exists but is empty.
|
|
|
|
(c) 2007 Innobase Oy
|
|
|
|
Created November 07, 2007 Vasil Dimov
|
|
*******************************************************/
|
|
|
|
#ifndef MYSQL_SERVER
|
|
#define MYSQL_SERVER
|
|
#endif /* MYSQL_SERVER */
|
|
|
|
#include <mysql_priv.h>
|
|
|
|
#include "mysql_addons.h"
|
|
|
|
/***********************************************************************
|
|
Retrieve THD::thread_id
|
|
http://bugs.mysql.com/30930 */
|
|
extern "C" UNIV_INTERN
|
|
unsigned long
|
|
ib_thd_get_thread_id(
|
|
/*=================*/
|
|
/* out: THD::thread_id */
|
|
const void* thd) /* in: THD */
|
|
{
|
|
return((unsigned long) ((THD*) thd)->thread_id);
|
|
}
|