clients & tests: Unify multiple definitions of x*alloc and related functions
authorBryce Harrington <bryce@osg.samsung.com>
Wed, 16 Mar 2016 21:15:18 +0000 (14:15 -0700)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 17 Mar 2016 12:13:13 +0000 (14:13 +0200)
commite99e4bf2b9aa13baae46f2a49ff9c9ed8ca631c7
tree7a729aad4350c02a7b82f8ed7ae145d290f5a93b
parent4e221f0327cbc342d78916a62ace64368471d55b
clients & tests: Unify multiple definitions of x*alloc and related functions

Direct fail_on_null calls now produce output like:

    [weston-info] clients/weston-info.c:714: out of memory

xmalloc, et al produce output on failure like:

    [weston-info] out of memory (-1)

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
23 files changed:
Makefile.am
clients/clickdot.c
clients/cliptest.c
clients/desktop-shell.c
clients/dnd.c
clients/editor.c
clients/ivi-shell-user-interface.c
clients/keyboard.c
clients/multi-resource.c
clients/resizor.c
clients/screenshot.c
clients/subsurfaces.c
clients/terminal.c
clients/weston-info.c
clients/window.c
clients/window.h
ivi-shell/hmi-controller.c
shared/xalloc.c [new file with mode: 0644]
shared/xalloc.h [new file with mode: 0644]
tests/ivi_layout-test.c
tests/presentation-test.c
tests/weston-test-client-helper.c
tests/weston-test-client-helper.h