Changeset f9325e9
- Timestamp:
- Jan 5, 2013, 4:01:18 PM (12 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
util.c
r7b89e8c r6f14b20 95 95 } 96 96 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) 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 102 102 g_ptr_array_foreach(array, (GFunc)element_free_func, NULL); 103 #endif 104 } 103 105 g_ptr_array_free(array, true); 104 106 } … … 116 118 117 119 argv = g_ptr_array_new(); 118 len =strlen(line);120 len = strlen(line); 119 121 curarg = g_string_new(""); 120 122 quote='\0';
Note: See TracChangeset
for help on using the changeset viewer.