scsh-0.5/scsh/cstuff.h

10 lines
308 B
C
Raw Normal View History

#include "libcig.h"
#define Alloc(type) ((type *) malloc(sizeof(type)))
#define Malloc(type,n) ((type *) malloc(sizeof(type)*(n)))
#define Free(p) (free((char *)(p)))
#define Realloc(type,p,n) ((type *) realloc(p, (n)*sizeof(type)))
/* String equality predicate. */
#define streq(a,b) (!strcmp((a),(b)))