From fe82cac0ca8648ccbbe783b5c3573b4aeac2e96b Mon Sep 17 00:00:00 2001 From: espie Date: Thu, 9 Jun 2022 13:13:14 +0000 Subject: [PATCH] point developers to the other place where the remaining flags values are defined (nice gotcha when you come back to the code after a few months). --- usr.bin/make/var.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.bin/make/var.c b/usr.bin/make/var.c index 1408926360c..906f8855c09 100644 --- a/usr.bin/make/var.c +++ b/usr.bin/make/var.c @@ -1,4 +1,4 @@ -/* $OpenBSD: var.c,v 1.103 2019/12/22 09:26:23 espie Exp $ */ +/* $OpenBSD: var.c,v 1.104 2022/06/09 13:13:14 espie Exp $ */ /* $NetBSD: var.c,v 1.18 1997/03/18 19:24:46 christos Exp $ */ /* @@ -222,7 +222,10 @@ typedef struct Var_ { #define VAR_FROM_ENV 8 /* Special source: environment */ #define VAR_SEEN_ENV 16 /* No need to go look up environment again */ #define VAR_IS_SHELL 32 /* Magic behavior */ - +/* XXX there are also some flag values which are part of the visible API + * and thus defined inside var.h, don't forget to look there if you want + * to define some new flags ! + */ #define POISONS (POISON_NORMAL | POISON_EMPTY | POISON_NOT_DEFINED) /* Defined in var.h */ char name[1]; /* the variable's name */ -- 2.20.1