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
19436039
Commit
19436039
authored
Aug 09, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename rest() macro in my_list.h to list_rest(). (Bug #12327)
parent
aa99bd61
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
include/my_list.h
include/my_list.h
+1
-1
mysys/list.c
mysys/list.c
+1
-1
mysys/thr_lock.c
mysys/thr_lock.c
+2
-1
sql/sql_test.cc
sql/sql_test.cc
+1
-1
No files found.
include/my_list.h
View file @
19436039
...
...
@@ -36,7 +36,7 @@ extern void list_free(LIST *root,unsigned int free_data);
extern
unsigned
int
list_length
(
LIST
*
);
extern
int
list_walk
(
LIST
*
,
list_walk_action
action
,
gptr
argument
);
#define rest(a) ((a)->next)
#define
list_
rest(a) ((a)->next)
#define list_push(a,b) (a)=list_cons((b),(a))
#define list_pop(A) {LIST *old=(A); (A)=list_delete(old,old) ; my_free((gptr) old,MYF(MY_FAE)); }
...
...
mysys/list.c
View file @
19436039
...
...
@@ -109,7 +109,7 @@ int list_walk(LIST *list, list_walk_action action, gptr argument)
{
if
((
error
=
(
*
action
)(
list
->
data
,
argument
)))
return
error
;
list
=
rest
(
list
);
list
=
list_
rest
(
list
);
}
return
0
;
}
mysys/thr_lock.c
View file @
19436039
...
...
@@ -1127,7 +1127,8 @@ void thr_print_locks(void)
pthread_mutex_lock
(
&
THR_LOCK_lock
);
puts
(
"Current locks:"
);
for
(
list
=
thr_lock_thread_list
;
list
&&
count
++
<
MAX_THREADS
;
list
=
rest
(
list
))
for
(
list
=
thr_lock_thread_list
;
list
&&
count
++
<
MAX_THREADS
;
list
=
list_rest
(
list
))
{
THR_LOCK
*
lock
=
(
THR_LOCK
*
)
list
->
data
;
VOID
(
pthread_mutex_lock
(
&
lock
->
mutex
));
...
...
sql/sql_test.cc
View file @
19436039
...
...
@@ -271,7 +271,7 @@ static void display_table_locks(void)
VOID
(
my_init_dynamic_array
(
&
saved_table_locks
,
sizeof
(
TABLE_LOCK_INFO
),
open_cache
.
records
+
20
,
50
));
VOID
(
pthread_mutex_lock
(
&
THR_LOCK_lock
));
for
(
list
=
thr_lock_thread_list
;
list
;
list
=
rest
(
list
))
for
(
list
=
thr_lock_thread_list
;
list
;
list
=
list_
rest
(
list
))
{
THR_LOCK
*
lock
=
(
THR_LOCK
*
)
list
->
data
;
...
...
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