diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-07-24 18:52:48 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-07-24 18:52:48 +0000 |
commit | 98982aacf0aa7545ab1423f476775a35cb6b63a1 (patch) | |
tree | 09e35dfccd9c5b3a0df3abdf9406f6480f7b15b0 /usr.bin/make/var.h | |
parent | ee4d80f5e59727a3f7a3986c1ecfce78aaac6ac9 (diff) |
change Var_ParseSkip API to increment the position instead of returning a
length, simplifies code.
(warns a bit, symptom of some further issues to fix).
okay millert@
Diffstat (limited to 'usr.bin/make/var.h')
-rw-r--r-- | usr.bin/make/var.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/make/var.h b/usr.bin/make/var.h index c53c777feda..8eab4551a1a 100644 --- a/usr.bin/make/var.h +++ b/usr.bin/make/var.h @@ -101,11 +101,10 @@ extern char *Var_Parse(const char *, SymTable *, bool, size_t *, * callers who don't care don't need to. */ extern char var_Error[]; -/* length = Var_ParseSkip(varspec, ctxt, &ok); - * Parses a variable specification and returns the specification - * length. Fills ok if the varspec is correct, that pointer can be - * NULL if this information is not needed. */ -extern size_t Var_ParseSkip(const char *, SymTable *, bool *); +/* ok = Var_ParseSkip(&varspec, ctxt, &ok); + * Parses a variable specification and returns true if the varspec + * is correct. Advances pointer past specification. */ +extern bool Var_ParseSkip(const char **, SymTable *); /* ok = Var_ParseBuffer(buf, varspec, ctxt, undef_is_bad, &length); * Similar to Var_Parse, except the value is directly appended to |