Lines Matching defs:sort
2074 void cil_sort_init(struct cil_sort **sort)
2076 *sort = cil_malloc(sizeof(**sort));
2078 (*sort)->flavor = CIL_NONE;
2079 (*sort)->count = 0;
2080 (*sort)->index = 0;
2081 (*sort)->array = NULL;
2084 void cil_sort_destroy(struct cil_sort **sort)
2086 (*sort)->flavor = CIL_NONE;
2087 (*sort)->count = 0;
2088 (*sort)->index = 0;
2089 if ((*sort)->array != NULL) {
2090 free((*sort)->array);
2092 (*sort)->array = NULL;
2094 free(*sort);
2095 *sort = NULL;