1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* node.h (nd_line): NODE_LMASK is not needed.

* node.h (NOEX_SAFE): made int.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-05-17 09:59:48 +00:00
parent d25ea00ac0
commit cf125a912a
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Sun May 17 18:59:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* node.h (nd_line): NODE_LMASK is not needed.
* node.h (NOEX_SAFE): made int.
Sun May 17 14:23:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (rb_parse_in_eval): returns true in true eval, not in

4
node.h
View file

@ -280,7 +280,7 @@ typedef struct RNode {
#define NODE_LSHIFT (NODE_TYPESHIFT+7)
#define NODE_LMASK (((SIGNED_VALUE)1<<(sizeof(VALUE)*CHAR_BIT-NODE_LSHIFT))-1)
#define nd_line(n) ((VALUE)(((RNODE(n))->flags>>NODE_LSHIFT)&NODE_LMASK))
#define nd_line(n) (RNODE(n)->flags>>NODE_LSHIFT)
#define nd_set_line(n,l) \
RNODE(n)->flags=((RNODE(n)->flags&~(-1<<NODE_LSHIFT))|(((l)&NODE_LMASK)<<NODE_LSHIFT))
@ -473,7 +473,7 @@ typedef struct RNode {
#define NOEX_SUPER 0x20
#define NOEX_VCALL 0x40
#define NOEX_SAFE(n) (((n) >> 8) & 0x0F)
#define NOEX_SAFE(n) ((int)((n) >> 8) & 0x0F)
#define NOEX_WITH(n, s) ((s << 8) | (n) | (ruby_running ? 0 : NOEX_BASIC))
#define NOEX_WITH_SAFE(n) NOEX_WITH(n, rb_safe_level())