summaryrefslogtreecommitdiff
path: root/usr.bin/make/expandchildren.h
blob: 22ac91e853b7f067ee0422bf6b109adde7e67849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef EXPANDCHILDREN_H
#define EXPANDCHILDREN_H
/*	$OpenBSD: expandchildren.h,v 1.1 2020/01/13 14:05:21 espie Exp $ */

extern void LinkParent(GNode *, GNode *);

/* partial expansion of children. */
extern void expand_children_from(GNode *, LstNode);
/* expand_all_children(gn):
 *	figure out all variable/wildcards expansions in gn.
 *	TODO pretty sure this is independent from the main suff module.
 */
#define expand_all_children(gn)	\
    expand_children_from(gn, Lst_First(&(gn)->children))

#endif