summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--eval.c14
-rw-r--r--variable.c3
3 files changed, 16 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 064609d587..dd3cbfe800 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Mon Dec 24 18:23:32 2007 Tanaka Akira <akr@fsij.org>
+
+ * eval.c (rb_exc_raise): ANSI style.
+ (rb_exc_fatal): ditto.
+ (rb_raise_jump): ditto.
+ (rb_jump_tag): ditto.
+ (rb_block_given_p): ditto.
+
+ * variable.c (original_module): ditto.
+
Mon Dec 24 18:05:09 2007 Koichi Sasada <ko1@atdot.net>
* iseq.c (Init_ISeq): disable ISeq.load() because there is no verifier.
diff --git a/eval.c b/eval.c
index 021f9dde0c..3fdd24fe60 100644
--- a/eval.c
+++ b/eval.c
@@ -721,15 +721,13 @@ rb_longjmp(int tag, VALUE mesg)
}
void
-rb_exc_raise(mesg)
- VALUE mesg;
+rb_exc_raise(VALUE mesg)
{
rb_longjmp(TAG_RAISE, mesg);
}
void
-rb_exc_fatal(mesg)
- VALUE mesg;
+rb_exc_fatal(VALUE mesg)
{
rb_longjmp(TAG_FATAL, mesg);
}
@@ -829,22 +827,20 @@ rb_make_exception(int argc, VALUE *argv)
}
void
-rb_raise_jump(mesg)
- VALUE mesg;
+rb_raise_jump(VALUE mesg)
{
/* TODO: fix me */
rb_longjmp(TAG_RAISE, mesg);
}
void
-rb_jump_tag(tag)
- int tag;
+rb_jump_tag(int tag)
{
JUMP_TAG(tag);
}
int
-rb_block_given_p()
+rb_block_given_p(void)
{
rb_thread_t *th = GET_THREAD();
if (GC_GUARDED_PTR_REF(th->cfp->lfp[0])) {
diff --git a/variable.c b/variable.c
index 79de10e446..c8919b7bad 100644
--- a/variable.c
+++ b/variable.c
@@ -1710,8 +1710,7 @@ rb_define_global_const(const char *name, VALUE val)
}
static VALUE
-original_module(c)
- VALUE c;
+original_module(VALUE c)
{
if (TYPE(c) == T_ICLASS)
return RBASIC(c)->klass;