Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace and Use PM_LOCATION_NULL_VALUE macro #2821

Merged
merged 1 commit into from
May 17, 2024

Conversation

S-H-GAMELINKS
Copy link
Contributor

These same code in prism.c.

{ .start = parser->start, .end = parser->start }

And, already defined PM_LOCATION_NULL_VALUE macro in prism.c that was same these code.

#define PM_LOCATION_NULL_VALUE(parser) ((pm_location_t) { .start = (parser)->start, .end = (parser)->start })

May be simpler replace these code to PM_LOCATION_NULL_VALUE macro.

@kddnewton kddnewton merged commit 7a05642 into ruby:main May 17, 2024
55 of 56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants