Skip to content

Rename position, token, and rangetypes #30

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

Merged
merged 4 commits into from
Mar 28, 2025
Merged

Rename position, token, and rangetypes #30

merged 4 commits into from
Mar 28, 2025

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Mar 28, 2025

These names are too generic and can easily conflict in projects. New names are:

  • rbs_position_t
  • rbs_range_t
  • rbs_token_t

@st0012 st0012 requested review from amomchilov and Morriar March 28, 2025 20:26
@st0012 st0012 force-pushed the rename-lexer-types branch from 7be7ddc to 3df96a9 Compare March 28, 2025 20:45
@st0012 st0012 merged commit 67b2fe1 into c-api Mar 28, 2025
19 of 20 checks passed
position pos = { 0, char_pos, -1, -1 };
return pos;
rbs_position_t rbs_loc_position(int char_pos) {
return (rbs_position_t) { 0, char_pos, -1, -1 };
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could be calling rbs_loc_position3 while at it.

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.

3 participants