Restructure into different files

This commit is contained in:
jonathan santis
2024-10-30 10:38:15 +01:00
parent ed91d9c711
commit 4ab7bf6ce1
6 changed files with 228 additions and 167 deletions

10
test-str.zig Normal file
View File

@@ -0,0 +1,10 @@
pub fn main() void {
_ = ohyes("sdf"); // everything is fine
}
fn ohyes(str: []const u8) []const u8 {
//const foo = "ohyes";
_ = str;
return "sdfg"; // foo is already a pointer, or rather
// foo was a pointer all along
}