Lines Matching defs:sl
50 strlist_init(strlist_t *sl)
52 sl->sl_num = 0;
53 sl->sl_max = 0;
54 sl->sl_items = NULL;
58 strlist_clean(strlist_t *sl)
63 STRLIST_FOREACH(str, sl, i)
65 free(sl->sl_items);
67 sl->sl_num = 0;
68 sl->sl_max = 0;
69 sl->sl_items = NULL;
73 strlist_add_str(strlist_t *sl, char *str, unsigned int info)
81 n = sl->sl_num + 1;
82 sl->sl_num = n;
83 items = sl->sl_items;
84 if (n >= sl->sl_max) {
85 items = bmake_realloc(items, (n + 7) * sizeof *sl->sl_items);
86 sl->sl_items = items;
87 sl->sl_max = n + 6;