xserver/mi
Enrico Weigelt, metux IT consult e5f15d5732 (1823) mi: 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-05-22 17:34:59 +02:00
..
meson.build Revert "mi: drop now obsolete mioverlay.c" 2025-02-27 11:53:54 +00:00
mi.h mi: unexport miXYToWindow() 2025-02-06 16:45:20 +02:00
mi_priv.h (1834) mi: make SetInstalledmiColormap() a static inline function 2025-05-22 17:34:58 +02:00
miarc.c (1823) mi: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
micmap.c (1823) mi: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
micmap.h (1832) mi: micmap: drop unused miInitVisualsProcPtr type 2025-05-22 17:34:58 +02:00
micoord.h
micopy.c (1823) mi: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
midash.c
midispcur.c (!1714) mi: use CloseScreen hook 2025-05-22 17:34:46 +02:00
mieq.c os: move BUG_*() macros to own private header 2025-02-17 19:32:48 +00:00
miexpose.c (1823) mi: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
mifillarc.c (!1909) mi: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
mifillarc.h
mifpoly.h
migc.c mi: use dixDestroyPixmap() instead of direct driver call 2025-02-12 17:48:30 +01:00
migc.h
miglblt.c (1823) mi: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
miinitext.c (!1944) treewide: drop COMPOSITE symbol 2025-05-22 17:34:47 +02:00
miinitext.h
miline.h mi: miline.h: drop DEFAULTZEROLINEBIAS from public header 2025-02-06 22:18:12 +00:00
mioverlay.c (!1909) mi: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
mioverlay.h Revert "mi: drop obsolete miInitOverlay()" 2025-02-27 11:53:54 +00:00
mipointer.c (!1909) mi: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
mipointer.h mi: (re)export and document miPointerInitialize() 2025-02-13 23:53:39 +00:00
mipointer_priv.h mi: (re)export and document miPointerInitialize() 2025-02-13 23:53:39 +00:00
mipointrst.h
mipoly.c (1823) mi: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
mipoly.h (!1980) mi: NULL-protect miFillGeneralPoly() 2025-05-22 17:34:39 +02:00
mipolypnt.c (1823) mi: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
mipolyrect.c (1823) mi: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
mipolyseg.c
mipolytext.c
mipushpxl.c (!1909) mi: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
miscanfill.h
miscrinit.c (!1909) mi: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
misprite.c (1841) dix: move ColormapRec declaration out of public header 2025-05-22 17:34:58 +02:00
misprite.h
mistruct.h
mivalidate.h
mivaltree.c (!1944) treewide: drop COMPOSITE symbol 2025-05-22 17:34:47 +02:00
miwideline.c (1823) mi: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
miwideline.h
miwindow.c (!1944) treewide: drop COMPOSITE symbol 2025-05-22 17:34:47 +02:00
mizerarc.c (1823) mi: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
mizerarc.h
mizerclip.c mi: miline.h: unexport only locally used macros 2025-02-06 22:18:11 +00:00
mizerline.c (1823) mi: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00