diff options
author | 2020-01-13 14:05:21 +0000 | |
---|---|---|
committer | 2020-01-13 14:05:21 +0000 | |
commit | 483cbdb0ce89a7af749edc2e6b955db8e65dd38b (patch) | |
tree | 6f9016f4d054527484b097813cee002902b09f8a /usr.bin/make/suff.h | |
parent | move documentation around to be more specific to suff.c (diff) | |
download | wireguard-openbsd-483cbdb0ce89a7af749edc2e6b955db8e65dd38b.tar.xz wireguard-openbsd-483cbdb0ce89a7af749edc2e6b955db8e65dd38b.zip |
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.
Diffstat (limited to 'usr.bin/make/suff.h')
-rw-r--r-- | usr.bin/make/suff.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/usr.bin/make/suff.h b/usr.bin/make/suff.h index 41f423e6db6..f0ae8b3939a 100644 --- a/usr.bin/make/suff.h +++ b/usr.bin/make/suff.h @@ -1,6 +1,6 @@ #ifndef SUFF_H #define SUFF_H -/* $OpenBSD: suff.h,v 1.11 2020/01/13 14:03:12 espie Exp $ */ +/* $OpenBSD: suff.h,v 1.12 2020/01/13 14:05:21 espie Exp $ */ /* * Copyright (c) 2001-2019 Marc Espie. @@ -59,14 +59,8 @@ extern Lst find_suffix_path(GNode *); /* Suff_PrintAll(): * displays all suffix information. */ extern void Suff_PrintAll(void); -/* XXX internal to suff.c, only the following macro is used elsewhere. */ -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. +/* path = find_best_path(name): + * find the best path for the name, according to known suffixes. */ -#define expand_all_children(gn) \ - expand_children_from(gn, Lst_First(&(gn)->children)) - +extern Lst find_best_path(const char *name); #endif |