aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-09 04:20:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-09 04:20:07 +0000
commit9fb521515d8ba0fb22c75e82573afdb419d22876 (patch)
tree4c32079de9a4ae199849c41684a8f405ce151e9e /vm_core.h
parentefe5422e6a5497af6c7423bbbd7c5b0058fdfad4 (diff)
downloadruby-9fb521515d8ba0fb22c75e82573afdb419d22876.tar.gz
* 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
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 2 insertions, 0 deletions
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