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

ffiUtil: Don't branch on ffi.os at runtime #1583

Merged
merged 4 commits into from
Feb 17, 2023
Merged

Conversation

NiLuJe
Copy link
Member

@NiLuJe NiLuJe commented Feb 16, 2023

We're unlikely to change OS at runtime ;o).


This change is Reviewable

We're unlikely to change OS at runtime ;o).
@NiLuJe
Copy link
Member Author

NiLuJe commented Feb 16, 2023

Includes a few drive-by simplifications (no need to cast a char[] to char*, that's only needed for Lua strings; no need for ffi.copy for a Lua -> C string conversion, ffi.new handles constructors).

Copy link
Member Author

@NiLuJe NiLuJe left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @NiLuJe)

@NiLuJe NiLuJe merged commit 96b2a16 into koreader:master Feb 17, 2023
NiLuJe added a commit to NiLuJe/koreader that referenced this pull request Feb 17, 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

1 participant