44
44
#include <sys/ioctl.h>
45
45
#include <drizzled/configmake.h>
48
#if defined(HAVE_LOCALE_H)
52
#include <drizzled/gettext.h>
54
#if defined(CMATH_NAMESPACE)
55
using namespace CMATH_NAMESPACE;
58
const char *VER= "14.14";
60
/* Don't try to make a nice table if the data is too big */
61
#define MAX_COLUMN_LENGTH (uint32_t)1024
63
/* Buffer to hold 'version' and 'version_comment' */
64
#define MAX_SERVER_VERSION_LENGTH 128
66
void* sql_alloc(unsigned size); // Don't use drizzled alloc for these
67
void sql_element_free(void *ptr);
70
47
#if defined(HAVE_CURSES_H) && defined(HAVE_TERM_H)
71
48
#include <curses.h>
99
#undef bcmp // Fix problem with new readline
101
#ifdef HAVE_READLINE_HISTORY_H
102
#include <readline/history.h>
104
#include <readline/readline.h>
107
77
Make the old readline interface look like the new one.
113
83
completion_matches((char *)str, (CPFunction *)func)
86
#ifdef HAVE_LIBREADLINE
87
# if defined(HAVE_READLINE_READLINE_H)
88
# include <readline/readline.h>
89
# elif defined(HAVE_READLINE_H)
90
# include <readline.h>
91
# else /* !defined(HAVE_READLINE_H) */
92
extern char *readline ();
93
# endif /* !defined(HAVE_READLINE_H) */
95
#else /* !defined(HAVE_READLINE_READLINE_H) */
97
# error Readline Required
98
#endif /* HAVE_LIBREADLINE */
100
#ifdef HAVE_READLINE_HISTORY
101
# if defined(HAVE_READLINE_HISTORY_H)
102
# include <readline/history.h>
103
# elif defined(HAVE_HISTORY_H)
104
# include <history.h>
105
# else /* !defined(HAVE_HISTORY_H) */
106
extern void add_history ();
107
extern int write_history ();
108
extern int read_history ();
109
# endif /* defined(HAVE_READLINE_HISTORY_H) */
111
#endif /* HAVE_READLINE_HISTORY */
114
#if defined(HAVE_LOCALE_H)
118
#include <drizzled/gettext.h>
120
#if defined(CMATH_NAMESPACE)
121
using namespace CMATH_NAMESPACE;
124
const char *VER= "14.14";
126
/* Don't try to make a nice table if the data is too big */
127
#define MAX_COLUMN_LENGTH (uint32_t)1024
129
/* Buffer to hold 'version' and 'version_comment' */
130
#define MAX_SERVER_VERSION_LENGTH 128
132
void* sql_alloc(unsigned size); // Don't use drizzled alloc for these
133
void sql_element_free(void *ptr);
117
136
#if !defined(HAVE_VIDATTR)