Backport #5331
closed
Ripper#yydebug and friends don't work
Added by drbrain (Eric Hodel) over 12 years ago.
Updated over 12 years ago.
Description
Ripper#yydebug, #yydebug=, #end_seen? and #encoding all fail to work with a TypeError due to using a different parser_data_type.
The attached patch fixes this by defining static implementations:
ripper_end_seen_p
ripper_encoding
ripper_get_yydebug
ripper_set_yydebug
I don't know if it's the right patch, though. I tried making parser_data_type an exported symbol but had no luck.
The attached test file adds tests for each of these methods to ensure they work.
PS: redmine is down
Files
- Category set to ext
- Target version set to 1.9.4
- ruby -v changed from - to ruby 1.9.4dev (2011-09-15 trunk 33272) [x86_64-darwin11.1.0]
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r33291.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- parse.y (parser_data_type): inherit the core type in ripper so
that checks in core would work. [ruby-core:39591] [Bug #5331]
- Tracker changed from Bug to Backport
- Project changed from Ruby master to Backport193
- Category deleted (
ext)
- Status changed from Closed to Assigned
- Assignee set to yugui (Yuki Sonoda)
- Target version deleted (
1.9.4)
- Status changed from Assigned to Closed
This issue was solved with changeset r33321.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merges r33291 from trunk into ruby_1_9_3.¶
- parse.y (parser_data_type): inherit the core type in ripper so
that checks in core would work. [ruby-core:39591] [Bug #5331]
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0