@@ -59,8 +59,6 @@ static char *server_version= NULL;
59
59
/* Array of options to pass to libemysqld */
60
60
#define MAX_SERVER_ARGS 64
61
61
62
- void * sql_alloc (unsigned size); // Don't use mysqld alloc for these
63
- void sql_element_free (void *ptr);
64
62
#include " sql_string.h"
65
63
66
64
extern " C" {
@@ -2318,8 +2316,10 @@ static bool add_line(String &buffer,char *line,char *in_string,
2318
2316
2319
2317
#ifdef HAVE_READLINE
2320
2318
2319
+ C_MODE_START
2321
2320
static char *new_command_generator (const char *text, int );
2322
- extern " C" char **new_mysql_completion (const char *text, int start, int end);
2321
+ static char **new_mysql_completion (const char *text, int start, int end);
2322
+ C_MODE_END
2323
2323
2324
2324
/*
2325
2325
Tell the GNU Readline library how to complete. We want to try to complete
@@ -2451,9 +2451,9 @@ static void initialize_readline (char *name)
2451
2451
array of matches, or NULL if there aren't any.
2452
2452
*/
2453
2453
2454
- char **new_mysql_completion (const char *text,
2455
- int start __attribute__ ((unused)),
2456
- int end __attribute__((unused)))
2454
+ static char **new_mysql_completion (const char *text,
2455
+ int start __attribute__ ((unused)),
2456
+ int end __attribute__((unused)))
2457
2457
{
2458
2458
if (!status.batch && !quick)
2459
2459
#if defined(USE_NEW_READLINE_INTERFACE)
@@ -4963,17 +4963,3 @@ static int com_prompt(String *buffer, char *line)
4963
4963
tee_fprintf (stdout, " PROMPT set to '%s'\n " , current_prompt);
4964
4964
return 0 ;
4965
4965
}
4966
-
4967
- #ifndef EMBEDDED_LIBRARY
4968
- /* Keep sql_string library happy */
4969
-
4970
- void *sql_alloc (size_t Size )
4971
- {
4972
- return my_malloc (Size ,MYF (MY_WME));
4973
- }
4974
-
4975
- void sql_element_free (void *ptr)
4976
- {
4977
- my_free (ptr,MYF (0 ));
4978
- }
4979
- #endif /* EMBEDDED_LIBRARY */
0 commit comments