Ignore:
Timestamp:
Jan 21, 2018, 12:10:09 AM (6 years ago)
Author:
coas-nagasima
Message:

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/ntshell/ntshell/core/ntshell.c

    r321 r331  
    3333#include <string.h>
    3434#include "ntshell.h"
     35#include "core/ntlibc.h"
    3536
    3637int ntshell_exit;
     
    107108 * @param HANDLE A pointer of the handle.
    108109 */
    109 #define PROMPT_WRITE(HANDLE)            SERIAL_WRITE((HANDLE), (HANDLE)->prompt, strlen((HANDLE)->prompt))
     110#define PROMPT_WRITE(HANDLE)            SERIAL_WRITE((HANDLE), (HANDLE)->prompt, ntlibc_strlen((HANDLE)->prompt))
    110111
    111112/**
     
    114115 * @param HANDLE A pointer of the handle.
    115116 */
    116 #define PROMPT_NEWLINE(HANDLE)          SERIAL_WRITE((HANDLE), NTSHELL_PROMPT_NEWLINE, strlen(NTSHELL_PROMPT_NEWLINE))
     117#define PROMPT_NEWLINE(HANDLE)          SERIAL_WRITE((HANDLE), NTSHELL_PROMPT_NEWLINE, ntlibc_strlen(NTSHELL_PROMPT_NEWLINE))
    117118
    118119/**
     
    399400                                 * Found the suggestion.
    400401                                 */
    401                                 int n = strlen((const char *)buf);
     402                                int n = ntlibc_strlen((const char *)buf);
    402403                                VTSEND_ERASE_LINE(ntshell);
    403404                                VTSEND_CURSOR_HEAD(ntshell);
     
    429430                         * Found the suggestion.
    430431                         */
    431                         int n = strlen((const char *)buf);
     432                        int n = ntlibc_strlen((const char *)buf);
    432433                        VTSEND_ERASE_LINE(ntshell);
    433434                        VTSEND_CURSOR_HEAD(ntshell);
     
    441442                         * Recall the previous input text string.
    442443                         */
    443                         int n = strlen(SUGGEST_SOURCE(ntshell));
     444                        int n = ntlibc_strlen(SUGGEST_SOURCE(ntshell));
    444445                        VTSEND_ERASE_LINE(ntshell);
    445446                        VTSEND_CURSOR_HEAD(ntshell);
     
    484485        UNUSED_VARIABLE(ch);
    485486        text_editor_get_text(GET_EDITOR(ntshell), buf, sizeof(buf));
    486         len = strlen((const char *)buf);
     487        len = ntlibc_strlen((const char *)buf);
    487488        VTSEND_CURSOR_HEAD(ntshell);
    488489        PROMPT_WRITE(ntshell);
     
    606607        p->func_callback = func_callback;
    607608        p->extobj = extobj;
    608         strcpy(p->prompt, NTSHELL_PROMPT_DEFAULT);
     609        ntlibc_strcpy(p->prompt, NTSHELL_PROMPT_DEFAULT);
    609610
    610611        p->vtrecv.user_data = p;
     
    666667        }
    667668
    668         strcpy(p->prompt, prompt);
     669        ntlibc_strcpy(p->prompt, prompt);
    669670}
    670671
Note: See TracChangeset for help on using the changeset viewer.