~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_alloc.h

  • Committer: Monty Taylor
  • Date: 2008-09-16 04:26:53 UTC
  • mto: This revision was merged to the branch mainline in revision 391.
  • Revision ID: monty@inaugust.com-20080916042653-59fgd0y0lbw6ohna
Oh dear god the changes. The changes. I'd tell you what they are, but I'd just be making stuff up. Suffice it to day it's mostly all around splitting files in libdrizzle into different files and removing interdepends. And whatever else I happened to see... 

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLE_SERVER_SQL_ALLOC_H
21
21
#define DRIZZLE_SERVER_SQL_ALLOC_H
22
22
 
 
23
#include <libdrizzle/net_serv.h>
 
24
 
23
25
void init_sql_alloc(MEM_ROOT *root, uint block_size, uint pre_alloc_size);
24
26
void *sql_alloc(size_t);
25
27
void *sql_calloc(size_t);
28
30
void *sql_memdup(const void * ptr, size_t size);
29
31
void sql_element_free(void *ptr);
30
32
char *sql_strmake_with_convert(const char *str, size_t arg_length,
31
 
                               const CHARSET_INFO * const from_cs,
32
 
                               size_t max_res_length,
33
 
                               const CHARSET_INFO * const to_cs, size_t *result_length);
 
33
                               const CHARSET_INFO * const from_cs,
 
34
                               size_t max_res_length,
 
35
                               const CHARSET_INFO * const to_cs,
 
36
                               size_t *result_length);
34
37
void sql_kill(THD *thd, ulong id, bool only_kill_query);
35
38
bool net_request_file(NET* net, const char* fname);
36
39
char* query_table_status(THD *thd,const char *db,const char *table_name);
37
40
 
38
 
#define x_free(A)       { my_free((uchar*) (A),MYF(MY_WME | MY_FAE | MY_ALLOW_ZERO_PTR)); }
39
 
#define safeFree(x)     { if(x) { my_free((uchar*) x,MYF(0)); x = NULL; } }
 
41
#define x_free(A)  { my_free((uchar*) (A),MYF(MY_WME | MY_FAE | MY_ALLOW_ZERO_PTR)); }
 
42
#define safeFree(x)  { if(x) { my_free((uchar*) x,MYF(0)); x = NULL; } }
40
43
 
41
44
#endif /* DRIZZLE_SERVER_SQL_ALLOC_H */