[PATCH] terminal: Convert all *alloc's to x*alloc's.
Pekka Paalanen
ppaalanen at gmail.com
Tue Apr 29 05:43:35 PDT 2014
On Tue, 29 Apr 2014 14:35:21 +0200
Michael Schellenberger Costa <schellenberger at inb.uni-luebeck.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> i might be dumb again, but as zalloc is a one line function, why not
> just add the check to zalloc instead of searching for all uses of it?
Function naming convention. We seems to use x* for "check or exit".
> Would there be any use case where one would not check for out of memory?
If zalloc() ends up unused, it could be dropped. Server code OTOH
probably wouldn't use x* functions, but check explicitly.
Thanks
pq
More information about the wayland-devel
mailing list