summaryrefslogtreecommitdiff
path: root/dep.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-09-24 02:41:44 +0000
committerPaul Smith <psmith@gnu.org>2009-09-24 02:41:44 +0000
commit0afbbf8595b6035a5a930399d20320d2e2852d72 (patch)
tree6c74d485e4d57b2bf41bb5d6afaac1b4569dd554 /dep.h
parent3cc351decdd7d53fea0c730fd919163f20706762 (diff)
downloadgunmake-0afbbf8595b6035a5a930399d20320d2e2852d72.tar.gz
- 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.
Diffstat (limited to 'dep.h')
-rw-r--r--dep.h9
1 files changed, 6 insertions, 3 deletions
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);