~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/mf_format.cc

  • Committer: Mark Atwood
  • Date: 2011-08-12 04:08:33 UTC
  • mfrom: (2385.2.17 refactor5)
  • Revision ID: me@mark.atwood.name-20110812040833-u6j85nc6ahuc0dtz
mergeĀ lp:~olafvdspek/drizzle/refactor5

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
  {