~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/server_includes.h

  • Committer: Monty Taylor
  • Date: 2009-12-21 04:32:56 UTC
  • mto: (1253.2.3 out-of-tree)
  • mto: This revision was merged to the branch mainline in revision 1250.
  • Revision ID: mordred@inaugust.com-20091221043256-n7ii7ynwsebr1r47
Removed things from server_includes.h.

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
bool check_column_name(const char *name);
143
143
bool check_table_name(const char *name, uint32_t length);
144
144
 
145
 
/* Conversion functions */
146
 
size_t build_tmptable_filename(char *buff, size_t bufflen);
147
 
size_t build_table_filename(char *buff, size_t bufflen, const char *db,
148
 
                            const char *table_name, bool is_tmp);
149
 
 
150
 
/* Flags for conversion functions. */
151
 
#define FN_FROM_IS_TMP  (1 << 0)
152
 
#define FN_TO_IS_TMP    (1 << 1)
153
 
 
154
 
inline uint32_t sql_rnd()
155
 
{
156
 
  return (uint32_t) (rand() * 0xffffffff); /* make all bits random */
157
 
}
158
 
 
159
 
/**
160
 
  convert a hex digit into number.
161
 
*/
162
 
inline int hexchar_to_int(char c)
163
 
{
164
 
  if (c <= '9' && c >= '0')
165
 
    return c-'0';
166
 
  c|=32;
167
 
  if (c <= 'f' && c >= 'a')
168
 
    return c-'a'+10;
169
 
  return -1;
170
 
}
 
145
 
171
146
 
172
147
#endif /* DRIZZLED_SERVER_INCLUDES_H */