Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f300e3a1
Commit
f300e3a1
authored
Sep 13, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove 'extern' references from .cc files
parent
efce59fc
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
38 additions
and
34 deletions
+38
-34
mysys/checksum.c
mysys/checksum.c
+4
-2
mysys/my_static.h
mysys/my_static.h
+0
-1
sql/item_strfunc.cc
sql/item_strfunc.cc
+6
-9
sql/lock.cc
sql/lock.cc
+0
-2
sql/log.cc
sql/log.cc
+0
-1
sql/mysql_priv.h
sql/mysql_priv.h
+17
-1
sql/net_serv.cc
sql/net_serv.cc
+6
-1
sql/repl_failsafe.cc
sql/repl_failsafe.cc
+0
-1
sql/set_var.cc
sql/set_var.cc
+0
-2
sql/sql_derived.cc
sql/sql_derived.cc
+0
-2
sql/sql_insert.cc
sql/sql_insert.cc
+0
-2
sql/sql_parse.cc
sql/sql_parse.cc
+0
-2
sql/sql_prepare.cc
sql/sql_prepare.cc
+0
-1
sql/sql_repl.cc
sql/sql_repl.cc
+0
-2
sql/sql_string.cc
sql/sql_string.cc
+5
-0
sql/sql_table.cc
sql/sql_table.cc
+0
-1
sql/sql_test.cc
sql/sql_test.cc
+0
-2
sql/sql_yacc.yy
sql/sql_yacc.yy
+0
-1
sql/table.cc
sql/table.cc
+0
-1
No files found.
mysys/checksum.c
View file @
f300e3a1
...
@@ -30,11 +30,13 @@
...
@@ -30,11 +30,13 @@
ha_checksum
my_checksum
(
ha_checksum
crc
,
const
byte
*
pos
,
uint
length
)
ha_checksum
my_checksum
(
ha_checksum
crc
,
const
byte
*
pos
,
uint
length
)
{
{
/* const byte *end=pos+length;
#ifdef NOT_USED
const
byte
*
end
=
pos
+
length
;
for
(
;
pos
!=
end
;
pos
++
)
for
(
;
pos
!=
end
;
pos
++
)
crc
=
((
crc
<<
8
)
+
*
((
uchar
*
)
pos
))
+
(
crc
>>
(
8
*
sizeof
(
ha_checksum
)
-
8
));
crc
=
((
crc
<<
8
)
+
*
((
uchar
*
)
pos
))
+
(
crc
>>
(
8
*
sizeof
(
ha_checksum
)
-
8
));
return
crc
;
return
crc
;
*/
#else
return
(
ha_checksum
)
crc32
((
uint
)
crc
,
(
const
uchar
*
)
pos
,
length
);
return
(
ha_checksum
)
crc32
((
uint
)
crc
,
(
const
uchar
*
)
pos
,
length
);
#endif
}
}
mysys/my_static.h
View file @
f300e3a1
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
a shared library
a shared library
*/
*/
#include "mysys_priv.h"
#include <signal.h>
#include <signal.h>
#define MAX_SIGNALS 10
/* Max signals under a dont-allow */
#define MAX_SIGNALS 10
/* Max signals under a dont-allow */
...
...
sql/item_strfunc.cc
View file @
f300e3a1
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include "md5.h"
#include "md5.h"
#include "sha1.h"
#include "sha1.h"
#include "my_aes.h"
#include "my_aes.h"
#include "../mysys/my_static.h" // For soundex_map
String
empty_string
(
""
,
default_charset_info
);
String
empty_string
(
""
,
default_charset_info
);
...
@@ -1496,15 +1497,11 @@ void Item_func_soundex::fix_length_and_dec()
...
@@ -1496,15 +1497,11 @@ void Item_func_soundex::fix_length_and_dec()
}
}
/*
/*
If alpha, map input letter to soundex code.
If alpha, map input letter to soundex code.
If not alpha and remove_garbage is set then skip to next char
If not alpha and remove_garbage is set then skip to next char
else return 0
else return 0
*/
*/
extern
"C"
{
extern
const
char
*
soundex_map
;
// In mysys/static.c
}
static
char
get_scode
(
CHARSET_INFO
*
cs
,
char
*
ptr
)
static
char
get_scode
(
CHARSET_INFO
*
cs
,
char
*
ptr
)
{
{
...
...
sql/lock.cc
View file @
f300e3a1
...
@@ -75,8 +75,6 @@ TODO:
...
@@ -75,8 +75,6 @@ TODO:
#include "../myisammrg/myrg_def.h"
#include "../myisammrg/myrg_def.h"
#endif
#endif
extern
HASH
open_cache
;
static
MYSQL_LOCK
*
get_lock_data
(
THD
*
thd
,
TABLE
**
table
,
uint
count
,
static
MYSQL_LOCK
*
get_lock_data
(
THD
*
thd
,
TABLE
**
table
,
uint
count
,
bool
unlock
,
TABLE
**
write_locked
);
bool
unlock
,
TABLE
**
write_locked
);
static
int
lock_external
(
THD
*
thd
,
TABLE
**
table
,
uint
count
);
static
int
lock_external
(
THD
*
thd
,
TABLE
**
table
,
uint
count
);
...
...
sql/log.cc
View file @
f300e3a1
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include <m_ctype.h> // For test_if_number
#include <m_ctype.h> // For test_if_number
MYSQL_LOG
mysql_log
,
mysql_update_log
,
mysql_slow_log
,
mysql_bin_log
;
MYSQL_LOG
mysql_log
,
mysql_update_log
,
mysql_slow_log
,
mysql_bin_log
;
extern
I_List
<
i_string
>
binlog_do_db
,
binlog_ignore_db
;
static
bool
test_if_number
(
const
char
*
str
,
static
bool
test_if_number
(
const
char
*
str
,
long
*
res
,
bool
allow_wildcards
);
long
*
res
,
bool
allow_wildcards
);
...
...
sql/mysql_priv.h
View file @
f300e3a1
...
@@ -705,6 +705,9 @@ bool open_log(MYSQL_LOG *log, const char *hostname,
...
@@ -705,6 +705,9 @@ bool open_log(MYSQL_LOG *log, const char *hostname,
enum_log_type
type
,
bool
read_append
,
enum_log_type
type
,
bool
read_append
,
bool
no_auto_events
,
ulong
max_size
);
bool
no_auto_events
,
ulong
max_size
);
/* mysqld.cc */
extern
void
yyerror
(
const
char
*
);
/*
/*
External variables
External variables
*/
*/
...
@@ -785,7 +788,7 @@ extern pthread_mutex_t LOCK_mysql_create_db,LOCK_Acl,LOCK_open,
...
@@ -785,7 +788,7 @@ extern pthread_mutex_t LOCK_mysql_create_db,LOCK_Acl,LOCK_open,
LOCK_error_log
,
LOCK_delayed_insert
,
LOCK_error_log
,
LOCK_delayed_insert
,
LOCK_delayed_status
,
LOCK_delayed_create
,
LOCK_crypt
,
LOCK_timezone
,
LOCK_delayed_status
,
LOCK_delayed_create
,
LOCK_crypt
,
LOCK_timezone
,
LOCK_slave_list
,
LOCK_active_mi
,
LOCK_manager
,
LOCK_slave_list
,
LOCK_active_mi
,
LOCK_manager
,
LOCK_global_system_variables
;
LOCK_global_system_variables
,
LOCK_user_conn
;
extern
rw_lock_t
LOCK_grant
;
extern
rw_lock_t
LOCK_grant
;
extern
pthread_cond_t
COND_refresh
,
COND_thread_count
,
COND_manager
;
extern
pthread_cond_t
COND_refresh
,
COND_thread_count
,
COND_manager
;
extern
pthread_attr_t
connection_attrib
;
extern
pthread_attr_t
connection_attrib
;
...
@@ -802,6 +805,11 @@ extern SHOW_COMP_OPTION have_berkeley_db;
...
@@ -802,6 +805,11 @@ extern SHOW_COMP_OPTION have_berkeley_db;
extern
struct
system_variables
global_system_variables
;
extern
struct
system_variables
global_system_variables
;
extern
struct
system_variables
max_system_variables
;
extern
struct
system_variables
max_system_variables
;
extern
struct
rand_struct
sql_rand
;
extern
struct
rand_struct
sql_rand
;
extern
HASH
open_cache
;
extern
TABLE
*
unused_tables
;
extern
I_List
<
i_string
>
binlog_do_db
,
binlog_ignore_db
;
extern
const
char
*
any_db
;
extern
struct
my_option
my_long_options
[];
/* optional things, have_* variables */
/* optional things, have_* variables */
...
@@ -936,6 +944,14 @@ bool flush_error_log(void);
...
@@ -936,6 +944,14 @@ bool flush_error_log(void);
void
free_list
(
I_List
<
i_string_pair
>
*
list
);
void
free_list
(
I_List
<
i_string_pair
>
*
list
);
void
free_list
(
I_List
<
i_string
>
*
list
);
void
free_list
(
I_List
<
i_string
>
*
list
);
/* sql_yacc.cc */
extern
int
yyparse
(
void
*
thd
);
/* frm_crypt.cc */
#ifdef HAVE_CRYPTED_FRM
SQL_CRYPT
*
get_crypt_for_frm
(
void
);
#endif
/* Some inline functions for more speed */
/* Some inline functions for more speed */
inline
bool
add_item_to_list
(
THD
*
thd
,
Item
*
item
)
inline
bool
add_item_to_list
(
THD
*
thd
,
Item
*
item
)
...
...
sql/net_serv.cc
View file @
f300e3a1
...
@@ -88,10 +88,15 @@ void sql_print_error(const char *format,...);
...
@@ -88,10 +88,15 @@ void sql_print_error(const char *format,...);
#ifdef MYSQL_SERVER
#ifdef MYSQL_SERVER
#define USE_QUERY_CACHE
#define USE_QUERY_CACHE
/*
The following variables/functions should really not be declared
extern, but as it's hard to include mysql_priv.h here, we have to
live with this for a while.
*/
extern
uint
test_flags
;
extern
uint
test_flags
;
extern
void
query_cache_insert
(
NET
*
net
,
const
char
*
packet
,
ulong
length
);
extern
ulong
bytes_sent
,
bytes_received
,
net_big_packet_count
;
extern
ulong
bytes_sent
,
bytes_received
,
net_big_packet_count
;
extern
pthread_mutex_t
LOCK_bytes_sent
,
LOCK_bytes_received
;
extern
pthread_mutex_t
LOCK_bytes_sent
,
LOCK_bytes_received
;
extern
void
query_cache_insert
(
NET
*
net
,
const
char
*
packet
,
ulong
length
);
#else
#else
#undef statistic_add
#undef statistic_add
#undef statistic_increment
#undef statistic_increment
...
...
sql/repl_failsafe.cc
View file @
f300e3a1
...
@@ -34,7 +34,6 @@ RPL_STATUS rpl_status=RPL_NULL;
...
@@ -34,7 +34,6 @@ RPL_STATUS rpl_status=RPL_NULL;
pthread_mutex_t
LOCK_rpl_status
;
pthread_mutex_t
LOCK_rpl_status
;
pthread_cond_t
COND_rpl_status
;
pthread_cond_t
COND_rpl_status
;
HASH
slave_list
;
HASH
slave_list
;
extern
const
char
*
any_db
;
const
char
*
rpl_role_type
[]
=
{
"MASTER"
,
"SLAVE"
,
NullS
};
const
char
*
rpl_role_type
[]
=
{
"MASTER"
,
"SLAVE"
,
NullS
};
TYPELIB
rpl_role_typelib
=
{
array_elements
(
rpl_role_type
)
-
1
,
""
,
TYPELIB
rpl_role_typelib
=
{
array_elements
(
rpl_role_type
)
-
1
,
""
,
...
...
sql/set_var.cc
View file @
f300e3a1
...
@@ -1836,8 +1836,6 @@ static byte *get_sys_var_length(const sys_var *var, uint *length,
...
@@ -1836,8 +1836,6 @@ static byte *get_sys_var_length(const sys_var *var, uint *length,
void
set_var_init
()
void
set_var_init
()
{
{
extern
struct
my_option
my_long_options
[];
// From mysqld
hash_init
(
&
system_variable_hash
,
system_charset_info
,
hash_init
(
&
system_variable_hash
,
system_charset_info
,
array_elements
(
sys_variables
),
0
,
0
,
array_elements
(
sys_variables
),
0
,
0
,
(
hash_get_key
)
get_sys_var_length
,
0
,
0
);
(
hash_get_key
)
get_sys_var_length
,
0
,
0
);
...
...
sql/sql_derived.cc
View file @
f300e3a1
...
@@ -25,8 +25,6 @@
...
@@ -25,8 +25,6 @@
#include "sql_select.h"
#include "sql_select.h"
#include "sql_acl.h"
#include "sql_acl.h"
extern
const
char
*
any_db
;
// Special symbol for check_access
/*
/*
Resolve derived tables in all queries
Resolve derived tables in all queries
...
...
sql/sql_insert.cc
View file @
f300e3a1
...
@@ -1569,8 +1569,6 @@ bool select_create::send_data(List<Item> &values)
...
@@ -1569,8 +1569,6 @@ bool select_create::send_data(List<Item> &values)
return
0
;
return
0
;
}
}
extern
HASH
open_cache
;
bool
select_create
::
send_eof
()
bool
select_create
::
send_eof
()
{
{
...
...
sql/sql_parse.cc
View file @
f300e3a1
...
@@ -44,7 +44,6 @@
...
@@ -44,7 +44,6 @@
#define MIN_HANDSHAKE_SIZE 6
#define MIN_HANDSHAKE_SIZE 6
#endif
/* HAVE_OPENSSL */
#endif
/* HAVE_OPENSSL */
extern
int
yyparse
(
void
*
thd
);
extern
"C"
pthread_mutex_t
THR_LOCK_keycache
;
extern
"C"
pthread_mutex_t
THR_LOCK_keycache
;
#ifdef SOLARIS
#ifdef SOLARIS
extern
"C"
int
gethostname
(
char
*
name
,
int
namelen
);
extern
"C"
int
gethostname
(
char
*
name
,
int
namelen
);
...
@@ -120,7 +119,6 @@ static bool end_active_trans(THD *thd)
...
@@ -120,7 +119,6 @@ static bool end_active_trans(THD *thd)
static
HASH
hash_user_connections
;
static
HASH
hash_user_connections
;
extern
pthread_mutex_t
LOCK_user_conn
;
static
int
get_or_create_user_conn
(
THD
*
thd
,
const
char
*
user
,
static
int
get_or_create_user_conn
(
THD
*
thd
,
const
char
*
user
,
const
char
*
host
,
const
char
*
host
,
...
...
sql/sql_prepare.cc
View file @
f300e3a1
...
@@ -76,7 +76,6 @@ Long data handling:
...
@@ -76,7 +76,6 @@ Long data handling:
#define STMT_QUERY_LOG_LENGTH 8192
#define STMT_QUERY_LOG_LENGTH 8192
extern
int
yyparse
(
void
*
thd
);
static
String
null_string
(
"NULL"
,
4
,
default_charset_info
);
static
String
null_string
(
"NULL"
,
4
,
default_charset_info
);
/*
/*
...
...
sql/sql_repl.cc
View file @
f300e3a1
...
@@ -24,8 +24,6 @@
...
@@ -24,8 +24,6 @@
#include "log_event.h"
#include "log_event.h"
#include <my_dir.h>
#include <my_dir.h>
extern
const
char
*
any_db
;
int
max_binlog_dump_events
=
0
;
// unlimited
int
max_binlog_dump_events
=
0
;
// unlimited
my_bool
opt_sporadic_binlog_dump_fail
=
0
;
my_bool
opt_sporadic_binlog_dump_fail
=
0
;
static
int
binlog_dump_count
=
0
;
static
int
binlog_dump_count
=
0
;
...
...
sql/sql_string.cc
View file @
f300e3a1
...
@@ -28,6 +28,11 @@
...
@@ -28,6 +28,11 @@
#include <floatingpoint.h>
#include <floatingpoint.h>
#endif
#endif
/*
The following extern declarations are ok as these are interface functions
required by the string function
*/
extern
gptr
sql_alloc
(
unsigned
size
);
extern
gptr
sql_alloc
(
unsigned
size
);
extern
void
sql_element_free
(
void
*
ptr
);
extern
void
sql_element_free
(
void
*
ptr
);
...
...
sql/sql_table.cc
View file @
f300e3a1
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
#include <io.h>
#include <io.h>
#endif
#endif
extern
HASH
open_cache
;
static
const
char
*
primary_key_name
=
"PRIMARY"
;
static
const
char
*
primary_key_name
=
"PRIMARY"
;
static
bool
check_if_keyname_exists
(
const
char
*
name
,
KEY
*
start
,
KEY
*
end
);
static
bool
check_if_keyname_exists
(
const
char
*
name
,
KEY
*
start
,
KEY
*
end
);
...
...
sql/sql_test.cc
View file @
f300e3a1
...
@@ -41,7 +41,6 @@ static const char *lock_descriptions[] =
...
@@ -41,7 +41,6 @@ static const char *lock_descriptions[] =
"High priority write lock"
,
"High priority write lock"
,
"Highest priority write lock"
"Highest priority write lock"
};
};
extern
HASH
open_cache
;
#ifndef DBUG_OFF
#ifndef DBUG_OFF
...
@@ -65,7 +64,6 @@ print_where(COND *cond,const char *info)
...
@@ -65,7 +64,6 @@ print_where(COND *cond,const char *info)
}
}
/* This is for debugging purposes */
/* This is for debugging purposes */
extern
TABLE
*
unused_tables
;
void
print_cached_tables
(
void
)
void
print_cached_tables
(
void
)
{
{
...
...
sql/sql_yacc.yy
View file @
f300e3a1
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
#include <myisam.h>
#include <myisam.h>
#include <myisammrg.h>
#include <myisammrg.h>
extern void yyerror(const char*);
int yylex(void *yylval, void *yythd);
int yylex(void *yylval, void *yythd);
#define yyoverflow(A,B,C,D,E,F) if (my_yyoverflow((B),(D),(int*) (F))) { yyerror((char*) (A)); return 2; }
#define yyoverflow(A,B,C,D,E,F) if (my_yyoverflow((B),(D),(int*) (F))) { yyerror((char*) (A)); return 2; }
...
...
sql/table.cc
View file @
f300e3a1
...
@@ -236,7 +236,6 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
...
@@ -236,7 +236,6 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
#ifdef HAVE_CRYPTED_FRM
#ifdef HAVE_CRYPTED_FRM
else
if
(
*
(
head
+
26
)
==
2
)
else
if
(
*
(
head
+
26
)
==
2
)
{
{
extern
SQL_CRYPT
*
get_crypt_for_frm
(
void
);
my_pthread_setspecific_ptr
(
THR_MALLOC
,
old_root
);
my_pthread_setspecific_ptr
(
THR_MALLOC
,
old_root
);
crypted
=
get_crypt_for_frm
();
crypted
=
get_crypt_for_frm
();
my_pthread_setspecific_ptr
(
THR_MALLOC
,
&
outparam
->
mem_root
);
my_pthread_setspecific_ptr
(
THR_MALLOC
,
&
outparam
->
mem_root
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment