Update odinfmt with new filepath.Walk_Proc signature

Commit f9f4551e8d introduced
the additional parameter: `user_data: rawptr` to `filepath.Walk_Proc` callback.
This commit updates odinfmt to meet this new additional parameter.
This commit is contained in:
Thomas Stibor
2022-12-15 09:23:43 +01:00
parent 56e050fbc9
commit 9d50a04905
+2 -2
View File
@@ -55,7 +55,7 @@ format_file :: proc(filepath: string) -> (string, bool) {
files: [dynamic]string;
walk_files :: proc(info: os.File_Info, in_err: os.Errno) -> (err: os.Errno, skip_dir: bool) {
walk_files :: proc(info: os.File_Info, in_err: os.Errno, user_data: rawptr) -> (err: os.Errno, skip_dir: bool) {
if info.is_dir {
return 0, false;
}
@@ -111,7 +111,7 @@ main :: proc() {
}
}
} else if os.is_dir(path) {
filepath.walk(path, walk_files);
filepath.walk(path, walk_files, nil);
for file in files {