Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feature, strlen are rarely called in jerry-core and jerry-ext, we can remove all the usage of strlen #4979

Open
Labels
@lygstate

Description

@lygstate

All the place calling to strlen are

NameLineTextPathjerry-debugger.c150          size_t source_name_size = strlen ((const char *) source_name_p);E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\apijerryscript.c5091                                strlen (str_p));E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\apijerry-snapshot.c1472    string_size = (lit_utf8_size_t) strlen (chars);E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\apidebugger.c599        jerry_debugger_send_string (JERRY_DEBUGGER_EVAL_RESULT, type, string_p, strlen ((const char *) string_p));E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\debuggerlit-strings.c267  return (lit_utf8_size_t) strlen ((const char *) utf8_str_p);E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\litmodule.c187    if (module_p->name_p != NULL && strlen ((char *) module_p->name_p) == name_sizeE:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-ext\moduleprint.c153  jerry_size_t buffer_size = (jerry_size_t) (strlen (str_p));E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-ext\utilsources.c50    jerry_string ((const jerry_char_t *) path_p, (jerry_size_t) strlen (path_p), JERRY_ENCODING_UTF8);E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-ext\utilsources.c79    jerry_string ((const jerry_char_t *) path_p, (jerry_size_t) strlen (path_p), JERRY_ENCODING_UTF8);E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-ext\utilmain-snapshot.c342    jerry_string ((const jerry_char_t *) file_name_p, (jerry_size_t) strlen (file_name_p), JERRY_ENCODING_UTF8);E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-mainmain-snapshot.c348                                                (jerry_size_t) strlen (function_args_p),E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-main

We can improve the usage of strlen by improving the api of jerry-port and other related functions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp