diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-12 06:06:15 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-12 06:06:15 +0000 |
| commit | 16318ed2acedb9e493d81d2da190c7ef73894580 (patch) | |
| tree | 87242631d7db7db7b90661c4e82005bb08ffcb39 /eval.c | |
| parent | c1394ecd80473d1ab1075bc1b0192dd882437952 (diff) | |
| download | ruby-16318ed2acedb9e493d81d2da190c7ef73894580.tar.gz ruby-16318ed2acedb9e493d81d2da190c7ef73894580.tar.xz ruby-16318ed2acedb9e493d81d2da190c7ef73894580.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1366,6 +1366,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) { @@ -1377,6 +1381,11 @@ ruby_options(argc, argv) exit(error_handle(state)); } POP_TAG(); + +#ifdef _WIN32_WCE + // free commandline buffer + wce_FreeCommandLine(); +#endif } void rb_exec_end_proc _((void)); |
