Changeset 442 for EcnlProtoTool/trunk/ntshell/ntshell/core/ntshell.c
- Timestamp:
- Jul 13, 2020, 8:07:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/ntshell/ntshell/core/ntshell.c
r331 r442 108 108 * @param HANDLE A pointer of the handle. 109 109 */ 110 #define PROMPT_WRITE(HANDLE) SERIAL_WRITE((HANDLE), (HANDLE)->prompt, ntlibc_strlen((HANDLE)->prompt))110 #define PROMPT_WRITE(HANDLE) SERIAL_WRITE((HANDLE), (HANDLE)->prompt, strlen((HANDLE)->prompt)) 111 111 112 112 /** … … 115 115 * @param HANDLE A pointer of the handle. 116 116 */ 117 #define PROMPT_NEWLINE(HANDLE) SERIAL_WRITE((HANDLE), NTSHELL_PROMPT_NEWLINE, ntlibc_strlen(NTSHELL_PROMPT_NEWLINE))117 #define PROMPT_NEWLINE(HANDLE) SERIAL_WRITE((HANDLE), NTSHELL_PROMPT_NEWLINE, strlen(NTSHELL_PROMPT_NEWLINE)) 118 118 119 119 /** … … 400 400 * Found the suggestion. 401 401 */ 402 int n = ntlibc_strlen((const char *)buf);402 int n = strlen((const char *)buf); 403 403 VTSEND_ERASE_LINE(ntshell); 404 404 VTSEND_CURSOR_HEAD(ntshell); … … 430 430 * Found the suggestion. 431 431 */ 432 int n = ntlibc_strlen((const char *)buf);432 int n = strlen((const char *)buf); 433 433 VTSEND_ERASE_LINE(ntshell); 434 434 VTSEND_CURSOR_HEAD(ntshell); … … 442 442 * Recall the previous input text string. 443 443 */ 444 int n = ntlibc_strlen(SUGGEST_SOURCE(ntshell));444 int n = strlen(SUGGEST_SOURCE(ntshell)); 445 445 VTSEND_ERASE_LINE(ntshell); 446 446 VTSEND_CURSOR_HEAD(ntshell); … … 485 485 UNUSED_VARIABLE(ch); 486 486 text_editor_get_text(GET_EDITOR(ntshell), buf, sizeof(buf)); 487 len = ntlibc_strlen((const char *)buf);487 len = strlen((const char *)buf); 488 488 VTSEND_CURSOR_HEAD(ntshell); 489 489 PROMPT_WRITE(ntshell); … … 607 607 p->func_callback = func_callback; 608 608 p->extobj = extobj; 609 ntlibc_strcpy(p->prompt, NTSHELL_PROMPT_DEFAULT);609 strcpy(p->prompt, NTSHELL_PROMPT_DEFAULT); 610 610 611 611 p->vtrecv.user_data = p; … … 667 667 } 668 668 669 ntlibc_strcpy(p->prompt, prompt);669 strcpy(p->prompt, prompt); 670 670 } 671 671
Note:
See TracChangeset
for help on using the changeset viewer.