summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-09 11:44:11 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-09 11:44:11 +0000
commitfff0db9dfe21f0cfb9394e8968d493ad1d5eaa6e (patch)
tree7eaf86494e14b62f3a75daf6280fb9ae58f09808 /ext
parent60047f3822665908e8fff75efd09e6fe7f934da7 (diff)
Oops, this is the original form. I committed the wrong file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/thread/thread.c26
1 files changed, 21 insertions, 5 deletions
diff --git a/ext/thread/thread.c b/ext/thread/thread.c
index 23dca6a..d4443ba 100644
--- a/ext/thread/thread.c
+++ b/ext/thread/thread.c
@@ -39,8 +39,11 @@ typedef struct _List {
unsigned long size;
} List;
+static void init_list _((List *));
+
static void
-init_list(List *list)
+init_list(list)
+ List *list;
{
list->entries = NULL;
list->last_entry = NULL;
@@ -48,8 +51,11 @@ init_list(List *list)
list->size = 0;
}
+static void mark_list _((List *));
+
static void
-mark_list(List *list)
+mark_list(list)
+ List *list;
{
Entry *entry;
for ( entry = list->entries ; entry ; entry = entry->next ) {
@@ -57,8 +63,11 @@ mark_list(List *list)
}
}
+static void free_entries _((Entry *));
+
static void
-free_entries(Entry *first)
+free_entries(first)
+ Entry *first;
{
Entry *next;
while (first) {
@@ -68,15 +77,22 @@ free_entries(Entry *first)
}
}
+static void finalize_list _((List *));
+
static void
-finalize_list(List *list)
+finalize_list(list)
+ List *list;
{
free_entries(list->entries);
free_entries(list->entry_pool);
}
+static void push_list _((List *, VALUE));
+
static void
-push_list(List *list, VALUE value)
+push_list(list, value)
+ List *list;
+ VALUE value;
{
Entry *entry;