This commit is contained in:
parent
691a32d719
commit
d4c9f22316
|
@ -18,12 +18,10 @@ This is for x86_linux. Tested targets:
|
||||||
* x86_64-linux
|
* x86_64-linux
|
||||||
* riscv64-linux
|
* riscv64-linux
|
||||||
* aarch64-linux
|
* aarch64-linux
|
||||||
* x86_64 Windows
|
* x86_64-windows
|
||||||
|
|
||||||
Tested/not working:
|
|
||||||
|
|
||||||
* arm-linux
|
* arm-linux
|
||||||
|
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
`zig build` should work. It will build the code generation project, run
|
`zig build` should work. It will build the code generation project, run
|
||||||
|
|
|
@ -421,7 +421,7 @@ fn buildPath(allocator: std.mem.Allocator, raw_uri: []const u8, comptime ActionR
|
||||||
// const writer = buffer.writer();
|
// const writer = buffer.writer();
|
||||||
defer buffer.deinit();
|
defer buffer.deinit();
|
||||||
var in_var = false;
|
var in_var = false;
|
||||||
var start: u64 = 0;
|
var start: usize = 0;
|
||||||
for (raw_uri) |c, inx| {
|
for (raw_uri) |c, inx| {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
'{' => {
|
'{' => {
|
||||||
|
|
|
@ -3,7 +3,7 @@ const expectEqualStrings = std.testing.expectEqualStrings;
|
||||||
|
|
||||||
pub fn snakeToCamel(allocator: std.mem.Allocator, name: []const u8) ![]u8 {
|
pub fn snakeToCamel(allocator: std.mem.Allocator, name: []const u8) ![]u8 {
|
||||||
var utf8_name = (std.unicode.Utf8View.init(name) catch unreachable).iterator();
|
var utf8_name = (std.unicode.Utf8View.init(name) catch unreachable).iterator();
|
||||||
var target_inx: u64 = 0;
|
var target_inx: usize = 0;
|
||||||
var previous_ascii: u8 = 0;
|
var previous_ascii: u8 = 0;
|
||||||
// A single word will take the entire length plus our sentinel
|
// A single word will take the entire length plus our sentinel
|
||||||
const rc = try allocator.alloc(u8, name.len + 1);
|
const rc = try allocator.alloc(u8, name.len + 1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user