Home
last modified time | relevance | path

Searched refs:fail_on_null (Results 1 – 6 of 6) sorted by relevance

/third_party/weston/shared/
Dxalloc.h40 fail_on_null(void *p, size_t size, char *file, int32_t line);
42 #define xmalloc(s) (fail_on_null(malloc(s), (s), __FILE__, __LINE__))
43 #define xzalloc(s) (fail_on_null(zalloc(s), (s), __FILE__, __LINE__))
44 #define xstrdup(s) (fail_on_null(strdup(s), 0, __FILE__, __LINE__))
45 #define xrealloc(p, s) (fail_on_null(realloc(p, s), (s), __FILE__, __LINE__))
Dxalloc.c41 fail_on_null(void *p, size_t size, char *file, int32_t line) in fail_on_null() function
/third_party/wayland_standard/src/
Dscanner.c259 fail_on_null(void *p) in fail_on_null() function
278 return fail_on_null(zalloc(s)); in xzalloc()
284 return fail_on_null(strdup(s)); in xstrdup()
1516 p = fail_on_null(wl_array_add(types, sizeof *p)); in emit_types_forward_declarations()
1621 p = fail_on_null(wl_array_add(&types, sizeof *p)); in emit_header()
/third_party/mesa3d/src/broadcom/cle/
Dv3d_decoder.c157 fail_on_null(void *p) in fail_on_null() function
170 return fail_on_null(strdup(s)); in xstrdup()
182 return fail_on_null(zalloc(s)); in xzalloc()
/third_party/weston/clients/
Dwindow.c5276 fail_on_null(window->xdg_surface, 0, __FILE__, __LINE__); in window_create()
5283 fail_on_null(window->xdg_toplevel, 0, __FILE__, __LINE__); in window_create()
5488 fail_on_null(menu->frame, 0, __FILE__, __LINE__); in create_menu()
5522 fail_on_null(positioner, 0, __FILE__, __LINE__); in create_simple_positioner()
5567 fail_on_null(window->xdg_surface, 0, __FILE__, __LINE__); in window_show_menu()
5580 fail_on_null(window->xdg_popup, 0, __FILE__, __LINE__); in window_show_menu()
/third_party/weston/ivi-shell/
Dhmi-controller.c159 return fail_on_null(calloc(1, size), size, file, line); in mem_alloc()