From 09cec3aa3d709fbc735df74b2a318c1293e2aa22 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 6 May 2011 12:11:50 +0000 Subject: [PATCH] Commited definition of Xorriso_alloc_meM which is needed since 30 revisions --- xorriso/sfile.h | 14 ++++++++++++++ xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/xorriso/sfile.h b/xorriso/sfile.h index 67a71e14..a3bbfd0e 100644 --- a/xorriso/sfile.h +++ b/xorriso/sfile.h @@ -16,6 +16,20 @@ #define Smem_malloC malloc #define Smem_freE free +#define Xorriso_alloc_meM(pt,typ,anz) { \ + pt= (typ *) calloc(1, (anz)*sizeof(typ)); \ + if(pt == NULL) { \ + Xorriso_no_malloc_memory(xorriso, NULL, 0); \ + ret= -1; \ + goto ex; \ + } } + +#define Xorriso_free_meM(pt) { \ + if(pt != NULL) \ + free(pt); \ + } + + #define SfileadrL 4096 diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 1d33e267..ca789513 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2011.05.06.120834" +#define Xorriso_timestamP "2011.05.06.121218"