add versions of standard API functions not returning on error
More...
#include <stdio.h>
#include <stdlib.h>
#include "ppm/symprefix.h"
Go to the source code of this file.
|
| #define | xcalloc(nmemb, size) symprefix(xcalloc)((nmemb), (size), __FILE__, __LINE__) |
| |
| #define | xmalloc(size) symprefix(xmalloc)((size), __FILE__, __LINE__) |
| |
| #define | xrealloc(ptr, size) symprefix(xrealloc)((ptr), (size), __FILE__, __LINE__) |
| |
| #define | xfopen(path, mode) symprefix(xfopen)(path, mode, __FILE__, __LINE__) |
| |
| #define | xfclose(fp) symprefix(xfclose)(fp, __FILE__, __LINE__) |
| |
|
| void *symprefix | xcalloc (size_t nmemb, size_t size, const char *source, int line) |
| |
| void *symprefix | xmalloc (size_t size, const char *source, int line) |
| |
| void *symprefix | xrealloc (void *ptr, size_t size, const char *source, int line) |
| |
| FILE *symprefix | xfopen (const char *path, const char *mode, const char *source, int line) |
| |
| void symprefix | xfclose (FILE *fp, const char *source, int line) |
| |
add versions of standard API functions not returning on error
- Copyright
- (C) 2012 Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de
- Version
- 1.0
- Author
- Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de
Definition in file ppm_xfuncs.h.
◆ xcalloc
| #define xcalloc |
( |
| nmemb, |
|
|
| size ) symprefix(xcalloc)((nmemb), (size), __FILE__, __LINE__) |
◆ xfclose
| #define xfclose |
( |
| fp | ) |
symprefix(xfclose)(fp, __FILE__, __LINE__) |
◆ xfopen
| #define xfopen |
( |
| path, |
|
|
| mode ) symprefix(xfopen)(path, mode, __FILE__, __LINE__) |
◆ xmalloc
| #define xmalloc |
( |
| size | ) |
symprefix(xmalloc)((size), __FILE__, __LINE__) |
◆ xrealloc
| #define xrealloc |
( |
| ptr, |
|
|
| size ) symprefix(xrealloc)((ptr), (size), __FILE__, __LINE__) |
◆ xcalloc()
| void *symprefix xcalloc |
( |
size_t | nmemb, |
|
|
size_t | size, |
|
|
const char * | source, |
|
|
int | line ) |
◆ xfclose()
| void symprefix xfclose |
( |
FILE * | fp, |
|
|
const char * | source, |
|
|
int | line ) |
◆ xfopen()
| FILE *symprefix xfopen |
( |
const char * | path, |
|
|
const char * | mode, |
|
|
const char * | source, |
|
|
int | line ) |
◆ xmalloc()
| void *symprefix xmalloc |
( |
size_t | size, |
|
|
const char * | source, |
|
|
int | line ) |
◆ xrealloc()
| void *symprefix xrealloc |
( |
void * | ptr, |
|
|
size_t | size, |
|
|
const char * | source, |
|
|
int | line ) |