From 9fb521515d8ba0fb22c75e82573afdb419d22876 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 9 Jun 2008 04:20:07 +0000 Subject: * vm_core.h (struct rb_vm_struct): moved src_encoding_index. * ruby.c (struct cmdline_options): moved setids and req_list, and the latter is now an array, to prevent memory leak. * ruby.c (cmdline_options_init): added. * ruby.c (add_modules, require_libraries, init_ids, forbid_setid): use struct cmdline_options. * vm.c (vm_init2): initialize src_encoding_index. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 08c6449c78..d68419346d 100644 --- a/vm_core.h +++ b/vm_core.h @@ -319,6 +319,8 @@ struct rb_vm_struct /* hook */ rb_event_hook_t *event_hooks; + int src_encoding_index; + #if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE struct rb_objspace *objspace; #endif -- cgit v1.2.3