~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/global.h

  • Committer: Monty Taylor
  • Date: 2009-02-21 03:33:30 UTC
  • mfrom: (895 drizzle)
  • mto: (896.2.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 898.
  • Revision ID: mordred@inaugust.com-20090221033330-v110f94679dej04p
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
# include <sys/stat.h>
116
116
#endif
117
117
 
118
 
#if !defined(HAVE_UINT)
119
 
#undef HAVE_UINT
120
 
#define HAVE_UINT
121
 
typedef unsigned int uint;
122
 
#endif
123
 
 
124
118
/* Declared in int2str() */
125
119
extern char _dig_vec_upper[];
126
120
extern char _dig_vec_lower[];
155
149
#define MALLOC_OVERHEAD 8
156
150
 
157
151
/* get memory in huncs */
158
 
#define ONCE_ALLOC_INIT    (uint) (4096-MALLOC_OVERHEAD)
 
152
#define ONCE_ALLOC_INIT    (uint32_t) (4096-MALLOC_OVERHEAD)
159
153
/* Typical record cash */
160
 
#define RECORD_CACHE_SIZE  (uint) (64*1024-MALLOC_OVERHEAD)
 
154
#define RECORD_CACHE_SIZE  (uint32_t) (64*1024-MALLOC_OVERHEAD)
161
155
/* Typical key cash */
162
 
#define KEY_CACHE_SIZE    (uint) (8*1024*1024-MALLOC_OVERHEAD)
 
156
#define KEY_CACHE_SIZE    (uint32_t) (8*1024*1024-MALLOC_OVERHEAD)
163
157
/* Default size of a key cache block  */
164
 
#define KEY_CACHE_BLOCK_SIZE  (uint) 1024
 
158
#define KEY_CACHE_BLOCK_SIZE  (uint32_t) 1024
165
159
 
166
160
 
167
161
/* Some things that this system doesn't have */