Searched refs:sym_match_arr (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/scripts/kconfig/
H A Dsymbol.c995 struct sym_match *sym_match_arr = NULL; sym_re_search() local
1015 tmp = realloc(sym_match_arr, size * sizeof(struct sym_match)); for_all_symbols()
1018 sym_match_arr = tmp; for_all_symbols()
1024 sym_match_arr[cnt].so = match[0].rm_so; for_all_symbols()
1025 sym_match_arr[cnt].eo = match[0].rm_eo; for_all_symbols()
1026 sym_match_arr[cnt++].sym = sym; for_all_symbols()
1028 if (sym_match_arr) {
1029 qsort(sym_match_arr, cnt, sizeof(struct sym_match), sym_rel_comp);
1034 sym_arr[i] = sym_match_arr[i].sym;
1038 /* sym_match_arr can be NULL if no match, but free(NULL) is OK */
1039 free(sym_match_arr);

Completed in 189 milliseconds