ScalES-PPM
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"

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

Macro Definition Documentation

◆ xcalloc

#define xcalloc ( nmemb,
size )
Value:
SymPrefix(xcalloc)((nmemb), (size), __FILE__, __LINE__)

◆ xfclose

#define xfclose ( fp)
Value:
SymPrefix(xfclose)(fp, __FILE__, __LINE__)

◆ xfopen

#define xfopen ( path,
mode )
Value:
SymPrefix(xfopen)(path, mode, __FILE__, __LINE__)

◆ xfputc

#define xfputc ( c,
stream )
Value:
SymPrefix(xfputc)((c),(stream), __FILE__, __LINE__)

◆ xmalloc

#define xmalloc ( size)
Value:
SymPrefix(xmalloc)((size), __FILE__, __LINE__)

◆ xrealloc

#define xrealloc ( ptr,
size )
Value:
SymPrefix(xrealloc)((ptr), (size), __FILE__, __LINE__)

Das diesem Bericht zugrundeliegende Vorhaben wurde mit Mitteln des Bundesministeriums für Bildung, und Forschung unter dem Förderkennzeichen 01IH08004E gefördert. Die Verantwortung für den Inhalt dieser Veröffentlichung liegt beim Autor.