xserver/miext/damage
Enrico Weigelt, metux IT consult 9a1c502865 miext: replace xallocarray() by calloc()
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>
2025-06-12 17:21:43 +02:00
..
damage.c miext: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00
damage.h damage: Remove "post-rendering" hooks 2013-09-10 14:28:53 -04:00
damagestr.h damage: use PixmapDestroy hook 2025-06-12 16:46:39 +02:00
meson.build meson: hide C API if Xorg is disabled (like autotools) 2021-03-11 00:22:36 +00:00