=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/varmodifiers.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- src/usr.bin/make/varmodifiers.c 2015/08/20 22:32:41 1.42 +++ src/usr.bin/make/varmodifiers.c 2015/11/15 06:19:22 1.43 @@ -1,4 +1,4 @@ -/* $OpenBSD: varmodifiers.c,v 1.42 2015/08/20 22:32:41 deraadt Exp $ */ +/* $OpenBSD: varmodifiers.c,v 1.43 2015/11/15 06:19:22 daniel Exp $ */ /* $NetBSD: var.c,v 1.18 1997/03/18 19:24:46 christos Exp $ */ /* @@ -67,9 +67,7 @@ #include #include -#ifndef MAKE_BOOTSTRAP #include -#endif #include #include #include @@ -127,7 +125,6 @@ static bool VarLoop(struct Name *, bool, Buffer, void *); -#ifndef MAKE_BOOTSTRAP static void VarREError(int, regex_t *, const char *); static bool VarRESubstitute(struct Name *, bool, Buffer, void *); static char *do_regex(const char *, const struct Name *, void *); @@ -139,7 +136,6 @@ char *replace; int flags; } VarREPattern; -#endif static bool VarSubstitute(struct Name *, bool, Buffer, void *); static char *VarGetPattern(SymTable *, int, const char **, int, int, @@ -190,9 +186,7 @@ match_mod = {false, get_stringarg, NULL, VarMatch, free_stringarg}, nomatch_mod = {false, get_stringarg, NULL, VarNoMatch, free_stringarg}, subst_mod = {false, get_spatternarg, NULL, VarSubstitute, free_patternarg}, -#ifndef MAKE_BOOTSTRAP resubst_mod = {false, get_patternarg, do_regex, NULL, free_patternarg}, -#endif quote_mod = {false, check_quote, VarQuote, NULL , free}, tail_mod = {false, check_empty, NULL, VarTail, NULL}, head_mod = {false, check_empty, NULL, VarHead, NULL}, @@ -219,9 +213,7 @@ choose_mod['M'] = &match_mod; choose_mod['N'] = &nomatch_mod; choose_mod['S'] = &subst_mod; -#ifndef MAKE_BOOTSTRAP choose_mod['C'] = &resubst_mod; -#endif choose_mod['Q'] = "e_mod; choose_mod['T'] = &tail_mod; choose_mod['H'] = &head_mod; @@ -799,7 +791,6 @@ return true; } -#ifndef MAKE_BOOTSTRAP /*- *----------------------------------------------------------------------- * VarREError -- @@ -942,7 +933,6 @@ } return addSpace||added; } -#endif /*- *----------------------------------------------------------------------- @@ -1396,7 +1386,6 @@ free(vp); } -#ifndef MAKE_BOOTSTRAP static char * do_regex(const char *s, const struct Name *n UNUSED, void *arg) { @@ -1423,7 +1412,6 @@ free(p2.matches); return result; } -#endif char * VarModifiers_Apply(char *str, const struct Name *name, SymTable *ctxt,