/* Adds a pointer to the end of the pointer array. The array will grow in size automatically if necessary.  */
void g_ptr_array_add(GPtrArray *array, gpointer data)
/* Adds a pointer to the end of the pointer array. The array will grow in size automatically if necessary.  */
void g_ptr_array_add(GPtrArray *array, gpointer data)
{
  GRealPtrArray *rarray = (GRealPtrArray *)array;
  g_return_if_fail (rarray);
  g_ptr_array_maybe_expand (rarray, 1);
  rarray->pdata[rarray->len++] = data;
}