summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2004-06-10 23:58:39 +0400
committerkonstantin@mysql.com <>2004-06-10 23:58:39 +0400
commitf08bbd1f1260becb5e537932527eef52b1584776 (patch)
treebc9b38762d9fffec51179a6188934e2411fd8067
parent3d33dc7c770ba6198a900abd3b26d4e68ca04217 (diff)
downloadmariadb-git-f08bbd1f1260becb5e537932527eef52b1584776.tar.gz
assert.h needed for my_dbug.h now is included in my_dbug.h, where it for
some reason wasn't included before. A lot of files cleaned up from #include <assert.h>
-rw-r--r--client/mysqlbinlog.cc1
-rw-r--r--client/mysqldump.c1
-rw-r--r--heap/hp_hash.c1
-rw-r--r--include/m_string.h1
-rw-r--r--include/my_dbug.h1
-rw-r--r--libmysql/libmysql.c1
-rw-r--r--myisam/ftdefs.h1
-rw-r--r--myisam/mi_delete.c1
-rw-r--r--myisam/mi_dynrec.c1
-rw-r--r--myisam/mi_key.c1
-rw-r--r--myisam/mi_open.c1
-rw-r--r--myisam/mi_search.c1
-rw-r--r--myisam/mi_write.c1
-rw-r--r--mysys/mf_iocache.c1
-rw-r--r--mysys/mf_iocache2.c1
-rw-r--r--mysys/mf_keycache.c1
-rw-r--r--mysys/my_bitmap.c1
-rw-r--r--mysys/my_gethostbyname.c1
-rw-r--r--mysys/my_getopt.c1
-rw-r--r--mysys/my_pthread.c1
-rw-r--r--mysys/my_seek.c1
-rw-r--r--mysys/rijndael.c1
-rw-r--r--mysys/thr_alarm.c1
-rw-r--r--sql-common/client.c1
-rw-r--r--sql/mysql_priv.h1
-rw-r--r--sql/sql_string.cc1
-rw-r--r--strings/ctype-simple.c1
-rw-r--r--strings/ctype-ucs2.c1
-rw-r--r--strings/my_vsnprintf.c1
29 files changed, 1 insertions, 28 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc
index 221015f8c7d..ba030379792 100644
--- a/client/mysqlbinlog.cc
+++ b/client/mysqlbinlog.cc
@@ -18,7 +18,6 @@
#undef MYSQL_SERVER
#include "client_priv.h"
#include <time.h>
-#include <assert.h>
#include "log_event.h"
#define BIN_LOG_HEADER_SIZE 4
diff --git a/client/mysqldump.c b/client/mysqldump.c
index 9c64e2d1b3a..218a97c252e 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -43,7 +43,6 @@
#include <my_sys.h>
#include <m_string.h>
#include <m_ctype.h>
-#include <assert.h>
#include "client_priv.h"
#include "mysql.h"
diff --git a/heap/hp_hash.c b/heap/hp_hash.c
index 1f36f9b3059..2014b2b0adc 100644
--- a/heap/hp_hash.c
+++ b/heap/hp_hash.c
@@ -18,7 +18,6 @@
#include "heapdef.h"
#include <m_ctype.h>
-#include <assert.h>
diff --git a/include/m_string.h b/include/m_string.h
index 7fc35dc2e48..0709dbaffb4 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -123,7 +123,6 @@ extern void bmove_align(gptr dst,const gptr src,uint len);
#endif
#ifdef HAVE_purify
-#include <assert.h>
#define memcpy_overlap(A,B,C) \
DBUG_ASSERT((A) <= (B) || ((B)+(C)) <= (A)); \
bmove((byte*) (A),(byte*) (B),(size_t) (C));
diff --git a/include/my_dbug.h b/include/my_dbug.h
index 5c88e2e42db..d02ea5bf050 100644
--- a/include/my_dbug.h
+++ b/include/my_dbug.h
@@ -16,6 +16,7 @@
#ifndef _dbug_h
#define _dbug_h
+#include <assert.h>
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index b77fc5fd6fd..522b0869a60 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -27,7 +27,6 @@
#include <sys/stat.h>
#include <signal.h>
#include <time.h>
-#include <assert.h> /* for DBUG_ASSERT() */
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
diff --git a/myisam/ftdefs.h b/myisam/ftdefs.h
index a97485ec021..e23bc3b75ac 100644
--- a/myisam/ftdefs.h
+++ b/myisam/ftdefs.h
@@ -22,7 +22,6 @@
#include <m_ctype.h>
#include <my_tree.h>
#include <queues.h>
-#include <assert.h>
#define true_word_char(s,X) (my_isalnum(s,X) || (X)=='_')
#define misc_word_char(X) ((X)=='\'')
diff --git a/myisam/mi_delete.c b/myisam/mi_delete.c
index 3eb8e9a7226..c19f2582b9c 100644
--- a/myisam/mi_delete.c
+++ b/myisam/mi_delete.c
@@ -18,7 +18,6 @@
#include "fulltext.h"
#include "rt_index.h"
-#include <assert.h>
static int d_search(MI_INFO *info,MI_KEYDEF *keyinfo,uint comp_flag,
uchar *key,uint key_length,my_off_t page,uchar *anc_buff);
diff --git a/myisam/mi_dynrec.c b/myisam/mi_dynrec.c
index f64e774810d..0b8d3c97872 100644
--- a/myisam/mi_dynrec.c
+++ b/myisam/mi_dynrec.c
@@ -25,7 +25,6 @@
*/
#include "myisamdef.h"
-#include <assert.h>
/* Enough for comparing if number is zero */
static char zero_string[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
diff --git a/myisam/mi_key.c b/myisam/mi_key.c
index 4aebba041f8..d19a3130a86 100644
--- a/myisam/mi_key.c
+++ b/myisam/mi_key.c
@@ -19,7 +19,6 @@
#include "myisamdef.h"
#include "m_ctype.h"
#include "sp_defs.h"
-#include <assert.h>
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
diff --git a/myisam/mi_open.c b/myisam/mi_open.c
index d03c18091aa..562227d2f03 100644
--- a/myisam/mi_open.c
+++ b/myisam/mi_open.c
@@ -20,7 +20,6 @@
#include "sp_defs.h"
#include "rt_index.h"
#include <m_ctype.h>
-#include <assert.h>
#if defined(MSDOS) || defined(__WIN__)
#ifdef __WIN__
diff --git a/myisam/mi_search.c b/myisam/mi_search.c
index 51ced6fa15a..1b03acddbc1 100644
--- a/myisam/mi_search.c
+++ b/myisam/mi_search.c
@@ -18,7 +18,6 @@
#include "fulltext.h"
#include "m_ctype.h"
-#include <assert.h>
static my_bool _mi_get_prev_key(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page,
uchar *key, uchar *keypos,
diff --git a/myisam/mi_write.c b/myisam/mi_write.c
index c17f47fc1ae..dc596672a84 100644
--- a/myisam/mi_write.c
+++ b/myisam/mi_write.c
@@ -18,7 +18,6 @@
#include "fulltext.h"
#include "rt_index.h"
-#include <assert.h>
#define MAX_POINTER_LENGTH 8
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c
index 7b5371c4289..f16f2b7ab72 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -55,7 +55,6 @@ TODO:
#include "mysys_err.h"
static void my_aiowait(my_aio_result *result);
#endif
-#include <assert.h>
#include <errno.h>
#ifdef THREAD
diff --git a/mysys/mf_iocache2.c b/mysys/mf_iocache2.c
index 70b2f288538..3755bcdb53d 100644
--- a/mysys/mf_iocache2.c
+++ b/mysys/mf_iocache2.c
@@ -23,7 +23,6 @@
#include <m_string.h>
#include <stdarg.h>
#include <m_ctype.h>
-#include <assert.h>
my_off_t my_b_append_tell(IO_CACHE* info)
{
diff --git a/mysys/mf_keycache.c b/mysys/mf_keycache.c
index 168483f276b..32b3154b8ed 100644
--- a/mysys/mf_keycache.c
+++ b/mysys/mf_keycache.c
@@ -44,7 +44,6 @@
#include "my_static.h"
#include <m_string.h>
#include <errno.h>
-#include <assert.h>
#include <stdarg.h>
/*
diff --git a/mysys/my_bitmap.c b/mysys/my_bitmap.c
index 0f8984e6b3d..3a09255b0b0 100644
--- a/mysys/my_bitmap.c
+++ b/mysys/my_bitmap.c
@@ -35,7 +35,6 @@
#include "mysys_priv.h"
#include <my_bitmap.h>
-#include <assert.h>
#include <m_string.h>
diff --git a/mysys/my_gethostbyname.c b/mysys/my_gethostbyname.c
index 5044a505054..27281f3489d 100644
--- a/mysys/my_gethostbyname.c
+++ b/mysys/my_gethostbyname.c
@@ -18,7 +18,6 @@
/* Thread safe version of gethostbyname_r() */
#include "mysys_priv.h"
-#include <assert.h>
#if !defined(MSDOS) && !defined(__WIN__)
#include <netdb.h>
#endif
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c
index 8d0b05d55f7..d7a9babe5e7 100644
--- a/mysys/my_getopt.c
+++ b/mysys/my_getopt.c
@@ -18,7 +18,6 @@
#include <m_string.h>
#include <stdlib.h>
#include <my_getopt.h>
-#include <assert.h>
#include <my_sys.h>
#include <mysys_err.h>
diff --git a/mysys/my_pthread.c b/mysys/my_pthread.c
index d721418ffa1..37517fb8327 100644
--- a/mysys/my_pthread.c
+++ b/mysys/my_pthread.c
@@ -23,7 +23,6 @@
#include <signal.h>
#include <m_string.h>
#include <thr_alarm.h>
-#include <assert.h>
#if (defined(__BSD__) || defined(_BSDI_VERSION)) && !defined(HAVE_mit_thread)
#define SCHED_POLICY SCHED_RR
diff --git a/mysys/my_seek.c b/mysys/my_seek.c
index ec24a26b3d9..6af65d70fd0 100644
--- a/mysys/my_seek.c
+++ b/mysys/my_seek.c
@@ -15,7 +15,6 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "mysys_priv.h"
-#include <assert.h>
/* Seek to position in file */
/*ARGSUSED*/
diff --git a/mysys/rijndael.c b/mysys/rijndael.c
index dd0c45445d5..43cd14101ca 100644
--- a/mysys/rijndael.c
+++ b/mysys/rijndael.c
@@ -26,7 +26,6 @@
*/
#include <my_global.h>
-#include <assert.h>
#include "rijndael.h"
/*
diff --git a/mysys/thr_alarm.c b/mysys/thr_alarm.c
index 54aa4d421f6..84a8e779ae1 100644
--- a/mysys/thr_alarm.c
+++ b/mysys/thr_alarm.c
@@ -27,7 +27,6 @@
#include <m_string.h>
#include <queues.h>
#include "thr_alarm.h"
-#include <assert.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h> /* AIX needs this for fd_set */
diff --git a/sql-common/client.c b/sql-common/client.c
index 962faf5cbe1..61ffd2b52e6 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -63,7 +63,6 @@ my_bool net_flush(NET *net);
#include "mysqld_error.h"
#include "errmsg.h"
#include <violite.h>
-#include <assert.h>
#if defined(THREAD) && !defined(__WIN__)
#include <my_pthread.h> /* because of signal() */
#endif /* defined(THREAD) && !defined(__WIN__) */
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index 587fdf5d42b..b2d21c3fb55 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -15,7 +15,6 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <my_global.h>
-#include <assert.h>
#include <mysql_version.h>
#include <mysql_embed.h>
#include <my_sys.h>
diff --git a/sql/sql_string.cc b/sql/sql_string.cc
index 991fb4d5c5a..f7e4e436495 100644
--- a/sql/sql_string.cc
+++ b/sql/sql_string.cc
@@ -24,7 +24,6 @@
#include <my_sys.h>
#include <m_string.h>
#include <m_ctype.h>
-#include <assert.h>
#ifdef HAVE_FCONVERT
#include <floatingpoint.h>
#endif
diff --git a/strings/ctype-simple.c b/strings/ctype-simple.c
index ba1fc1c424a..5f0a7426db3 100644
--- a/strings/ctype-simple.c
+++ b/strings/ctype-simple.c
@@ -20,7 +20,6 @@
#include <errno.h>
#include "stdarg.h"
-#include "assert.h"
int my_strnxfrm_simple(CHARSET_INFO * cs,
diff --git a/strings/ctype-ucs2.c b/strings/ctype-ucs2.c
index bdf9b0f9252..9f1accf841f 100644
--- a/strings/ctype-ucs2.c
+++ b/strings/ctype-ucs2.c
@@ -312,7 +312,6 @@ static int my_mbcharlen_ucs2(CHARSET_INFO *cs __attribute__((unused)) ,
#include <m_string.h>
#include <stdarg.h>
-#include <assert.h>
static int my_vsnprintf_ucs2(char *dst, uint n, const char* fmt, va_list ap)
{
diff --git a/strings/my_vsnprintf.c b/strings/my_vsnprintf.c
index dc03c130dcd..784c4762724 100644
--- a/strings/my_vsnprintf.c
+++ b/strings/my_vsnprintf.c
@@ -18,7 +18,6 @@
#include <m_string.h>
#include <stdarg.h>
#include <m_ctype.h>
-#include <assert.h>
/*
Limited snprintf() implementations