Browse Source

Merge pull request #2249 from tstibor/fix_odinfmt

Update odinfmt with new filepath.Walk_Proc signature
gingerBill 2 years ago
parent
commit
0829ac30f7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/odinfmt/main.odin

+ 2 - 2
tools/odinfmt/main.odin

@@ -55,7 +55,7 @@ format_file :: proc(filepath: string) -> (string, bool) {
 
 
 files: [dynamic]string;
 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 {
 	if info.is_dir {
 		return 0, false;
 		return 0, false;
 	}
 	}
@@ -111,7 +111,7 @@ main :: proc() {
 			}
 			}
 		}
 		}
 	} else if os.is_dir(path) {
 	} else if os.is_dir(path) {
-		filepath.walk(path, walk_files);
+		filepath.walk(path, walk_files, nil);
 
 
 		for file in files {
 		for file in files {