~thomir-deactivatedaccount/drizzle/drizzle-fix-bug653747

« back to all changes in this revision

Viewing changes to mysys/mf_arr_appstr.c

Merged in Jay's tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
  @param size   Size of the array; array must be terminated by a NULL
27
27
                pointer, so can hold size - 1 elements
28
28
 
29
 
  @retval FALSE  Success
30
 
  @retval TRUE   Failure, array is full
 
29
  @retval false  Success
 
30
  @retval true   Failure, array is full
31
31
*/
32
32
 
33
33
bool array_append_string_unique(const char *str,
44
44
      break;
45
45
  }
46
46
  if (p >= end)
47
 
    return TRUE;                               /* Array is full */
 
47
    return true;                               /* Array is full */
48
48
 
49
49
  DBUG_ASSERT(*p == NULL || strcmp(*p, str) == 0);
50
50
 
57
57
  DBUG_ASSERT(p < end);
58
58
  *p= str;
59
59
 
60
 
  return FALSE;                                 /* Success */
 
60
  return false;                                 /* Success */
61
61
}