summaryrefslogtreecommitdiffstats
path: root/parse.y
Commit message (Collapse)AuthorAgeFilesLines
* * parse.y (dyna_init_gen): dvar initialization only if dvar ismatz2006-12-041-2/+22
| | | | | | | assigned inner block. [ruby-talk:227402] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (primary): should set NODE when compstmt is NULL.usa2006-11-021-1/+2
| | | | | | | marge from trunk. fixed: [ruby-dev:29732] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): use particular enums. [ruby-core:09221]nobu2006-10-171-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (singleton): no need to re-create NODE_SELF() again.matz2006-10-141-7/+2
| | | | | | | [ruby-core:09177] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_warning, parser_warn): some error message maymatz2006-10-141-2/+2
| | | | | | | | | | | | | | contain format specifiers. a patch from Akinori MUSHA <knu at iDaemons.org>. [ruby-dev:29657] * ext/bigdecimal/bigdecimal.c (VpException): ditto. * ext/dl/handle.c (rb_dlhandle_initialize): ditto. * ext/gdbm/gdbm.c (rb_gdbm_fatal): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: revert recent changematz2006-10-041-3/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (mlhs): should interpret single parenthesized left handmatz2006-10-041-10/+3
| | | | | | | side expression. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_intern): raise SecurityError only when $SAFEmatz2006-09-141-0/+11
| | | | | | | | | | | | level is greater than zero. [ruby-core:08862] * parse.y (rb_interned_p): new function to check if a string is already interned. * object.c (str_to_id): use rb_str_intern(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove semicolon warning. [ruby-dev:29299]matz2006-08-221-3/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (top_local_setup): local_vars[-1] should pointmatz2006-08-071-2/+1
| | | | | | | | ruby_scope itself to protect local_tbl from garbage collection. [ruby-dev:29049] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (then): error in warning action.matz2006-07-131-2/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_pop): may cause realloc oscillation. a patchmatz2006-07-131-0/+5
| | | | | | | | | | | | | | | | | | | from MORITA Naoyuki <mlgetter at kidou.sakura.ne.jp>. [ruby-dev:29028] * parse.y (then): we'd like to reserve colon here for the future. warning added. * ruby.h: export rb_cMethod. [ruby-talk:201259] * ext/bigdecimal/bigdecimal.c: Allows '_' to appear within digits. [ruby-dev:28872] * ext/bigdecimal/lib/bigdecimal/util.rb: Bug in to_r reported by [ruby-list:42533] fixed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yylex, reswords): modifier token is no longer returned innobu2006-06-201-2/+3
| | | | | | | fname state. [ruby-dev:28775] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (reswords): kDO_BLOCK was missing. fixed: [ruby-core:7995]nobu2006-06-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (arg): too much NEW_LIST()matz2006-04-191-2/+2
| | | | | | | * eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1.matz2006-04-191-9/+2
| | | | | | | | | | | | | | | | | [ruby-dev:28585] * parse.y (list_concat): revert last change. * parse.y (arg): use NODE_ARGSCAT for placeholder. * lib/getoptlong.rb (GetoptLong::get): RDoc update patch from mathew <meta at pobox.com>. [ruby-core:07738] * variable.c (rb_const_set): raise error when no target klass is supplied. [ruby-dev:28582] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (list_concat): should not modify nodes other thanmatz2006-04-191-0/+2
| | | | | | | NODE_ARRAY. [ruby-dev:28583] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: fixed compile errorocean2006-02-211-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (f_arglist): should set command_start = Qtrue formatz2006-02-201-0/+1
| | | | | | | command body. [ruby-talk:180648] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): NODE_OP_ASGN1 should allow splat in itsmatz2006-02-151-3/+0
| | | | | | | | | | | | | argument list. [ruby-core:07366] * parse.y (arg): avoid unnecessary extra argument. [ruby-core:07366] * eval.c (rb_eval): honor visibility on OP_ASGN1 and OP_ASGN2. [ruby-core:07366] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): argument update propagation. [ruby-dev:28044]matz2006-02-131-11/+17
| | | | | | | * env.h: remove argc member from struct FRAME. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (singleton): get rid of segfault on syntax error.nobu2006-01-071-1/+1
| | | | | | | fixed: [ruby-core:07070] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval), gc.c (gc_mark_children), node.h (NEW_ALIAS,nobu2005-12-261-3/+10
| | | | | | | | | NEW_VALIAS), parse.y (fitem): allow dynamic symbols to NODE_UNDEF and NODE_ALIAS. backported from trunk. fixed: [ruby-dev:28105] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_symname_p): fixed wrong validation. [ruby-dev:28047]nobu2005-12-191-1/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (NEWHEAP, ADD2HEAP): committed the patch for 1.9.nobu2005-11-301-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (NEWHEAP, ADD2HEAP): set count after pointer was set.nobu2005-11-301-8/+14
| | | | | | | fixed: [ruby-dev:27896] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (dsym): prohibit empty symbol literal by interpolation.nobu2005-11-211-1/+8
| | | | | | | fixed: [ruby-talk:166529] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_symname_p): [ not followed by ] is not valid symbol.nobu2005-11-201-1/+2
| | | | | | | fixed: [ruby-talk:166520] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (sym_inspect), parse.y (parser_yylex, rb_symname_p): checknobu2005-10-221-7/+116
| | | | | | | | | if valid as a symbol name more strictly. [ruby-dev:27478] * test/ruby/test_symbol.rb: tests for [ruby-core:03573]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_gc_mark_parser): get rid of segfault with old yacc.nobu2005-10-191-0/+9
| | | | | | | fixed: [ruby-dev:27439] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_heap): byacc never free parser stack.nobu2005-10-171-7/+7
| | | | | | | fixed: [ruby-dev:27428] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (HEAPCNT): bison allocates indivisible size.nobu2005-10-131-1/+1
| | | | | | | fixed: [ruby-core:06261] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_parser_malloc, rb_parser_free): manage parser stack onnobu2005-10-081-1/+84
| | | | | | | heap. [ruby-list:41199] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval), parse.y (arg): reduce fixnum range literal atnobu2005-05-111-2/+16
| | | | | | | parser. fixed: [ruby-dev:26113] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): identfier after dot must not be a variable.nobu2005-02-211-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::Cookie): [ruby-talk:130040]matz2005-02-081-1/+1
| | | | | | | * object.c: [ruby-doc:818] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (convert_type): [ruby-core:03845]matz2004-11-291-0/+1
| | | | | | | | | | | | | | | | | * eval.c (rb_funcall_rescue): new function. * object.c (rb_Array): avoid using rb_respond_to(). * object.c (rb_Integer): ditto. * eval.c (get_backtrace): no conversion for nil. * parse.y (reduce_nodes): empty body should return nil. * lib/cgi/session.rb (CGI::Session::initialize): [ruby-core:03832] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (stmt): not to show same error messages twice.nobu2004-07-171-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c, parse.y, lib/cgi.rb, lib/date.rb: last minute backports from HEAD.matz2004-07-141-5/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (primary): should not be NULL. [ruby-core:03098]nobu2004-06-301-1/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h (NEW_DSTR): adjust list length.nobu2004-05-181-0/+1
| | | | | | | * parse.y (literal_concat): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (stmt, arg, aref_args): should not make sole splat intonobu2004-04-231-2/+6
| | | | | | | array, in aref_args other than aref with op_asgn. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (aref_args): should pass expanded list. [ruby-core:02793]nobu2004-04-211-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * several backports from 1.9matz2004-02-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (block_append): update nd_end for "real" head node.matz2004-01-261-3/+3
| | | | | | | | | | [ruby-list:39058] * eval.c (proc_eq): Proc with empty body may not be equal. [ruby-dev:22590] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (string_content): reset lexical states at the beginning ofnobu2004-01-221-0/+4
| | | | | | | string contents. [ruby-list:39061] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (primary): fix position after FCALL. [ruby-dev:22574]nobu2004-01-121-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add RDoc documentation for stuff in object.cdave2003-12-281-0/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (arg): should return 0 after error. [ruby-dev:22360]nobu2003-12-241-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (ieeefp.h), numeric.c: needed for finite() onnobu2003-12-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Solaris. [ruby-core:01921] * file.c (rb_stat_inspect): adjust format specifier. * parse.c (arg_prepend): nodetype() is for debug use. * ruby.h (ISASCII, etc): cast to int to get rid of warning. * ruby.h (alloca.h): include even in GCC. [ruby-core:01925] * ext/bigdecimal/bigdecimal.c (GetVpValue): adjust format specifier. * ext/bigdecimal/bigdecimal.c (BigDecimal_prec, BigDecimal_coerce, BigDecimal_divmod): use rb_assoc_new() to suppress memory usage. * ext/bigdecimal/bigdecimal.c (BigDecimal_split): ditto. * ext/dl/sym.c (rb_dlsym_guardcall): guard itself should be volatile. * ext/iconv/iconv.c (iconv_convert): ensure actual parameter with format specifier. * ext/pty/pty.c (MasterDevice, SlaveDevice, deviceNo): do not define unless used. * ext/pty/pty.c (getDevice): get rid of warning. * ext/socket/socket.c (port_str, sock_s_getaddrinfo, sock_s_getnameinfo): FIX2INT() now returns long. * ext/socket/socket.c (init_inetsock_internal): uninitialized variable. * ext/syck/rubyext.c (syck_parser_assign_io): add prototype. * ext/syck/rubyext.c (rb_syck_mktime, yaml_org_handler): use ISDIGIT() instead of isdigit() to avoid warnings and for platforms which don't support non-ascii charater. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e