Commited definition of Xorriso_alloc_meM which is needed since 30 revisions
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user