Home
last modified time | relevance | path

Searched refs:path_p (Results 1 - 4 of 4) sorted by relevance

/third_party/jerryscript/jerry-port/default/
H A Ddefault-module.c111 char *path_p = (char *) malloc (_MAX_PATH * 2); in jerry_port_normalize_path() local
112 *path_p = '\0'; in jerry_port_normalize_path()
125 strncat (path_p, drive, _MAX_DRIVE); in jerry_port_normalize_path()
126 strncat (path_p, dir_p, _MAX_DIR); in jerry_port_normalize_path()
129 strncat (path_p, in_path_p, _MAX_PATH); in jerry_port_normalize_path()
131 char *norm_p = _fullpath (out_buf_p, path_p, out_buf_size); in jerry_port_normalize_path()
133 free (path_p); in jerry_port_normalize_path()
143 char *path_p = (char *) malloc (PATH_MAX); in jerry_port_normalize_path() local
146 strncpy (path_p, base_p, MAX_JERRY_PATH_SIZE); in jerry_port_normalize_path()
147 strncat (path_p, "/", in jerry_port_normalize_path()
[all...]
/third_party/jerryscript/jerry-core/ecma/base/
H A Decma-module.c48 lit_utf8_byte_t *path_p = (lit_utf8_byte_t *) jmem_heap_alloc_block (size + 1u); in ecma_module_create_normalized_path() local
53 path_p, in ecma_module_create_normalized_path()
55 path_p[utf8_size] = LIT_CHAR_NULL; in ecma_module_create_normalized_path()
64 JERRY_ASSERT (JERRY_CONTEXT (module_top_context_p)->module_p->path_p != NULL); in ecma_module_create_normalized_path()
65 module_path_size = ecma_string_get_size (JERRY_CONTEXT (module_top_context_p)->module_p->path_p); in ecma_module_create_normalized_path()
69 module_utf8_size = ecma_string_copy_to_utf8_buffer (JERRY_CONTEXT (module_top_context_p)->module_p->path_p, in ecma_module_create_normalized_path()
77 size_t normalized_size = jerry_port_normalize_path ((const char *) path_p, in ecma_module_create_normalized_path()
88 jmem_heap_free_block (path_p, size + 1u); in ecma_module_create_normalized_path()
105 ecma_module_find_module (ecma_string_t *const path_p) /**< module identifier */ in ecma_module_find_module() argument
110 if (ecma_compare_ecma_strings (path_p, current_ in ecma_module_find_module()
126 ecma_module_create_module(ecma_string_t *const path_p) ecma_module_create_module() argument
143 ecma_module_find_or_create_module(ecma_string_t *const path_p) ecma_module_find_or_create_module() argument
161 ecma_module_create_native_module(ecma_string_t *const path_p, ecma_object_t *const namespace_p) ecma_module_create_native_module() argument
[all...]
H A Decma-module.h83 ecma_string_t *path_p; /**< path of the module */ member
131 ecma_module_t *ecma_module_find_module (ecma_string_t *const path_p);
132 ecma_module_t *ecma_module_create_native_module (ecma_string_t *const path_p,
134 ecma_module_t *ecma_module_find_or_create_module (ecma_string_t *const path_p);
/third_party/jerryscript/jerry-core/parser/js/
H A Djs-parser-module.c316 ecma_string_t *path_p = ecma_module_create_normalized_path (path_str_chars_p, in parser_module_context_init() local
319 if (path_p == NULL) in parser_module_context_init()
322 path_p = path_str_p; in parser_module_context_init()
325 ecma_module_t *module_p = ecma_module_find_or_create_module (path_p); in parser_module_context_init()
603 ecma_string_t *path_p = ecma_module_create_normalized_path (context_p->lit_object.literal_p->u.char_p, in parser_module_handle_module_specifier() local
606 if (path_p == NULL) in parser_module_handle_module_specifier()
611 module_p = ecma_module_find_or_create_module (path_p); in parser_module_handle_module_specifier()

Completed in 3 milliseconds