Commit 5679a2b6 authored by Sergey Vojtovich's avatar Sergey Vojtovich

Shrink my_atomic.h and my_cpu.h scope

parent 4bd9f82a
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#define INCLUDE_LF_INCLUDED #define INCLUDE_LF_INCLUDED
#include <my_atomic.h> #include <my_atomic.h>
#include <my_cpu.h>
C_MODE_START C_MODE_START
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
#define ETIME ETIMEDOUT /* For FreeBSD */ #define ETIME ETIMEDOUT /* For FreeBSD */
#endif #endif
#include <my_atomic.h>
#ifdef __cplusplus #ifdef __cplusplus
#define EXTERNC extern "C" #define EXTERNC extern "C"
extern "C" { extern "C" {
......
...@@ -102,6 +102,7 @@ ...@@ -102,6 +102,7 @@
#include <my_global.h> #include <my_global.h>
#include <my_sys.h> #include <my_sys.h>
#include <lf.h> #include <lf.h>
#include "my_cpu.h"
/* /*
when using alloca() leave at least that many bytes of the stack - when using alloca() leave at least that many bytes of the stack -
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <mysys_err.h> #include <mysys_err.h>
#include <my_bit.h> #include <my_bit.h>
#include <lf.h> #include <lf.h>
#include "my_cpu.h"
/* An element of the list */ /* An element of the list */
typedef struct { typedef struct {
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "my_static.h" #include "my_static.h"
#include <errno.h> #include <errno.h>
#include "mysys_err.h" #include "mysys_err.h"
#include "my_atomic.h"
static void make_ftype(char * to,int flag); static void make_ftype(char * to,int flag);
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "mysys_err.h" #include "mysys_err.h"
#include <m_string.h> #include <m_string.h>
#include <errno.h> #include <errno.h>
#include "my_atomic.h"
CREATE_NOSYMLINK_FUNCTION( CREATE_NOSYMLINK_FUNCTION(
open_nosymlinks(const char *pathname, int flags, int mode), open_nosymlinks(const char *pathname, int flags, int mode),
......
...@@ -175,6 +175,7 @@ ...@@ -175,6 +175,7 @@
#include <my_global.h> #include <my_global.h>
#include <waiting_threads.h> #include <waiting_threads.h>
#include <m_string.h> #include <m_string.h>
#include "my_cpu.h"
/* status variables */ /* status variables */
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
#include <m_ctype.h> #include <m_ctype.h>
#include <my_dir.h> #include <my_dir.h>
#include <my_bit.h> #include <my_bit.h>
#include "my_cpu.h"
#include "slave.h" #include "slave.h"
#include "rpl_mi.h" #include "rpl_mi.h"
#include "sql_repl.h" #include "sql_repl.h"
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
#endif #endif
#include "transaction.h" #include "transaction.h"
#include "opt_trace.h" #include "opt_trace.h"
#include "my_cpu.h"
enum enum_i_s_events_fields enum enum_i_s_events_fields
{ {
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "mariadb.h" #include "mariadb.h"
#include "sql_class.h" #include "sql_class.h"
#include "transaction.h" #include "transaction.h"
#include "my_cpu.h"
/*************************************************************************** /***************************************************************************
......
...@@ -37,6 +37,7 @@ Created 12/15/2009 Jimmy Yang ...@@ -37,6 +37,7 @@ Created 12/15/2009 Jimmy Yang
#endif /* __STDC_LIMIT_MACROS */ #endif /* __STDC_LIMIT_MACROS */
#include <stdint.h> #include <stdint.h>
#include "my_atomic.h"
/** Possible status values for "mon_status" in "struct monitor_value" */ /** Possible status values for "mon_status" in "struct monitor_value" */
enum monitor_running_status { enum monitor_running_status {
......
...@@ -109,6 +109,7 @@ ...@@ -109,6 +109,7 @@
#include <my_sys.h> #include <my_sys.h>
#include <my_bit.h> #include <my_bit.h>
#include <lf.h> #include <lf.h>
#include "my_cpu.h"
#include "lockman.h" #include "lockman.h"
/* /*
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
#include "thr_template.c" #include "thr_template.c"
#include "my_atomic.h"
volatile uint32 b32; volatile uint32 b32;
volatile int32 c32; volatile int32 c32;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment