diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-14 08:22:22 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-14 08:22:22 +0000 |
commit | 4abc1a24af2541ce6fd823ae4c99c1c18c748984 (patch) | |
tree | 939368dd889c576f50fbb0b70e709653570229eb /node.h | |
parent | 9178645dbc9b92440b9dba7f4cfcb7b1366ab0f3 (diff) |
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
Diffstat (limited to 'node.h')
-rw-r--r-- | node.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |