Skip to content

Commit a06396b

Browse files
committed
libutil/fname,comment: add more description for canonicalizeAbsoluteFileName
Signed-off-by: Masatake YAMATO <[email protected]>
1 parent 7e5c8dc commit a06396b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

main/fname.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ extern hashTable *canonFnameCacheTableNew (void);
2020
extern const char *canonicalizeRelativeFileName(const char *cwd, size_t cwd_len, const char *input,
2121
hashTable* cache_table);
2222

23-
/* eFree() is for freeing the cstring returned from this function.
24-
* This function may modify FNAME[].
23+
/*
24+
* Resolve '.', '..', and '//' in FNAME as if the current working
25+
* directory is at '/'.
26+
*
27+
* eFree() is for freeing the cstring returned from this function.
28+
* This function may modify FNAME[] as a side effect.
2529
*/
2630
extern char *canonicalizeAbsoluteFileName (char *fname);
2731

0 commit comments

Comments
 (0)