8 struct tabexp tabexp
= {
13 char *tabexp_expand(const char *src
, void (*load_matches
)(const char *src
))
18 if (tabexp
.tails
== NULL
) {
20 if (tabexp
.tails
== NULL
) {
21 BUG_ON(tabexp
.head
!= NULL
);
24 BUG_ON(tabexp
.head
== NULL
);
28 expanded
= xstrjoin(tabexp
.head
, tabexp
.tails
[idx
++]);
29 if (!tabexp
.tails
[idx
])
36 void tabexp_reset(void)
38 free_str_array(tabexp
.tails
);