From 64b589b367d739399c47ea083f0c2a7bb1016e14 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 12 Nov 2004 06:15:40 +0000 Subject: * 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/trunk@7256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'eval.c') diff --git a/eval.c b/eval.c index cb6de62ae..da82e0ea8 100644 --- a/eval.c +++ b/eval.c @@ -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)); -- cgit