mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
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:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user