Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=yaxmenu.git;a=commitdiff;h=5dd26a0f13cb8817fe2664a9dcdbdad193345da0
commit 5dd26a0f13cb8817fe2664a9dcdbdad193345da0 Author: James Buren <r...@frugalware.org> Date: Tue Dec 1 20:59:04 2009 -0600 utility.h * initial draft diff --git a/src/utility.h b/src/utility.h new file mode 100644 index 0000000..4934f92 --- /dev/null +++ b/src/utility.h @@ -0,0 +1,11 @@ +#ifndef _utility_header_ +#define _utility_header_ +#include "includes.h" + +#define eprintf(...) fprintf(stderr,__VA_ARGS__) +#define xnew(T,N) (T*)xmalloc(sizeof(T)*(N)) +#define xrenew(P,T,N) (T*)xrealloc(P,sizeof(T)*(N)) + +void *xmalloc(size_t); +void *xrealloc(void *,size_t); +#endif _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git