[前][次][番号順一覧][スレッド一覧][生データ]

yarv-diff:196

From: ko1 atdot.net
Date: 6 Jan 2006 00:24:29 -0000
Subject: [yarv-diff:196] r354 - trunk

Author: aamine
Date: 2006-01-06 09:24:28 +0900 (Fri, 06 Jan 2006)
New Revision: 354

Modified:
   trunk/ChangeLog
   trunk/vm.c
Log:
* vm.c: coding style change only.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-01-04 05:19:57 UTC (rev 353)
+++ trunk/ChangeLog	2006-01-06 00:24:28 UTC (rev 354)
@@ -4,6 +4,11 @@
 #  from Mon, 03 May 2004 01:24:19 +0900
 #
 
+2006-01-06(Fri) 09:21:34 +0900  Minero Aoki  <aamine loveruby.net>
+
+	* vm.c: coding style change only.
+
+
 2006-01-04(Wed) 14:12:47 +0900  Koichi Sasada  <ko1 atdot.net>
 
 	* eval.c (ruby_init), eval_intern.h : use POP_TAG_INIT() at bootstrap

Modified: trunk/vm.c
===================================================================
--- trunk/vm.c	2006-01-04 05:19:57 UTC (rev 353)
+++ trunk/vm.c	2006-01-06 00:24:28 UTC (rev 354)
@@ -1,7 +1,7 @@
-#include <ruby.h>
-#include <node.h>
-#include <env.h>
-#include <st.h>
+#include "ruby.h"
+#include "node.h"
+#include "env.h"
+#include "st.h"
 
 #include "yarvcore.h"
 #include "vm.h"
@@ -63,7 +63,8 @@
 #include "call_cfunc.h"
 
 void
-rb_vm_change_state(){
+rb_vm_change_state(void)
+{
   INC_VM_STATE_VERSION();
 }
 
@@ -244,11 +245,11 @@
   return envval;
 }
 
-static VALUE
-check_env_value(VALUE envval);
+static VALUE check_env_value(VALUE envval);
 
 static int
-check_env(yarv_env_t *env){
+check_env(yarv_env_t *env)
+{
   printf("---\n");
   printf("envptr: %p\n", &env->block.dfp[0]);
   printf("orphan: %p\n", (void*)env->block.dfp[1]);
@@ -266,7 +267,8 @@
 }
 
 static VALUE
-check_env_value(VALUE envval){
+check_env_value(VALUE envval)
+{
   yarv_env_t *env;
   GetEnvVal(envval, env);
   
@@ -278,7 +280,8 @@
 }
 
 static int
-collect_local_variables_in_env(yarv_env_t *env, VALUE ary){
+collect_local_variables_in_env(yarv_env_t *env, VALUE ary)
+{
   int i;
   if(env->block.lfp == env->block.dfp){
     return 0;
@@ -531,7 +534,6 @@
   return val;
 }
 
-
 VALUE
 th_invoke_yield(yarv_thread_t *th, int argc, VALUE *argv)
 {
@@ -837,7 +839,8 @@
 }
 
 static VALUE
-th_get_cbase(yarv_thread_t *th){
+th_get_cbase(yarv_thread_t *th)
+{
   int i;
   VALUE cref = th->cref_stack;
   VALUE klass;
@@ -965,7 +968,8 @@
 }
 
 EVALBODY_HELPER_FUNCTION VALUE
-eval_get_cvar_base(yarv_thread_t *th, yarv_iseq_t *iseq){
+eval_get_cvar_base(yarv_thread_t *th, yarv_iseq_t *iseq)
+{
   VALUE cref = get_cref(iseq, th->cfp->lfp);
   VALUE klass = Qnil;
   int i;
@@ -1011,7 +1015,8 @@
 
 EVALBODY_HELPER_FUNCTION VALUE
 eval_method_missing(yarv_thread_t *th, ID id, VALUE recv, int num,
-                    yarv_block_t *blockptr, int opt){
+                    yarv_block_t *blockptr, int opt)
+{
   yarv_control_frame_t *reg_cfp = th->cfp;
   VALUE *argv = STACK_ADDR_FROM_TOP(num+1);
   VALUE val;
@@ -1106,11 +1111,9 @@
 /*********************************************************/
 
 NORETURN(static void localjump_error(const char*, VALUE, int));
+
 static void
-localjump_error(mesg, value, reason)
-    const char *mesg;
-    VALUE value;
-    int reason;
+localjump_error(const char *mesg, VALUE value, int reason)
 {
   VALUE exc = rb_exc_new2(rb_const_get(rb_cObject, rb_intern("LocalJumpError")), mesg);
   ID id;
@@ -1135,7 +1138,8 @@
 }
 
 void
-th_iter_break(yarv_thread_t *th){
+th_iter_break(yarv_thread_t *th)
+{
   yarv_control_frame_t *cfp = th->cfp;
   VALUE *dfp = GC_GUARDED_PTR_REF(*cfp->dfp);
   
@@ -1470,4 +1474,3 @@
   TH_POP_TAG();
   return result;
 }
-


-- 
ML: yarv-diff quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧][生データ]