move endofname() to libbb

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2013-02-26 00:36:53 +01:00
parent 3305c008ed
commit 1961aea305
5 changed files with 30 additions and 38 deletions

View File

@@ -494,18 +494,6 @@ static const char op_tokens[] ALIGN1 = {
};
#define ptr_to_rparen (&op_tokens[sizeof(op_tokens)-7])
const char* FAST_FUNC
endofname(const char *name)
{
if (!is_name(*name))
return name;
while (*++name) {
if (!is_in_name(*name))
break;
}
return name;
}
static arith_t FAST_FUNC
evaluate_string(arith_state_t *math_state, const char *expr)
{