Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=yaxmenu.git;a=commitdiff;h=07ab52a53289a38d4dd99cff949fc43913a0eeb3

commit 07ab52a53289a38d4dd99cff949fc43913a0eeb3
Author: James Buren <r...@frugalware.org>
Date:   Mon Dec 7 13:23:09 2009 -0600

Revert "utility.h"

This reverts commit e6d5f29d7960b84749082cc579142157bf208e25.

diff --git a/src/utility.h b/src/utility.h
index d723c16..a03fe80 100644
--- a/src/utility.h
+++ b/src/utility.h
@@ -22,13 +22,12 @@
#define _utility_header_
#include "includes.h"

-#define eprintf(...)      fprintf(stderr,__VA_ARGS__)
-#define array_entries(A)  (sizeof(A)/sizeof(*A))
-#define xsnprintf(A,...)  snprintf((A),array_entries(A),__VA_ARGS__)
-#define xvsnprintf(A,F,V) vsnprintf((A),array_entries(A),(F),(V))
-#define xfgets(A,F)       fgets((A),array_entries(A),(F))
-#define mem_size(T,N)     (sizeof(T)*(N))
-#define xnew(T,N)         (T*)xmalloc(mem_size(T,N))
+#define eprintf(...)     fprintf(stderr,__VA_ARGS__)
+#define array_entries(A) (sizeof(A)/sizeof(*A))
+#define xsnprintf(A,...) snprintf((A),array_entries(A),__VA_ARGS__)
+#define xfgets(A,F)      fgets((A),array_entries(A),(F))
+#define mem_size(T,N)    (sizeof(T)*(N))
+#define xnew(T,N)        (T*)xmalloc(mem_size(T,N))

typedef bool (*parser_callback_t) (const char *,const char *);

@@ -36,7 +35,6 @@ void *xmalloc(size_t);
char *xstrdup(const char *);
size_t xstrclen(const char *,char);
char *xstrtrim(char *);
-FILE *xgetfile(const char *,...);
size_t xparsefile(FILE *,parser_callback_t);

static inline void xsetstr(char **dest,const char *src) {
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to