From 0afbbf8595b6035a5a930399d20320d2e2852d72 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Thu, 24 Sep 2009 02:41:44 +0000 Subject: - Rework secondary expansion so we only defer it if there's a possibility it might be needed: for most situations we parse prereqs immediately as we used to. Reduces memory usage. - Fixes Savannah bug #18622. --- dep.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'dep.h') diff --git a/dep.h b/dep.h index 67dac33..eda0211 100644 --- a/dep.h +++ b/dep.h @@ -61,11 +61,14 @@ struct nameseq #define PARSEFS_EXISTS (0x0004) #define PARSEFS_NOCACHE (0x0008) +#define PARSE_FILE_SEQ(_s,_t,_c,_p,_f) \ + (_t *)parse_file_seq ((_s),sizeof (_t),(_c),(_p),(_f)) + #ifdef VMS -struct nameseq *parse_file_seq (); +void *parse_file_seq (); #else -struct nameseq *parse_file_seq (char **stringp, unsigned int size, - int stopchar, const char *prefix, int flags); +void *parse_file_seq (char **stringp, unsigned int size, + int stopchar, const char *prefix, int flags); #endif char *tilde_expand (const char *name); -- cgit v1.2.3