diff --git a/port/linux/package/pikascript/pikascript-lib/network/_network_WLAN.c b/port/linux/package/pikascript/pikascript-lib/network/_network_WLAN.c index f28d2b200..604c8cad6 100644 --- a/port/linux/package/pikascript/pikascript-lib/network/_network_WLAN.c +++ b/port/linux/package/pikascript/pikascript-lib/network/_network_WLAN.c @@ -25,7 +25,7 @@ void _network_WLAN_active(PikaObj* self, int is_active) { if (hal_wifi == NULL) { return; } - if (is_active){ + if (is_active) { check_res(pika_hal_ioctl(hal_wifi, PIKA_HAL_IOCTL_ENABLE)); return; } diff --git a/src/PikaObj.c b/src/PikaObj.c index 273304c90..341bf8f2a 100644 --- a/src/PikaObj.c +++ b/src/PikaObj.c @@ -3295,7 +3295,7 @@ Arg* builtins_list(PikaObj* self, PikaTuple* val) { }; return pikaVM_runByteCodeReturn(self, (uint8_t*)bytes, "@res_list"); } - return arg_newObj(New_pikaListFromVarArgs(NULL)); + return arg_newObj(New_pikaListFrom(NULL)); #else obj_setErrorCode(self, 1); __platform_printf("[Error] built-in list is not enabled.\r\n"); diff --git a/src/PikaObj.h b/src/PikaObj.h index 77a214375..d457c7a49 100644 --- a/src/PikaObj.h +++ b/src/PikaObj.h @@ -457,6 +457,10 @@ PikaObj* _pika_dict_new(int num_args, ...); _pika_dict_new(sizeof((Arg*[]){__VA_ARGS__, NULL}) / sizeof(Arg*) - 1, \ __VA_ARGS__) +#define New_pikaDictFrom New_pikaDictFromVarArgs +#define New_pikaListFrom New_pikaListFromVarArgs +#define New_pikaTupleFrom New_pikaTupleFromVarArgs + PikaObj* newNormalObj(NewFun newObjFun); Arg* arg_setRef(Arg* self, char* name, PikaObj* obj); Arg* arg_setObj(Arg* self, char* name, PikaObj* obj); diff --git a/src/PikaVersion.h b/src/PikaVersion.h index 9107dca75..46eb2eaca 100644 --- a/src/PikaVersion.h +++ b/src/PikaVersion.h @@ -2,4 +2,4 @@ #define PIKA_VERSION_MINOR 12 #define PIKA_VERSION_MICRO 5 -#define PIKA_EDIT_TIME "2023/08/06 19:07:18" +#define PIKA_EDIT_TIME "2023/08/08 09:58:08"