mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm.(c|h), yarvcore.(c|h) (yarvGlobalStateVersion): rename to
ruby_vm_global_state_version. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a8d47615da
commit
5e4e71a348
5 changed files with 9 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Feb 15 01:52:53 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* vm.(c|h), yarvcore.(c|h) (yarvGlobalStateVersion): rename to
|
||||||
|
ruby_vm_global_state_version.
|
||||||
|
|
||||||
Thu Feb 15 01:50:26 2007 Koichi Sasada <ko1@atdot.net>
|
Thu Feb 15 01:50:26 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* test/fileutils/test_fileutils.rb (check_singleton): fix to use
|
* test/fileutils/test_fileutils.rb (check_singleton): fix to use
|
||||||
|
|
2
vm.c
2
vm.c
|
@ -60,6 +60,8 @@ static VALUE yarv_finish_insn_seq[1] = { BIN(finish) };
|
||||||
|
|
||||||
#include "call_cfunc.ci"
|
#include "call_cfunc.ci"
|
||||||
|
|
||||||
|
static VALUE vm_global_state_version = 1;
|
||||||
|
|
||||||
void
|
void
|
||||||
rb_vm_change_state(void)
|
rb_vm_change_state(void)
|
||||||
{
|
{
|
||||||
|
|
4
vm.h
4
vm.h
|
@ -264,9 +264,9 @@ default: \
|
||||||
|
|
||||||
/* VM state version */
|
/* VM state version */
|
||||||
|
|
||||||
#define GET_VM_STATE_VERSION() (yarvGlobalStateVersion)
|
#define GET_VM_STATE_VERSION() (vm_global_state_version)
|
||||||
#define INC_VM_STATE_VERSION() \
|
#define INC_VM_STATE_VERSION() \
|
||||||
(yarvGlobalStateVersion = (yarvGlobalStateVersion+1) & 0x8fffffff)
|
(vm_global_state_version = (vm_global_state_version+1) & 0x8fffffff)
|
||||||
|
|
||||||
#define BOP_PLUS 0x01
|
#define BOP_PLUS 0x01
|
||||||
#define BOP_MINUS 0x02
|
#define BOP_MINUS 0x02
|
||||||
|
|
|
@ -58,9 +58,6 @@ ID id__send;
|
||||||
ID idFuncall;
|
ID idFuncall;
|
||||||
ID id__send_bang;
|
ID id__send_bang;
|
||||||
|
|
||||||
unsigned long yarvGlobalStateVersion = 1;
|
|
||||||
|
|
||||||
|
|
||||||
/* from Ruby 1.9 eval.c */
|
/* from Ruby 1.9 eval.c */
|
||||||
#ifdef HAVE_STDARG_PROTOTYPES
|
#ifdef HAVE_STDARG_PROTOTYPES
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
|
@ -138,8 +138,6 @@ extern ID idFuncall;
|
||||||
extern ID id__send_bang;
|
extern ID id__send_bang;
|
||||||
|
|
||||||
|
|
||||||
extern unsigned long yarvGlobalStateVersion;
|
|
||||||
|
|
||||||
struct insn_info_struct {
|
struct insn_info_struct {
|
||||||
unsigned short position;
|
unsigned short position;
|
||||||
unsigned short line_no;
|
unsigned short line_no;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue