1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Less dependencies in include files

This commit is contained in:
Michael Widenius
2017-11-22 08:01:43 +02:00
parent 166056f744
commit 8a24be6e74
10 changed files with 11 additions and 16 deletions

View File

@ -22,7 +22,6 @@
#ifndef _m_string_h #ifndef _m_string_h
#define _m_string_h #define _m_string_h
#include "my_global.h" /* HAVE_* */
#include "my_decimal_limits.h" #include "my_decimal_limits.h"
#ifndef __USE_GNU #ifndef __USE_GNU

View File

@ -25,9 +25,6 @@
#include "mariadb.h" #include "mariadb.h"
#include "sql_priv.h" #include "sql_priv.h"
#include "filesort.h" #include "filesort.h"
#ifdef HAVE_STDDEF_H
#include <stddef.h> /* for macro offsetof */
#endif
#include <m_ctype.h> #include <m_ctype.h>
#include "sql_sort.h" #include "sql_sort.h"
#include "probes_mysql.h" #include "probes_mysql.h"

View File

@ -128,8 +128,6 @@ enum precedence {
HIGHEST_PRECEDENCE HIGHEST_PRECEDENCE
}; };
typedef Bounds_checked_array<Item*> Ref_ptr_array;
bool mark_unsupported_function(const char *where, void *store, uint result); bool mark_unsupported_function(const char *where, void *store, uint result);
/* convenience helper for mark_unsupported_function() above */ /* convenience helper for mark_unsupported_function() above */

View File

@ -258,4 +258,6 @@ public:
} }
}; };
typedef Bounds_checked_array<Item*> Ref_ptr_array;
#endif /* SQL_ARRAY_INCLUDED */ #endif /* SQL_ARRAY_INCLUDED */

View File

@ -2052,11 +2052,6 @@ typedef struct
extern "C" void my_message_sql(uint error, const char *str, myf MyFlags); extern "C" void my_message_sql(uint error, const char *str, myf MyFlags);
class THD;
#ifndef DBUG_OFF
void dbug_serve_apcs(THD *thd, int n_calls);
#endif
/** /**
@class THD @class THD
For each client connection we create a separate thread with THD serving as For each client connection we create a separate thread with THD serving as
@ -6292,6 +6287,10 @@ public:
}; };
#ifndef DBUG_OFF
void dbug_serve_apcs(THD *thd, int n_calls);
#endif
#endif /* MYSQL_SERVER */ #endif /* MYSQL_SERVER */
#endif /* SQL_CLASS_INCLUDED */ #endif /* SQL_CLASS_INCLUDED */

View File

@ -31,6 +31,7 @@
#include "sql_trigger.h" #include "sql_trigger.h"
#include "sp.h" // enum stored_procedure_type #include "sp.h" // enum stored_procedure_type
#include "sql_tvc.h" #include "sql_tvc.h"
#include "item.h"
/* YACC and LEX Definitions */ /* YACC and LEX Definitions */

View File

@ -16,14 +16,14 @@
#ifndef SQL_TVC_INCLUDED #ifndef SQL_TVC_INCLUDED
#define SQL_TVC_INCLUDED #define SQL_TVC_INCLUDED
#include "sql_type.h" #include "sql_type.h"
#include "item.h"
typedef List<Item> List_item; typedef List<Item> List_item;
class select_result; class select_result;
class Explain_select; class Explain_select;
class Explain_query; class Explain_query;
class Item_func_in; class Item_func_in;
class st_select_lex_unit;
typedef class st_select_lex SELECT_LEX;
/** /**
@class table_value_constr @class table_value_constr

View File

@ -73,7 +73,6 @@ struct Schema_specification_st;
struct TABLE; struct TABLE;
struct SORT_FIELD_ATTR; struct SORT_FIELD_ATTR;
/* /*
Flags for collation aggregation modes, used in TDCollation::agg(): Flags for collation aggregation modes, used in TDCollation::agg():

View File

@ -17,7 +17,6 @@
#ifndef SQL_WINDOW_INCLUDED #ifndef SQL_WINDOW_INCLUDED
#define SQL_WINDOW_INCLUDED #define SQL_WINDOW_INCLUDED
#include "item.h"
#include "filesort.h" #include "filesort.h"
#include "records.h" #include "records.h"

View File

@ -43,13 +43,14 @@ struct tokutxn;
#if defined(ENABLED_DEBUG_SYNC) #if defined(ENABLED_DEBUG_SYNC)
/* /*
the below macros are defined in my_global.h, which is included in m_string.h, the below macros are defined in my_global.h
the same macros are defined in TokuSetupCompiler.cmake as compiler options, the same macros are defined in TokuSetupCompiler.cmake as compiler options,
undefine them here to avoid build errors undefine them here to avoid build errors
*/ */
#undef __STDC_FORMAT_MACROS #undef __STDC_FORMAT_MACROS
#undef __STDC_LIMIT_MACROS #undef __STDC_LIMIT_MACROS
#include "my_global.h"
#include "m_string.h" #include "m_string.h"
#include "debug_sync.h" #include "debug_sync.h"