Changeset f9325e9


Ignore:
Timestamp:
Jan 5, 2013, 4:01:18 PM (9 years ago)
Author:
Jason Gross <jasongross9@gmail.com>
Parents:
048b1ff (diff), 6f14b20 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:
Merge 6f14b20022e0a3d8b14f536d7f2e22a4cc88eb64 into 048b1ff9986fa6f3572985dbf44dd262dcd81618
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r7b89e8c r6f14b20  
    9595}
    9696
    97 void 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)
     97void 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
    102102    g_ptr_array_foreach(array, (GFunc)element_free_func, NULL);
     103#endif
     104  }
    103105  g_ptr_array_free(array, true);
    104106}
     
    116118
    117119  argv = g_ptr_array_new();
    118   len=strlen(line);
     120  len = strlen(line);
    119121  curarg = g_string_new("");
    120122  quote='\0';
Note: See TracChangeset for help on using the changeset viewer.