diff options
Diffstat (limited to 'alloc.c')
-rw-r--r-- | alloc.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -32,13 +32,13 @@ erealloc(void *p, ulong n) return np; } -//Image* -//eallocimage(Display *d, Rectangle r, ulong chan, int repl, ulong col) -//{ -// Image *i; -// -// i = allocimage(d, r, chan, repl, col); -// if(i == nil) -// sysfatal("allocimage: %r"); -// return i; -//} +Image* +eallocimage(Display *d, Rectangle r, ulong chan, int repl, ulong col) +{ + Image *i; + + i = allocimage(d, r, chan, repl, col); + if(i == nil) + sysfatal("allocimage: %r"); + return i; +} |