aboutsummaryrefslogtreecommitdiffstats
path: root/node.h
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-14 08:22:22 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-14 08:22:22 +0000
commit4abc1a24af2541ce6fd823ae4c99c1c18c748984 (patch)
tree939368dd889c576f50fbb0b70e709653570229eb /node.h
parent9178645dbc9b92440b9dba7f4cfcb7b1366ab0f3 (diff)
downloadruby-4abc1a24af2541ce6fd823ae4c99c1c18c748984.tar.gz
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/node.h b/node.h
index 5d23a5cd70..9730edeea2 100644
--- a/node.h
+++ b/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