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: deduplicate repeat parsers alloc logic #166

Merged
merged 1 commit into from
Aug 20, 2023

Conversation

steve-chavez
Copy link
Contributor

Deduplicates the results allocation logic used in MPC_TYPE_MANY and MPC_TYPE_MANY1 on a grow_results function.

This will aid in implementing new repeat parser types. A new one is neeeded for sepby1 as discussed on #165 (comment).

Deduplicates the results allocation logic used in MPC_TYPE_MANY
and MPC_TYPE_MANY1 on a `grow_results` function.

This will aid in implementing new repeat parser types. A new one is
neeeded for `sepby1` as discussed on
orangeduck#165 (comment).
@orangeduck orangeduck merged commit 3e9e3a2 into orangeduck:master Aug 20, 2023
1 check passed
@orangeduck
Copy link
Owner

Perhaps you can rename this to mpc_grow_results in future commits. Even though this is a static function I think it is good to include the prefix since otherwise it can cause naming conflicts in things like unity builds (https://en.wikipedia.org/wiki/Unity_build).

steve-chavez added a commit to steve-chavez/mpc that referenced this pull request Aug 21, 2023
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.

None yet

2 participants