mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
fix ac5 warnings, update bytecodegen core version
This commit is contained in:
parent
4ac239f26b
commit
665eb2eac8
@ -740,13 +740,13 @@ char* Parser_solveBranckets(Args* outBuffs,
|
||||
Arg* right_arg = arg_setStr(NULL, "", "");
|
||||
uint8_t is_in_brancket = 0;
|
||||
args_setStr(&buffs, "index", "");
|
||||
uint8_t matched = 0;
|
||||
/* exit when NULL */
|
||||
if (NULL == content) {
|
||||
arg_deinit(right_arg);
|
||||
right_arg = arg_setStr(right_arg, "", stmt);
|
||||
goto exit;
|
||||
}
|
||||
uint8_t matched = 0;
|
||||
/* exit when not match
|
||||
(symble|iteral)'['
|
||||
*/
|
||||
@ -1317,13 +1317,14 @@ exit:
|
||||
static char* Parser_PreProcess_import(Args* buffs_p, char* line) {
|
||||
Args buffs = {0};
|
||||
char* line_out = line;
|
||||
char* alias = NULL;
|
||||
char* origin = NULL;
|
||||
char* stmt = line + 7;
|
||||
if (!strIsStartWith(line, "import ")) {
|
||||
line_out = line;
|
||||
goto exit;
|
||||
}
|
||||
char* alias = NULL;
|
||||
char* origin = NULL;
|
||||
char* stmt = line + 7;
|
||||
|
||||
ParserState_forEachToken(ps, stmt) {
|
||||
ParserState_iterStart(&ps);
|
||||
if (strEqu(ps.token2.pyload, " as ")) {
|
||||
@ -1357,14 +1358,15 @@ exit:
|
||||
static char* Parser_PreProcess_from(Args* buffs_p, char* line) {
|
||||
Args buffs = {0};
|
||||
char* line_out = line;
|
||||
if (!strIsStartWith(line, "from ")) {
|
||||
line_out = line;
|
||||
goto exit;
|
||||
}
|
||||
char* class = NULL;
|
||||
char* module = NULL;
|
||||
char* alias = NULL;
|
||||
char* stmt = line + 5;
|
||||
if (!strIsStartWith(line, "from ")) {
|
||||
line_out = line;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
ParserState_forEachToken(ps, stmt) {
|
||||
ParserState_iterStart(&ps);
|
||||
if (strEqu(ps.token2.pyload, " import ")) {
|
||||
|
@ -53,4 +53,4 @@ def_ins(CLS)
|
||||
def_ins(BYT)
|
||||
#if PIKA_BUILTIN_LIST_ENABLE
|
||||
def_ins(LST)
|
||||
#endif
|
||||
#endif
|
||||
|
@ -1 +1 @@
|
||||
pikascript-core==v1.5.3
|
||||
pikascript-core==v1.7.0rc
|
Loading…
x
Reference in New Issue
Block a user