~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/mf_format.cc

  • Committer: Olaf van der Spek
  • Date: 2011-04-05 12:26:58 UTC
  • mto: (2278.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2272.
  • Revision ID: olafvdspek@gmail.com-20110405122658-xxrvmobwwwwf3oct
Refactor Open_tables_state

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
namespace internal
35
35
{
36
36
 
 
37
static size_t strlength(const char *str);
 
38
 
37
39
/*
38
40
  Formats a filename with possible replace of directory of extension
39
41
  Function can handle the case where 'to' == 'name'
47
49
  char dev[FN_REFLEN], buff[FN_REFLEN], *pos;
48
50
  const char *startpos = name;
49
51
  const char *ext;
50
 
  register size_t length;
 
52
  size_t length;
51
53
  size_t dev_length;
52
54
 
53
55
  /* Copy and skip directory */
142
144
  Return length of string with end-space:s not counted.
143
145
*/
144
146
 
145
 
size_t strlength(const char *str)
 
147
static size_t strlength(const char *str)
146
148
{
147
 
  register const char * pos;
148
 
  register const char * found;
149
 
 
150
 
  pos= found= str;
 
149
  const char* found= str;
 
150
  const char* pos= str;
151
151
 
152
152
  while (*pos)
153
153
  {