Changes in / [f9325e9:048b1ff]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r6f14b20 r7b89e8c  
    9595}
    9696
    97 void owl_ptr_array_free(GPtrArray *array, GDestroyNotify element_free_func) {
    98   if (element_free_func) {
    99 #if GLIB_CHECK_VERSION(2, 22, 0)
    100     g_ptr_array_set_free_func(array, element_free_func);
    101 #else
     97void owl_ptr_array_free(GPtrArray *array, GDestroyNotify element_free_func)
     98{
     99  /* TODO: when we move to requiring glib 2.22+, use
     100   * g_ptr_array_new_with_free_func instead. */
     101  if (element_free_func)
    102102    g_ptr_array_foreach(array, (GFunc)element_free_func, NULL);
    103 #endif
    104   }
    105103  g_ptr_array_free(array, true);
    106104}
     
    118116
    119117  argv = g_ptr_array_new();
    120   len = strlen(line);
     118  len=strlen(line);
    121119  curarg = g_string_new("");
    122120  quote='\0';
Note: See TracChangeset for help on using the changeset viewer.