[前][次][番号順一覧][スレッド一覧]

ruby-changes:41502

From: nobu <ko1@a...>
Date: Mon, 18 Jan 2016 20:49:30 +0900 (JST)
Subject: [ruby-changes:41502] nobu:r53576 (trunk): parse.y: show operations on BITSTACK

nobu	2016-01-18 20:50:06 +0900 (Mon, 18 Jan 2016)

  New Revision: 53576

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53576

  Log:
    parse.y: show operations on BITSTACK

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 53575)
+++ parse.y	(revision 53576)
@@ -109,11 +109,11 @@ typedef VALUE stack_type; https://github.com/ruby/ruby/blob/trunk/parse.y#L109
 
 static void show_bitstack(stack_type, const char *, int);
 # define SHOW_BITSTACK(stack, name) (yydebug ? show_bitstack(stack, name, __LINE__) : (void)0)
-# define BITSTACK_PUSH(stack, n) (((stack) = ((stack)<<1)|((n)&1)), SHOW_BITSTACK(stack, #stack))
-# define BITSTACK_POP(stack)	 (((stack) = (stack) >> 1), SHOW_BITSTACK(stack, #stack))
-# define BITSTACK_LEXPOP(stack)	 (((stack) = ((stack) >> 1) | ((stack) & 1)), SHOW_BITSTACK(stack, #stack))
+# define BITSTACK_PUSH(stack, n) (((stack) = ((stack)<<1)|((n)&1)), SHOW_BITSTACK(stack, #stack"(push)"))
+# define BITSTACK_POP(stack)	 (((stack) = (stack) >> 1), SHOW_BITSTACK(stack, #stack"(pop)"))
+# define BITSTACK_LEXPOP(stack)	 (((stack) = ((stack) >> 1) | ((stack) & 1)), SHOW_BITSTACK(stack, #stack"(lexpop)"))
 # define BITSTACK_SET_P(stack)	 (SHOW_BITSTACK(stack, #stack), (stack)&1)
-# define BITSTACK_SET(stack, n)	 ((stack)=(n), SHOW_BITSTACK(stack, #stack))
+# define BITSTACK_SET(stack, n)	 ((stack)=(n), SHOW_BITSTACK(stack, #stack"(set)"))
 
 #define COND_PUSH(n)	BITSTACK_PUSH(cond_stack, (n))
 #define COND_POP()	BITSTACK_POP(cond_stack)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]