diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-12 06:15:40 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-12 06:15:40 +0000 |
commit | c4ce79084f4a09fc8ee78df409a863257c7d53ea (patch) | |
tree | 0f5b7e9ab1731805e0b89b8f8d984d9d22a079ba /eval.c | |
parent | 47fa2caf2ec0ea135050d299d452331dd0d1a75d (diff) | |
download | ruby-c4ce79084f4a09fc8ee78df409a863257c7d53ea.tar.gz |
* eval.c (ruby_options): now we cannot call rb_glob() before
ruby_init(), so call rb_w32_cmdvector() at ruby_options().
* win32.{c,h} (rb_w32_cmdvector): rename make_cmdvector() and
export it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1364,6 +1364,10 @@ ruby_options(argc, argv) { int state; +#ifdef _WIN32 + argc = rb_w32_cmdvector(GetCommandLine(), &argv); +#endif + Init_stack((void*)&state); PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { @@ -1375,6 +1379,10 @@ ruby_options(argc, argv) exit(error_handle(state)); } POP_TAG(); + +#ifdef _WIN32_WCE + wce_FreeCommandLine(); +#endif } void rb_exec_end_proc _((void)); |