fx.io: update interface implementations

This commit is contained in:
2026-05-25 17:30:33 +01:00
parent 97fe00d4a1
commit 74fbd94f95
3 changed files with 53 additions and 40 deletions
+6 -2
View File
@@ -20,9 +20,13 @@ int main(int argc, const char **argv)
return -1;
}
fx_iterator *it = fx_directory_begin(dir, FX_DIRECTORY_ITERATE_PARENT_FIRST);
fx_foreach(fx_directory_entry *, entry, it)
fx_iterator *it = fx_directory_begin(
dir,
FX_DIRECTORY_ITERATE_PARENT_FIRST);
fx_foreach(val, it)
{
fx_directory_entry *entry = NULL;
fx_value_get_pointer(&val, (void **)&entry);
printf("%s\n", fx_path_ptr(entry->filepath));
}