diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-27 09:49:34 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-27 09:49:34 +0000 |
| commit | f828756f01c8c6221ad2f5e051c708fb309406c9 (patch) | |
| tree | 27bc06133685cb3d4bcb75cfc81b3cda6cdf8e04 /parse.y | |
| parent | 4257651cd250a58f3dbfa495d1218f91da477f5e (diff) | |
| download | ruby-f828756f01c8c6221ad2f5e051c708fb309406c9.tar.gz ruby-f828756f01c8c6221ad2f5e051c708fb309406c9.tar.xz ruby-f828756f01c8c6221ad2f5e051c708fb309406c9.zip | |
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1786,9 +1786,6 @@ none : /* none */ #include <sys/types.h> #include "regex.h" #include "util.h" -#ifndef strdup -char *strdup(); -#endif #define is_identchar(c) (((int)(c))!=-1&&(ISALNUM(c) || (c) == '_' || ismbchar(c))) @@ -1862,6 +1859,7 @@ yycompile(f, line) int line; { int n; + NODE *node = 0; if (!compile_for_eval && rb_safe_level() == 0 && rb_const_defined(rb_cObject, rb_intern("SCRIPT_LINES__"))) { @@ -1898,9 +1896,9 @@ yycompile(f, line) class_nest = 0; in_single = 0; cur_mid = 0; - if (n == 0) return ruby_eval_tree; - return 0; + if (n == 0) node = ruby_eval_tree; + return node; } static int lex_gets_ptr; |
