diff options
author | monty@narttu.mysql.fi <> | 2003-06-23 20:05:54 +0300 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-06-23 20:05:54 +0300 |
commit | 28e96d95c5813b993f79d317a276810cab7b34ce (patch) | |
tree | 4786009a4571cb9c2f78de142df7098da40097c8 /mysys | |
parent | a51ea1114702efac99abd349e9dd2e0827af70b4 (diff) | |
download | mariadb-git-28e96d95c5813b993f79d317a276810cab7b34ce.tar.gz |
Simple code cleanup
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/mf_pack.c | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/mysys/mf_pack.c b/mysys/mf_pack.c index 8fba14f626b..b3aa347006e 100644 --- a/mysys/mf_pack.c +++ b/mysys/mf_pack.c @@ -253,15 +253,27 @@ void symdirget(char *dir) } #endif /* USE_SYMDIR */ - /* Unpacks dirname to name that can be used by open... */ - /* Make that last char of to is '/' if from not empty and - from doesn't end in FN_DEVCHAR */ - /* Uses cleanup_dirname and changes ~/.. to home_dir/.. */ - /* Returns length of new directory */ -uint unpack_dirname(my_string to, const char *from) +/* + Fixes a directroy name so that can be used by open() + + SYNOPSIS + unpack_dirname() + to Store result here. May be = from + from 'Packed' directory name (may contain ~) + + IMPLEMENTATION + Make that last char of to is '/' if from not empty and + from doesn't end in FN_DEVCHAR + Uses cleanup_dirname and changes ~/.. to home_dir/.. - /* to may be == from */ + Changes a UNIX filename to system filename (replaces / with \ on windows) + + RETURN + Length of new directory name (= length of to) +*/ + +uint unpack_dirname(my_string to, const char *from) { uint length,h_length; char buff[FN_REFLEN+1+4],*suffix,*tilde_expansion; |