mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
node.h: add nd_last_loc and nd_set_last_loc
Just refactoring. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9178645dbc
commit
4abc1a24af
2 changed files with 8 additions and 12 deletions
2
node.h
2
node.h
|
@ -290,6 +290,8 @@ typedef struct RNode {
|
|||
#define nd_set_last_column(n, v) ((n)->nd_loc.last_loc.column = (v))
|
||||
#define nd_last_lineno(n) ((int)((n)->nd_loc.last_loc.lineno))
|
||||
#define nd_set_last_lineno(n, v) ((n)->nd_loc.last_loc.lineno = (v))
|
||||
#define nd_last_loc(n) ((n)->nd_loc.last_loc)
|
||||
#define nd_set_last_loc(n, v) (nd_last_loc(n) = (v))
|
||||
|
||||
#define nd_head u1.node
|
||||
#define nd_alen u2.argc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue