Only key difference that calloc(), in contrast to rellocarray(),
is zero-initializing. The overhead is hard to measure on today's
machines, and it's safer programming practise to always allocate
zero-initialized, so one can't forget to do it explicitly.
Cocci rule:
@@
expression COUNT;
expression LEN;
@@
- xallocarray(COUNT,LEN)
+ calloc(COUNT,LEN)
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
|
||
|---|---|---|
| .. | ||
| exa.c | ||
| exa.h | ||
| exa_accel.c | ||
| exa_classic.c | ||
| exa_driver.c | ||
| exa_glyphs.c | ||
| exa_migration_classic.c | ||
| exa_migration_mixed.c | ||
| exa_mixed.c | ||
| exa_offscreen.c | ||
| exa_priv.h | ||
| exa_render.c | ||
| exa_unaccel.c | ||
| meson.build | ||