Skip to content

use provided by RedoxOS byte orders implementations#5342

Merged
clason merged 2 commits intotree-sitter:masterfrom
greyshaman:redox-support-endian
Feb 18, 2026
Merged

use provided by RedoxOS byte orders implementations#5342
clason merged 2 commits intotree-sitter:masterfrom
greyshaman:redox-support-endian

Conversation

@greyshaman
Copy link
Contributor

Hi!
It adds basic Redox OS support to portable/endian.h by including redox in the platform checks. Redox OS uses Relibc, which provides <endian.h> declarations for htobeXX/beXXtoh functions. This avoids the #error "platform not supported" .

The change is minimal and non-breaking for other platforms.
It was created as part of porting Helix editor to Redox OS.

Thanks.

Copy link
Member

@WillLillis WillLillis left a comment

Choose a reason for hiding this comment

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

Adding support for redox sounds good. Just to keep things organized, could you move the defined(__redox__) below the illumos line?

@clason
Copy link
Contributor

clason commented Feb 18, 2026

And commit message should be fix(lib): add RedoxOS support to portable/endian.h

@clason clason requested a review from WillLillis February 18, 2026 10:02
@greyshaman
Copy link
Contributor Author

WillLillis

Thanks for the quick review! Done — moved __redox__ right below __illumos__ for better organization.
New commit pushed.

Let me know if anything else needs tweaking!

@clason clason enabled auto-merge (rebase) February 18, 2026 15:32
@clason clason merged commit 5e23cca into tree-sitter:master Feb 18, 2026
14 checks passed
@tree-sitter-ci-bot
Copy link

Successfully created backport PR for release-0.26:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants