mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (stack_type): uses VALUE which is able to be stored
parser stack. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c8d40b9a3d
commit
315ee838bc
2 changed files with 8 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Mar 11 13:27:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (stack_type): uses VALUE which is able to be stored
|
||||
parser stack.
|
||||
|
||||
Wed Mar 11 13:22:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (init_env): set TMPDIR if none of TMPDIR, TMP,
|
||||
|
|
10
parse.y
10
parse.y
|
@ -68,11 +68,7 @@ enum lex_state_e {
|
|||
EXPR_VALUE /* alike EXPR_BEG but label is disallowed. */
|
||||
};
|
||||
|
||||
# ifdef HAVE_LONG_LONG
|
||||
typedef unsigned LONG_LONG stack_type;
|
||||
# else
|
||||
typedef unsigned long stack_type;
|
||||
# endif
|
||||
typedef VALUE stack_type;
|
||||
|
||||
# define BITSTACK_PUSH(stack, n) (stack = (stack<<1)|((n)&1))
|
||||
# define BITSTACK_POP(stack) (stack = stack >> 1)
|
||||
|
@ -2381,13 +2377,13 @@ call_args : command
|
|||
;
|
||||
|
||||
command_args : {
|
||||
$<num>$ = cmdarg_stack;
|
||||
$<val>$ = cmdarg_stack;
|
||||
CMDARG_PUSH(1);
|
||||
}
|
||||
call_args
|
||||
{
|
||||
/* CMDARG_POP() */
|
||||
cmdarg_stack = $<num>1;
|
||||
cmdarg_stack = $<val>1;
|
||||
$$ = $2;
|
||||
}
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue