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

Refactor hacky ID tables to struct rb_ast_id_table_t #5136

Merged

Conversation

mame
Copy link
Member

@mame mame commented Nov 17, 2021

The implementation of a local variable tables was represented as ID*,
but it was very hacky: the first element is not an ID but the size of
the table, and, the last element is (sometimes) a link to the next local
table only when the id tables are a linked list.

This change converts the hacky implementation to a normal struct.

The implementation of a local variable tables was represented as `ID*`,
but it was very hacky: the first element is not an ID but the size of
the table, and, the last element is (sometimes) a link to the next local
table only when the id tables are a linked list.

This change converts the hacky implementation to a normal struct.
@mame mame force-pushed the refactor-hacky-id-array-to-struct-rb_ast_id_table_t branch from fb6852b to 2c34662 Compare November 19, 2021 05:09
@mame mame merged commit feda058 into ruby:master Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant