diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-07-20 12:32:46 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-07-20 12:32:46 +0000 |
commit | ef7b840a5c1d0246cab9730c06b5d8ddcd4e7423 (patch) | |
tree | 28565881ee8918da60121edc709afbbeb276e007 /usr.bin/make/varmodifiers.h | |
parent | be2d193fbcc6918214ace4c215472b9dc6965091 (diff) |
big clean-up patch:
- rename a few functions in var.c to names that make more sense.
- introduce Var_Deletei because it makes more sense.
- rewrite .for loops to use a local LoopVar construct to avoid looking up more
stuff.
- reformat var.c to near K&R
- rewrite most comments in var.c
shown to a few people. millert@ gave me his okay since it passes through
ports correctly.
Diffstat (limited to 'usr.bin/make/varmodifiers.h')
-rw-r--r-- | usr.bin/make/varmodifiers.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/varmodifiers.h b/usr.bin/make/varmodifiers.h index 590e86fa612..f64f88f172a 100644 --- a/usr.bin/make/varmodifiers.h +++ b/usr.bin/make/varmodifiers.h @@ -2,7 +2,7 @@ #define VARMODIFIERS_H /* $OpenPackages$ */ -/* $OpenBSD: varmodifiers.h,v 1.3 2001/05/23 12:34:52 espie Exp $ */ +/* $OpenBSD: varmodifiers.h,v 1.4 2007/07/20 12:32:45 espie Exp $ */ /* * Copyright (c) 1999 Marc Espie. @@ -38,9 +38,9 @@ extern void VarModifiers_Init(void); /* result = VarModifiers_Apply(val, name, ctxt, undef_is_bad, - * &should_free, modstart, endc, &length); + * &should_free, modstart, paren, &length); * Applies variable modifiers starting at modstart (including :), - * ending with character endc, to value val. + * using parenthesis paren, to value val. * Variables in spec are taken from context ctxt. * If undef_is_bad, error occurs if undefined variables are mentioned. * length is filled with the total length of the modifier spec. |