diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-02-26 00:36:53 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-02-26 00:36:53 +0100 |
commit | 1961aea305e258ba7ab3910d084451220f55ed44 (patch) | |
tree | bd889c8e596051c187b93af9c50508c6009f2683 /shell/math.c | |
parent | 3305c008ed6084f58b59dde5198ae92e3a458e46 (diff) | |
download | busybox-w32-1961aea305e258ba7ab3910d084451220f55ed44.tar.gz busybox-w32-1961aea305e258ba7ab3910d084451220f55ed44.tar.bz2 busybox-w32-1961aea305e258ba7ab3910d084451220f55ed44.zip |
move endofname() to libbb
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/math.c')
-rw-r--r-- | shell/math.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/shell/math.c b/shell/math.c index 15c003965..3da151137 100644 --- a/shell/math.c +++ b/shell/math.c | |||
@@ -494,18 +494,6 @@ static const char op_tokens[] ALIGN1 = { | |||
494 | }; | 494 | }; |
495 | #define ptr_to_rparen (&op_tokens[sizeof(op_tokens)-7]) | 495 | #define ptr_to_rparen (&op_tokens[sizeof(op_tokens)-7]) |
496 | 496 | ||
497 | const char* FAST_FUNC | ||
498 | endofname(const char *name) | ||
499 | { | ||
500 | if (!is_name(*name)) | ||
501 | return name; | ||
502 | while (*++name) { | ||
503 | if (!is_in_name(*name)) | ||
504 | break; | ||
505 | } | ||
506 | return name; | ||
507 | } | ||
508 | |||
509 | static arith_t FAST_FUNC | 497 | static arith_t FAST_FUNC |
510 | evaluate_string(arith_state_t *math_state, const char *expr) | 498 | evaluate_string(arith_state_t *math_state, const char *expr) |
511 | { | 499 | { |