Changeset 490

Show
Ignore:
Timestamp:
03/17/2008 09:04:30 (6 months ago)
Author:
why
Message:
  • shoes/ruby.c: $0 pointer was going out of scope.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/shoes/ruby.c

    r489 r490  
    38433843  rb_const_set(cShoes, rb_intern("" # n), re##n); 
    38443844 
     3845VALUE progname; 
     3846 
    38453847// 
    38463848// Everything exposed to Ruby is exposed here. 
     
    38503852{ 
    38513853  char proc[SHOES_BUFSIZE]; 
    3852   VALUE progname = rb_str_new2("(eval)"); 
     3854  progname = rb_str_new2("(eval)"); 
    38533855  rb_define_variable("$0", &progname); 
    38543856  rb_define_variable("$PROGRAM_NAME", &progname);