1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-11-17 18:16:22 -05:00
uemacs/wrapper.h
Thiago Farina 6e4aec520e uemacs: Add xmalloc as a wrapper function for malloc.
xmalloc checks the returned pointer and dies if it failed to allocate
the memory.

Use this new function in window.c.
More places will be converted to use xmalloc latter.

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-12-16 08:33:10 -08:00

9 lines
138 B
C

#ifndef WRAPPER_H_
#define WRAPPER_H_
extern int xmkstemp(char *template);
extern void *xmalloc(size_t size);
#endif /* WRAPPER_H_ */