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

Update for Zig 0.11 #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

dadrian
Copy link

@dadrian dadrian commented Aug 24, 2023

This updates build.zig to use the newer APIs, and changes ctregex.zig to build under 0.11.0.

  • Use @min instead of std.math.min
  • @truncate only takes one parameter now
  • Run zig fmt to autoconvert to the new for loop index syntax (0..)
  • Using more specific fmt specifiers to prevent runtime crashes on errors

This updates build.zig to use the newer APIs, and changes ctregex.zig to
use @min instead of std.math.min, and the new @truncate API.
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.

1 participant