~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/longlong2str.cc

  • Committer: Olaf van der Spek
  • Date: 2011-02-23 13:59:17 UTC
  • mto: (2195.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2196.
  • Revision ID: olafvdspek@gmail.com-20110223135917-1rqm1wbp7z4nt73n
Remove register keyword

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
char *int64_t2str(int64_t val,char *dst,int radix)
59
59
{
60
60
  char buffer[65];
61
 
  register char *p;
62
61
  long long_val;
63
62
  uint64_t uval= (uint64_t) val;
64
63
 
82
81
    *dst='\0';
83
82
    return dst;
84
83
  }
85
 
  p = &buffer[sizeof(buffer)-1];
 
84
  char* p = &buffer[sizeof(buffer)-1];
86
85
  *p = '\0';
87
86
 
88
87
  while (uval > (uint64_t) LONG_MAX)
109
108
char *int64_t10_to_str(int64_t val,char *dst,int radix)
110
109
{
111
110
  char buffer[65];
112
 
  register char *p;
113
111
  long long_val;
114
112
  uint64_t uval= (uint64_t) val;
115
113
 
129
127
    *dst='\0';
130
128
    return dst;
131
129
  }
132
 
  p = &buffer[sizeof(buffer)-1];
 
130
  char* p = &buffer[sizeof(buffer)-1];
133
131
  *p = '\0';
134
132
 
135
133
  while (uval > (uint64_t) LONG_MAX)