Merge pull request #2249 from tstibor/fix_odinfmt

Update odinfmt with new filepath.Walk_Proc signature
This commit is contained in:
gingerBill
2022-12-15 10:11:42 +00:00
committed by GitHub

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 {