Skip to content

Commit

Permalink
* node.h (nd_line): NODE_LMASK is not needed.
Browse files Browse the repository at this point in the history
* node.h (NOEX_SAFE): made int.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed May 17, 2009
1 parent d25ea00 commit cf125a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Sun May 17 18:59:45 2009 Nobuyoshi Nakada <[email protected]>

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

* node.h (NOEX_SAFE): made int.

Sun May 17 14:23:08 2009 Nobuyoshi Nakada <[email protected]>

* compile.c (rb_parse_in_eval): returns true in true eval, not in
Expand Down
4 changes: 2 additions & 2 deletions node.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -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())

Expand Down

0 comments on commit cf125a9

Please sign in to comment.