interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / tools / coccinelle / flex_alloc.cocci

13 lines · 266 bytes Raw Blame History
1@@
2expression str;
3identifier x, flexname;
4@@
5- FLEX_ALLOC_MEM(x, flexname, str, strlen(str));
6+ FLEX_ALLOC_STR(x, flexname, str);
7
8@@
9expression str;
10identifier x, ptrname;
11@@
12- FLEXPTR_ALLOC_MEM(x, ptrname, str, strlen(str));
13+ FLEXPTR_ALLOC_STR(x, ptrname, str);