~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/array.c

  • Committer: Brian Aker
  • Date: 2008-07-13 18:27:33 UTC
  • Revision ID: brian@tangent.org-20080713182733-3u1et5nrmofi8a8n
my_bool cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    FALSE       Ok
41
41
*/
42
42
 
43
 
my_bool init_dynamic_array2(DYNAMIC_ARRAY *array, uint element_size,
 
43
bool init_dynamic_array2(DYNAMIC_ARRAY *array, uint element_size,
44
44
                            void *init_buffer, uint init_alloc, 
45
45
                            uint alloc_increment CALLER_INFO_PROTO)
46
46
{
72
72
  DBUG_RETURN(FALSE);
73
73
74
74
 
75
 
my_bool init_dynamic_array(DYNAMIC_ARRAY *array, uint element_size,
 
75
bool init_dynamic_array(DYNAMIC_ARRAY *array, uint element_size,
76
76
                           uint init_alloc, 
77
77
                           uint alloc_increment CALLER_INFO_PROTO)
78
78
{
93
93
    FALSE       Ok
94
94
*/
95
95
 
96
 
my_bool insert_dynamic(DYNAMIC_ARRAY *array, uchar* element)
 
96
bool insert_dynamic(DYNAMIC_ARRAY *array, uchar* element)
97
97
{
98
98
  uchar* buffer;
99
99
  if (array->elements == array->max_element)
197
197
    FALSE       Ok
198
198
*/
199
199
 
200
 
my_bool set_dynamic(DYNAMIC_ARRAY *array, uchar* element, uint idx)
 
200
bool set_dynamic(DYNAMIC_ARRAY *array, uchar* element, uint idx)
201
201
{
202
202
  if (idx >= array->elements)
203
203
  {
229
229
    TRUE        Allocation of new memory failed
230
230
*/
231
231
 
232
 
my_bool allocate_dynamic(DYNAMIC_ARRAY *array, uint max_elements)
 
232
bool allocate_dynamic(DYNAMIC_ARRAY *array, uint max_elements)
233
233
{
234
234
  if (max_elements >= array->max_element)
235
235
  {