| 473 | } |
| 474 | |
| 475 | static int find_next_word_end(const char *line, int curpos, int max) |
| 476 | { |
| 477 | if (curpos >= max) return max; |
| 478 | |
| 479 | /* Skip to next word */ |
| 480 | while (curpos < max && (line[curpos] == ' ' || line[curpos] == '\t')) |
| 481 | curpos++; |
| 482 | |
| 483 | /* Find word end */ |
| 484 | while (curpos < max && !(line[curpos] == ' ' || line[curpos] == '\t')) |
| 485 | curpos++; |
| 486 | |
| 487 | return curpos; |
| 488 | } |
| 489 | #endif /* defined(FINSH_USING_WORD_OPERATION) */ |
| 490 | |
| 491 | #ifdef RT_USING_HOOK |