From 8b0771b0142dffb45dd0d7fc18f6c2868eeb2b3b Mon Sep 17 00:00:00 2001 From: charliesome Date: Sat, 9 Nov 2013 03:34:49 +0000 Subject: * class.c: unify names of vm state version counters to 'serial'. This includes renaming 'vm_state_version_t' to 'rb_serial_t', 'method_state' to 'method_serial', 'seq' to 'class_serial', 'vmstat' to 'constant_serial', etc. * insns.def: ditto * internal.h: ditto * vm.c: ditto * vm_core.h: ditto * vm_insnhelper.c: ditto * vm_insnhelper.h: ditto * vm_method.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index bf965b2..7d07b66 100644 --- a/vm.c +++ b/vm.c @@ -71,9 +71,9 @@ static VALUE vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc, VALUE self, VALUE defined_class, int argc, const VALUE *argv, const rb_block_t *blockptr); -static vm_state_version_t ruby_vm_method_state_version = 1; -static vm_state_version_t ruby_vm_constant_state_version = 1; -static vm_state_version_t ruby_vm_sequence = 1; +static rb_serial_t ruby_vm_method_serial = 1; +static rb_serial_t ruby_vm_constant_serial = 1; +static rb_serial_t ruby_vm_class_serial = 1; #include "vm_insnhelper.h" #include "vm_insnhelper.c" @@ -88,10 +88,10 @@ static vm_state_version_t ruby_vm_sequence = 1; #define BUFSIZE 0x100 #define PROCDEBUG 0 -vm_state_version_t -rb_next_class_sequence(void) +rb_serial_t +rb_next_class_serial(void) { - return NEXT_CLASS_SEQUENCE(); + return NEXT_CLASS_SERIAL(); } VALUE rb_cRubyVM; -- cgit v1.1