~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_sys.h

  • Committer: Monty Taylor
  • Date: 2008-12-06 07:22:02 UTC
  • mto: (656.1.7 devel) (660.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: monty@inaugust.com-20081206072202-2g25o9doqr1l8euu
OOOh doggie. Got rid of my_alloca.

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
                                   myf MyFlags);
151
151
#define TRASH(A,B) /* nothing */
152
152
 
153
 
#ifdef HAVE_ALLOCA
154
 
#if defined(__GNUC__) && !defined(HAVE_ALLOCA_H) && ! defined(alloca)
155
 
#define alloca __builtin_alloca
156
 
#endif /* GNUC */
157
 
#define my_alloca(SZ) malloc((size_t) (SZ))
158
 
#define my_afree(PTR) free((PTR))
159
 
#else
160
 
#define my_alloca(SZ) malloc((SZ))
161
 
#define my_afree(PTR) free((PTR))
162
 
#endif /* HAVE_ALLOCA */
163
 
 
164
153
#ifndef errno                           /* did we already get it? */
165
154
#ifdef HAVE_ERRNO_AS_DEFINE
166
155
#include <errno.h>                      /* errno is a define */
269
258
typedef struct st_dynamic_array
270
259
{
271
260
  unsigned char *buffer;
272
 
  uint32_t elements,max_element;
 
261
  size_t elements,max_element;
273
262
  uint32_t alloc_increment;
274
263
  uint32_t size_of_element;
275
264
} DYNAMIC_ARRAY;