mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parse.y: Factor out code fragments that merges two code ranges
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dab956b7e6
commit
47cf2fd7ec
2 changed files with 20 additions and 32 deletions
8
node.h
8
node.h
|
@ -232,6 +232,14 @@ typedef struct rb_code_range_struct {
|
|||
rb_code_location_t last_loc;
|
||||
} rb_code_range_t;
|
||||
|
||||
static inline rb_code_range_t code_range_gen(rb_code_range_t *cr1, rb_code_range_t *cr2)
|
||||
{
|
||||
rb_code_range_t cr;
|
||||
cr.first_loc = cr1->first_loc;
|
||||
cr.last_loc = cr2->last_loc;
|
||||
return cr;
|
||||
}
|
||||
|
||||
typedef struct RNode {
|
||||
VALUE flags;
|
||||
union {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue