~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_same.c

Renamed more stuff to drizzle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* Kopierar biblioteksstrukturen och extensionen fr}n ett filnamn */
17
17
 
18
 
#include "config.h"
19
 
 
20
 
#include "drizzled/internal/my_sys.h"
21
 
#include "drizzled/internal/m_string.h"
22
 
 
23
 
namespace drizzled
24
 
{
25
 
namespace internal
26
 
{
 
18
#include "mysys_priv.h"
 
19
#include <m_string.h>
27
20
 
28
21
        /*
29
22
          Copy directory and/or extension between filenames.
37
30
  char dev[FN_REFLEN];
38
31
  const char *ext;
39
32
  size_t dev_length;
 
33
  DBUG_ENTER("fn_same");
 
34
  DBUG_PRINT("enter",("to: %s  name: %s  flag: %d",to,name,flag));
40
35
 
41
36
  if ((ext=strrchr(name+dirname_part(dev, name, &dev_length),FN_EXTCHAR)) == 0)
42
37
    ext="";
43
38
 
44
 
  return(fn_format(to,to,dev,ext,flag));
 
39
  DBUG_RETURN(fn_format(to,to,dev,ext,flag));
45
40
} /* fn_same */
46
 
 
47
 
} /* namespace internal */
48
 
} /* namespace drizzled */