diff options
| author | Walther Chen <walther.chen@gmail.com> | 2023-03-03 21:16:42 -0500 |
|---|---|---|
| committer | Walther Chen <walther.chen@gmail.com> | 2023-03-03 21:16:42 -0500 |
| commit | fb2343e8ba7b957952dea7b58327f539a731142d (patch) | |
| tree | 6cf98075c8223ed390625e8a40dd5cbdfc299877 /tools | |
| parent | c9528c86fc27d07419f8a3649fbf287cb0471568 (diff) | |
Update odinfmt with new filepath.Walk_Proc signature
Per https://github.com/odin-lang/Odin/commit/9d50a0490530f8c602ece4c9bd56f316e169b66a
an additional parameter `user_data: rawptr` was added to the
`filepath.Walk_Proc` callback.
This commit updates odinfmt to use the new parameter.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/odinfmt/main.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/odinfmt/main.odin b/tools/odinfmt/main.odin index c13e4cc..ff79fbc 100644 --- a/tools/odinfmt/main.odin +++ b/tools/odinfmt/main.odin @@ -60,7 +60,7 @@ format_file :: proc( 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 } @@ -150,7 +150,7 @@ main :: proc() { } } } else if os.is_dir(path) { - filepath.walk(path, walk_files) + filepath.walk(path, walk_files, nil) for file in files { fmt.println(file) |