Home
last modified time | relevance | path

Searched refs:vstr_len (Results 1 – 5 of 5) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dbuiltinimport.c370 DEBUG_printf("Previous path: =%.*s=\n", vstr_len(&path), vstr_str(&path)); in mp_builtin___import__()
374 if (vstr_len(&path) == 0) { in mp_builtin___import__()
383 DEBUG_printf("Current path: %.*s\n", vstr_len(&path), vstr_str(&path)); in mp_builtin___import__()
435 DEBUG_printf("%.*s is dir\n", vstr_len(&path), vstr_str(&path)); in mp_builtin___import__()
438 … mp_store_attr(module_obj, MP_QSTR___path__, mp_obj_new_str(vstr_str(&path), vstr_len(&path))); in mp_builtin___import__()
A Dmisc.h189 static inline size_t vstr_len(vstr_t *vstr) { in vstr_len() function
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dvfs_lfsx.c106 size_t l = vstr_len(&self->cur_dir); in MP_VFS_LFSx()
246 vstr_init(&path_new, vstr_len(&self->cur_dir)); in MP_VFS_LFSx()
248 vstr_add_strn(&path_new, vstr_str(&self->cur_dir), vstr_len(&self->cur_dir)); in MP_VFS_LFSx()
295 if (vstr_len(&self->cur_dir) != 1) { in MP_VFS_LFSx()
298 #define CWD_LEN (vstr_len(&self->cur_dir)) in MP_VFS_LFSx()
341 if (vstr_len(&self->cur_dir) == 1) { in MP_VFS_LFSx()
/AliOS-Things-master/components/py_engine/engine/shared/runtime/
A Dpyexec.c308 … if (vstr_len(MP_STATE_VM(repl_line)) == 2 && vstr_str(MP_STATE_VM(repl_line))[0] == CHAR_CTRL_E) { in pyexec_raw_repl_process_char()
500 if (vstr_len(&line) == 2 && vstr_str(&line)[0] == CHAR_CTRL_E) { in pyexec_raw_repl()
643 } else if (vstr_len(&line) == 0) { in pyexec_friendly_repl()
/AliOS-Things-master/components/py_engine/engine/shared/readline/
A Dreadline.c114 else if (forward && pos == vstr_len(rl.line)) { in cursor_count_word()
137 if (CHAR_CTRL_A <= c && c <= CHAR_CTRL_E && vstr_len(rl.line) == rl.orig_line_len) { in readline_process_char()

Completed in 9 milliseconds