add QSORT
[git/git.git] / contrib / coccinelle / qsort.cocci
1 @@
2 expression base, nmemb, compar;
3 @@
4 - qsort(base, nmemb, sizeof(*base), compar);
5 + QSORT(base, nmemb, compar);
6
7 @@
8 expression base, nmemb, compar;
9 @@
10 - qsort(base, nmemb, sizeof(base[0]), compar);
11 + QSORT(base, nmemb, compar);
12
13 @@
14 type T;
15 T *base;
16 expression nmemb, compar;
17 @@
18 - qsort(base, nmemb, sizeof(T), compar);
19 + QSORT(base, nmemb, compar);