diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-07-09 16:59:54 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-07-09 16:59:54 -0700 |
| commit | eddb273fa9ef05fabbd6775b0612c66567c70557 (patch) | |
| tree | 62500743537f0a4fda413f87ba296d82e4e8fa1c /src/parse.y | |
| parent | 158e1e6fcea3e39cb0e7af3b82d11fdaee36f68a (diff) | |
| parent | beda4d928a98231ddb81b32f1609228bdc00d647 (diff) | |
| download | mruby-eddb273fa9ef05fabbd6775b0612c66567c70557.tar.gz mruby-eddb273fa9ef05fabbd6775b0612c66567c70557.zip | |
Merge pull request #357 from suzukaze/replace-tab-with-spaces
Replace Tab with spaces in src/parse.y
Diffstat (limited to 'src/parse.y')
| -rw-r--r-- | src/parse.y | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/parse.y b/src/parse.y index dd1738010..97c2e6d2e 100644 --- a/src/parse.y +++ b/src/parse.y @@ -44,20 +44,20 @@ static void backref_error(parser_state *p, node *n); typedef unsigned int stack_type; -#define BITSTACK_PUSH(stack, n) ((stack) = ((stack)<<1)|((n)&1)) -#define BITSTACK_POP(stack) ((stack) = (stack) >> 1) -#define BITSTACK_LEXPOP(stack) ((stack) = ((stack) >> 1) | ((stack) & 1)) -#define BITSTACK_SET_P(stack) ((stack)&1) - -#define COND_PUSH(n) BITSTACK_PUSH(p->cond_stack, (n)) -#define COND_POP() BITSTACK_POP(p->cond_stack) -#define COND_LEXPOP() BITSTACK_LEXPOP(p->cond_stack) -#define COND_P() BITSTACK_SET_P(p->cond_stack) - -#define CMDARG_PUSH(n) BITSTACK_PUSH(p->cmdarg_stack, (n)) -#define CMDARG_POP() BITSTACK_POP(p->cmdarg_stack) -#define CMDARG_LEXPOP() BITSTACK_LEXPOP(p->cmdarg_stack) -#define CMDARG_P() BITSTACK_SET_P(p->cmdarg_stack) +#define BITSTACK_PUSH(stack, n) ((stack) = ((stack)<<1)|((n)&1)) +#define BITSTACK_POP(stack) ((stack) = (stack) >> 1) +#define BITSTACK_LEXPOP(stack) ((stack) = ((stack) >> 1) | ((stack) & 1)) +#define BITSTACK_SET_P(stack) ((stack)&1) + +#define COND_PUSH(n) BITSTACK_PUSH(p->cond_stack, (n)) +#define COND_POP() BITSTACK_POP(p->cond_stack) +#define COND_LEXPOP() BITSTACK_LEXPOP(p->cond_stack) +#define COND_P() BITSTACK_SET_P(p->cond_stack) + +#define CMDARG_PUSH(n) BITSTACK_PUSH(p->cmdarg_stack, (n)) +#define CMDARG_POP() BITSTACK_POP(p->cmdarg_stack) +#define CMDARG_LEXPOP() BITSTACK_LEXPOP(p->cmdarg_stack) +#define CMDARG_P() BITSTACK_SET_P(p->cmdarg_stack) static mrb_sym intern_gen(parser_state *p, const char *s) |
