Yet Another eXchange Tool 0.11.2
Loading...
Searching...
No Matches
ppm_xfuncs.h File Reference

add versions of standard API functions not returning on error More...

#include <stdio.h>
#include <stdlib.h>
#include "core/symprefix.h"
Include dependency graph for ppm_xfuncs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define xcalloc(nmemb, size)
 
#define xmalloc(size)
 
#define xrealloc(ptr, size)
 
#define xfopen(path, mode)
 
#define xfclose(fp)
 
#define xfputc(c, stream)
 

Functions

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)
 
int SymPrefix xfputc (int c, FILE *stream, const char *source, int line)
 

Detailed Description

add versions of standard API functions not returning on error

Version
1.0
Author
Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Definition in file ppm_xfuncs.h.

Macro Definition Documentation

◆ xcalloc

#define xcalloc ( nmemb,
size )
Value:
SymPrefix(xcalloc)((nmemb), (size), __FILE__, __LINE__)
#define xcalloc(nmemb, size)
Definition ppm_xfuncs.h:68
#define SymPrefix(symbol)
Definition symprefix.h:53

Definition at line 68 of file ppm_xfuncs.h.

◆ xfclose

#define xfclose ( fp)
Value:
SymPrefix(xfclose)(fp, __FILE__, __LINE__)
#define xfclose(fp)
Definition ppm_xfuncs.h:83

Definition at line 83 of file ppm_xfuncs.h.

◆ xfopen

#define xfopen ( path,
mode )
Value:
SymPrefix(xfopen)(path, mode, __FILE__, __LINE__)
#define xfopen(path, mode)
Definition ppm_xfuncs.h:78

Definition at line 78 of file ppm_xfuncs.h.

◆ xfputc

#define xfputc ( c,
stream )
Value:
SymPrefix(xfputc)((c),(stream), __FILE__, __LINE__)
#define xfputc(c, stream)
Definition ppm_xfuncs.h:88

Definition at line 88 of file ppm_xfuncs.h.

◆ xmalloc

◆ xrealloc

#define xrealloc ( ptr,
size )
Value:
SymPrefix(xrealloc)((ptr), (size), __FILE__, __LINE__)
#define xrealloc(ptr, size)
Definition ppm_xfuncs.h:71
Examples
test_exchanger_parallel.c, and test_idxstripes.c.

Definition at line 71 of file ppm_xfuncs.h.

Function Documentation

◆ xcalloc()

void *SymPrefix xcalloc ( size_t nmemb,
size_t size,
const char * source,
int line )

Definition at line 55 of file xmalloc.c.

◆ xfclose()

void SymPrefix xfclose ( FILE * fp,
const char * source,
int line )

Definition at line 64 of file xstdio.c.

◆ xfopen()

FILE *SymPrefix xfopen ( const char * path,
const char * mode,
const char * source,
int line )

Definition at line 54 of file xstdio.c.

◆ xfputc()

int SymPrefix xfputc ( int c,
FILE * stream,
const char * source,
int line )

Definition at line 72 of file xstdio.c.

◆ xmalloc()

void *SymPrefix xmalloc ( size_t size,
const char * source,
int line )

Definition at line 67 of file xmalloc.c.

◆ xrealloc()

void *SymPrefix xrealloc ( void * ptr,
size_t size,
const char * source,
int line )

Definition at line 79 of file xmalloc.c.