fx.io: update interface implementations
This commit is contained in:
+6
-2
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user