Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 115285
Collapse All | Expand All

(-)file_not_specified_in_diff (-2 / +3 lines)
Line  Link Here
0
-- util.h.orig 2006-02-09 00:52:12.000000000 +0100
0
++ util.h      2006-02-09 00:51:27.000000000 +0100
Lines 48-54 Link Here
48
/* alloc_struct S P
48
/* alloc_struct S P
49
 * Make P point to a new struct S, initialised as if in static storage (like
49
 * Make P point to a new struct S, initialised as if in static storage (like
50
 * = {0}). */
50
 * = {0}). */
51
#define alloc_struct(S, p)  do { struct S as__z = {0}; p = xmalloc(sizeof *p); *p = as__z; } while (0)
51
//#define alloc_struct(S, p)  do { struct S as__z = {0}; p = xmalloc(sizeof *p); *p = as__z; } while (0)
52
#define alloc_struct(S, p)  do { p = xmalloc(sizeof *p); memset(p,0,sizeof(struct S)); } while (0)
52
/* reallocating strncat. */
53
/* reallocating strncat. */
53
char *xstrncat(char *pfx, const char *sfx, const size_t n);
54
char *xstrncat(char *pfx, const char *sfx, const size_t n);

Return to bug 115285