~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_sys.h

  • Committer: Monty Taylor
  • Date: 2008-10-06 01:30:47 UTC
  • Revision ID: monty@inaugust.com-20081006013047-6m2ejc0c4peye2k9
Removed my_free(). It turns out that it had been def'd to ignore the flags passed to it in the second arg anyway. Gotta love that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
extern char *my_strdup(const char *from,myf MyFlags);
145
145
extern char *my_strndup(const char *from, size_t length,
146
146
                                   myf MyFlags);
147
 
/* we do use FG (as a no-op) in below so that a typo on FG is caught */
148
 
#define my_free(PTR,FG) ((void)FG,my_no_flags_free(PTR))
149
147
#define CALLER_INFO_PROTO   /* nothing */
150
148
#define CALLER_INFO         /* nothing */
151
149
#define ORIG_CALLER_INFO    /* nothing */
158
156
#define my_alloca(SZ) alloca((size_t) (SZ))
159
157
#define my_afree(PTR) {}
160
158
#else
161
 
#define my_alloca(SZ) my_malloc(SZ,MYF(0))
162
 
#define my_afree(PTR) my_free(PTR,MYF(MY_WME))
 
159
#define my_alloca(SZ) malloc(SZ)
 
160
#define my_afree(PTR) free(PTR)
163
161
#endif /* HAVE_ALLOCA */
164
162
 
165
163
#ifndef errno                           /* did we already get it? */
702
700
#define sort_dynamic(A,cmp) my_qsort((A)->buffer, (A)->elements, (A)->size_of_element, (cmp))
703
701
 
704
702
#define my_malloc_lock(A,B) my_malloc((A),(B))
705
 
#define my_free_lock(A,B) my_free((A),(B))
706
703
#define alloc_root_inited(A) ((A)->min_malloc != 0)
707
704
#define ALLOC_ROOT_MIN_BLOCK_SIZE (MALLOC_OVERHEAD + sizeof(USED_MEM) + 8)
708
705
#define clear_alloc_root(A) do { (A)->free= (A)->used= (A)->pre_alloc= 0; (A)->min_malloc=0;} while(0)