summaryrefslogtreecommitdiff
path: root/rule.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-09-16 17:07:01 +0000
committerPaul Smith <psmith@gnu.org>2009-09-16 17:07:01 +0000
commit8f30b68871bde8687c7fcff8bac66e2b5765129e (patch)
tree78e7e64f0c47dff023bebe15ee57b85f8db6a826 /rule.c
parent5abe47762071f024409f7fd16c9cb76b31833379 (diff)
downloadgunmake-8f30b68871bde8687c7fcff8bac66e2b5765129e.tar.gz
- Add xcalloc() and call it
- Fix memory errors found by valgrind - Remove multi_glob() and empower parse_file_seq() to do its job: the goal here is to remove the confusing reverse/re-reverse we do on the file lists: needed for future fixes. - Add a prefix arg to parse_file_seq() - Make concat() variadic so it can take arbitrary #'s of strings
Diffstat (limited to 'rule.c')
-rw-r--r--rule.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/rule.c b/rule.c
index 652c7a2..64a1a2d 100644
--- a/rule.c
+++ b/rule.c
@@ -376,9 +376,8 @@ install_pattern_rule (struct pspec *p, int terminal)
++r->suffixes[0];
ptr = p->dep;
- r->deps = (struct dep *) multi_glob (parse_file_seq (&ptr, '\0',
- sizeof (struct dep), 1),
- sizeof (struct dep), 0);
+ r->deps = (struct dep *) parse_file_seq (&ptr, sizeof (struct dep), '\0',
+ NULL, 0);
if (new_pattern_rule (r, 0))
{