File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -272,13 +272,15 @@ typedef enum {
272272} Nob_Walk_Action ;
273273
274274typedef struct {
275- // The path to the visited file
275+ // The path to the visited file. The lifetime of the path string is very short.
276+ // As soon as the execution exits the Nob_Walk_Func it's dead. Dup it somewhere
277+ // if you want to preserve it for longer periods of time.
276278 const char * path ;
277- // The type of the visited file
279+ // The type of the visited file.
278280 Nob_File_Type type ;
279- // How nested we currently are in the directory tree
281+ // How nested we currently are in the directory tree.
280282 size_t level ;
281- // User data supplied in Nob_Walk_Dir_Opt.data
283+ // User data supplied in Nob_Walk_Dir_Opt.data.
282284 void * data ;
283285 // The action nob_walk_dir_opt() must perform after the Nob_Walk_Func has returned.
284286 // Default is NOB_WALK_CONT.
You can’t perform that action at this time.
0 commit comments