This commit is contained in:
		
							parent
							
								
									691a32d719
								
							
						
					
					
						commit
						d4c9f22316
					
				
					 3 changed files with 4 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -18,12 +18,10 @@ This is for x86_linux. Tested targets:
 | 
			
		|||
* x86_64-linux
 | 
			
		||||
* riscv64-linux
 | 
			
		||||
* aarch64-linux
 | 
			
		||||
* x86_64 Windows
 | 
			
		||||
 | 
			
		||||
Tested/not working:
 | 
			
		||||
 | 
			
		||||
* x86_64-windows
 | 
			
		||||
* arm-linux
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Building
 | 
			
		||||
 | 
			
		||||
`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();
 | 
			
		||||
    defer buffer.deinit();
 | 
			
		||||
    var in_var = false;
 | 
			
		||||
    var start: u64 = 0;
 | 
			
		||||
    var start: usize = 0;
 | 
			
		||||
    for (raw_uri) |c, inx| {
 | 
			
		||||
        switch (c) {
 | 
			
		||||
            '{' => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ const expectEqualStrings = std.testing.expectEqualStrings;
 | 
			
		|||
 | 
			
		||||
pub fn snakeToCamel(allocator: std.mem.Allocator, name: []const u8) ![]u8 {
 | 
			
		||||
    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;
 | 
			
		||||
    // A single word will take the entire length plus our sentinel
 | 
			
		||||
    const rc = try allocator.alloc(u8, name.len + 1);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue