summaryrefslogtreecommitdiff
path: root/mysys/default.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-10-08 04:58:07 +0300
committermonty@hundin.mysql.fi <>2001-10-08 04:58:07 +0300
commit88aff4bf851e8f0d67cc7cd860d445e0fb234717 (patch)
treef8a3cf3164d5a5550378074ac8d3bf4afe105683 /mysys/default.c
parente80123501939a6e19dcc33efa837c15f5ca60641 (diff)
downloadmariadb-git-88aff4bf851e8f0d67cc7cd860d445e0fb234717.tar.gz
Updated manual about embedded version.
Speed up column-completion in 'mysql' Don't use ISAM if HAVE_ISAM is not defined A lot of fixes for the embedded version. All libraries are now included in libmysqld.a Changed arguments to convert_dirname() to make it more general. Renamed files in the 'merge' directory to all use a common prefix. Don't compile both assembler and C functions on x86
Diffstat (limited to 'mysys/default.c')
-rw-r--r--mysys/default.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/mysys/default.c b/mysys/default.c
index e2e80f36a68..920a3a5e70b 100644
--- a/mysys/default.c
+++ b/mysys/default.c
@@ -231,11 +231,10 @@ static my_bool search_default_file(DYNAMIC_ARRAY *args, MEM_ROOT *alloc,
return 0; /* Ignore wrong paths */
if (dir)
{
- strmov(name,dir);
- convert_dirname(name);
+ end=convert_dirname(name, dir, NullS);
if (dir[0] == FN_HOMELIB) /* Add . to filenames in home */
- strcat(name,".");
- strxmov(strend(name),config_file,ext,NullS);
+ *end++='.';
+ strxmov(end,config_file,ext,NullS);
}
else
{
@@ -369,16 +368,18 @@ void print_defaults(const char *conf_file, const char **groups)
#endif
for (dirs=default_directories ; *dirs; dirs++)
{
+ const char *pos;
+ char *end;
if (**dirs)
- strmov(name,*dirs);
+ pos= *dirs;
else if (defaults_extra_file)
- strmov(name,defaults_extra_file);
+ pos= defaults_extra_file;
else
continue;
- convert_dirname(name);
+ end=convert_dirname(name, pos, NullS);
if (name[0] == FN_HOMELIB) /* Add . to filenames in home */
- strcat(name,".");
- strxmov(strend(name),conf_file,default_ext," ",NullS);
+ *end++='.';
+ strxmov(end,conf_file,default_ext," ",NullS);
fputs(name,stdout);
}
puts("");