git
[Ported from github.com/git/git] Sync with Git 2.56.1
Brought by drakestapleton
git / tools / coccinelle / xcalloc.cocci
| 1 | @@ |
| 2 | type T; |
| 3 | T *ptr; |
| 4 | expression n; |
| 5 | @@ |
| 6 | xcalloc( |
| 7 | + n, |
| 8 | \( sizeof(T) \| sizeof(*ptr) \) |
| 9 | - , n |
| 10 | ) |
[Ported from github.com/git/git] Sync with Git 2.56.1
Brought by drakestapleton
git / tools / coccinelle / xcalloc.cocci
| 1 | @@ |
| 2 | type T; |
| 3 | T *ptr; |
| 4 | expression n; |
| 5 | @@ |
| 6 | xcalloc( |
| 7 | + n, |
| 8 | \( sizeof(T) \| sizeof(*ptr) \) |
| 9 | - , n |
| 10 | ) |