aboutsummaryrefslogtreecommitdiff
path: root/wrapper.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* uemacs: Add xmalloc as a wrapper function for malloc.Thiago Farina2010-12-161-0/+2
| | | | | | | | | | | 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>
* uemacs: input.c: Fix mkstemp warning.Thiago Farina2010-12-141-0/+6
Fix the following warning: input.c: In function ‘getstring’: input.c:590: warning: ignoring return value of ‘mkstemp’, declared with attribute warn_unused_result This add usage.c module for die function. This also add wrapper.c module for the xmkstemp that is wrapper function around the original mkstemp function. Both module codes was largelly based on git, linux and sparse codes. Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>