[BACK]Return to expandchildren.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

File: [local] / src / usr.bin / make / expandchildren.h (download)

Revision 1.1, Mon Jan 13 14:05:21 2020 UTC (4 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, HEAD

move a large chunk of suff.c into its own file (independent functions which
are not really directly related to suffix handling), so that I can eventually
understand how this whole thing works.

#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