Add zalloc(size_t) allocator function

Same as calloc(1, len).
This commit is contained in:
Peter Hutterer
2013-08-08 11:57:04 +10:00
committed by Kristian Høgsberg
parent 214e9ce6ff
commit b1bc4a68b0
3 changed files with 44 additions and 0 deletions
+1
View File
@@ -46,6 +46,7 @@ weston_SOURCES = \
pixman-renderer.h \
../shared/matrix.c \
../shared/matrix.h \
../shared/zalloc.h \
weston-launch.h \
weston-egl-ext.h
+1
View File
@@ -37,6 +37,7 @@ extern "C" {
#include "version.h"
#include "matrix.h"
#include "config-parser.h"
#include "zalloc.h"
#ifndef MIN
#define MIN(x,y) (((x) < (y)) ? (x) : (y))