From 6bc7eab161508115168359460b9d52aff153dbaf Mon Sep 17 00:00:00 2001 From: Alexander Ivanov Date: Fri, 16 Oct 2009 15:20:09 +0400 Subject: MWL#36: Add a mysqlbinlog option to change the used database. Make sql_alloc() declaration "public" for a client context. The reason is that sql_alloc() is used in definition of some common purpose stuff (e.g. sql_list.*). To make this stuff available for a client context we declare sql_alloc() as a "virtual function", i.e. as a function that is already declared but must be defined in this context (note that definition of sql_alloc() in thr_malloc.cc is #ifndef'ed for MYSQL_CLIENT). Also make sql_string.h repeatedly includable. --- sql/sql_string.cc | 9 --------- 1 file changed, 9 deletions(-) (limited to 'sql/sql_string.cc') diff --git a/sql/sql_string.cc b/sql/sql_string.cc index e9927c8e85c..a326e8a7ef0 100644 --- a/sql/sql_string.cc +++ b/sql/sql_string.cc @@ -26,15 +26,6 @@ #ifdef HAVE_FCONVERT #include #endif - -/* - The following extern declarations are ok as these are interface functions - required by the string function -*/ - -extern uchar* sql_alloc(unsigned size); -extern void sql_element_free(void *ptr); - #include "sql_string.h" /***************************************************************************** -- cgit v1.2.1