summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-13 05:09:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-13 05:09:15 +0000
commitd09d332b3015d7bcf462defd10080ee6eaf98ce7 (patch)
treea2bd2840d497470dae5129ddb67658ff8a45521b
parent2e51eb4cbb99c78602403dac32af711995818655 (diff)
downloadruby-d09d332b3015d7bcf462defd10080ee6eaf98ce7.tar.gz
ruby-d09d332b3015d7bcf462defd10080ee6eaf98ce7.tar.xz
ruby-d09d332b3015d7bcf462defd10080ee6eaf98ce7.zip
* thread.c (thread_list_access): prototyped.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--thread.c3
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 4f38e3ca3..e5950539f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,9 @@
Sun Sep 13 13:38:00 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * thread.c (recursive_*): refactored the access to the inspect table used by
- rb_exec_recursive_*. The functions recursive_push, pop and check now assume
- a valid hash table as their first argument. Added documentation.
+ * thread.c (recursive_*): refactored the access to the inspect
+ table used by rb_exec_recursive_*. The functions recursive_push,
+ pop and check now assume a valid hash table as their first
+ argument. Added documentation.
Sun Sep 13 12:07:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
diff --git a/thread.c b/thread.c
index 45a0a80c5..5943cecdc 100644
--- a/thread.c
+++ b/thread.c
@@ -3386,7 +3386,8 @@ static ID recursive_key;
*/
static VALUE
-recursive_list_access() {
+recursive_list_access(void)
+{
volatile VALUE hash = rb_thread_local_aref(rb_thread_current(), recursive_key);
VALUE sym = ID2SYM(rb_frame_this_func());
VALUE list;