Home
last modified time | relevance | path

Searched refs:temp_args (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmain.c50 mpy_thread_args *temp_args = (mpy_thread_args *)calloc(1, sizeof(mpy_thread_args)); in alloc_mpy_thread_args() local
51 if (temp_args == NULL) { in alloc_mpy_thread_args()
57 temp_args->is_bootup = true; in alloc_mpy_thread_args()
58 temp_args->argc = 2; in alloc_mpy_thread_args()
60 temp_args->is_bootup = false; in alloc_mpy_thread_args()
61 temp_args->argc = argc; in alloc_mpy_thread_args()
64 temp_args->argv = (char **)calloc(1, sizeof(char *) * temp_args->argc); in alloc_mpy_thread_args()
65 if (temp_args->argv == NULL) { in alloc_mpy_thread_args()
67 free(temp_args); in alloc_mpy_thread_args()
72 temp_args->argv[i] = strdup(argv[i]); in alloc_mpy_thread_args()
[all …]
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmain.c50 mpy_thread_args *temp_args = (mpy_thread_args *)calloc(1, sizeof(mpy_thread_args)); in alloc_mpy_thread_args() local
51 if (temp_args == NULL) { in alloc_mpy_thread_args()
57 temp_args->is_bootup = true; in alloc_mpy_thread_args()
58 temp_args->argc = 2; in alloc_mpy_thread_args()
60 temp_args->is_bootup = false; in alloc_mpy_thread_args()
61 temp_args->argc = argc; in alloc_mpy_thread_args()
64 temp_args->argv = (char **)calloc(1, sizeof(char *) * temp_args->argc); in alloc_mpy_thread_args()
65 if (temp_args->argv == NULL) { in alloc_mpy_thread_args()
67 free(temp_args); in alloc_mpy_thread_args()
72 temp_args->argv[i] = strdup(argv[i]); in alloc_mpy_thread_args()
[all …]
/AliOS-Things-master/components/py_engine/adapter/
A Dmain.c53 mpy_thread_args *temp_args = (mpy_thread_args *)calloc(1, sizeof(mpy_thread_args)); in alloc_mpy_thread_args() local
54 if (temp_args == NULL) { in alloc_mpy_thread_args()
60 temp_args->is_repl_mode = true; in alloc_mpy_thread_args()
62 temp_args->is_repl_mode = false; in alloc_mpy_thread_args()
64 temp_args->argc = argc; in alloc_mpy_thread_args()
66 temp_args->argv = (int8_t **)calloc(1, sizeof(int8_t *) * temp_args->argc); in alloc_mpy_thread_args()
67 if (temp_args->argv == NULL) { in alloc_mpy_thread_args()
69 free(temp_args); in alloc_mpy_thread_args()
74 temp_args->argv[i] = strdup(argv[i]); in alloc_mpy_thread_args()
77 return temp_args; in alloc_mpy_thread_args()

Completed in 10 milliseconds