Shrink my_atomic.h and my_cpu.h scope

This commit is contained in:
Sergey Vojtovich 2020-04-15 21:23:12 +04:00
parent 4bd9f82a8f
commit 5679a2b6b3
13 changed files with 11 additions and 3 deletions

View file

@ -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

View file

@ -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" {

View file

@ -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 -

View file

@ -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 {

View file

@ -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);

View file

@ -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),

View file

@ -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 */

View file

@ -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"

View file

@ -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
{ {

View file

@ -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"
/*************************************************************************** /***************************************************************************

View file

@ -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 {

View file

@ -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"
/* /*

View file

@ -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;