26 lines
743 B
C
26 lines
743 B
C
// SPDX-FileCopyrightText: 2020 FXTi <zjxiang1998@gmail.com>
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
|
|
|
#include "opcode.h"
|
|
|
|
pyc_opcodes *opcode_34(void) {
|
|
pyc_opcodes *ret = opcode_33();
|
|
if (!ret) {
|
|
return NULL;
|
|
}
|
|
|
|
ret->version_sig = (void *(*)())opcode_34;
|
|
|
|
// These are removed since Python 3.3
|
|
rm_op(.op_obj = ret->opcodes, .op_name = "STORE_LOCALS", .op_code = 69);
|
|
|
|
// These are new since Python 3.3
|
|
def_op(.op_obj = ret->opcodes, .op_name = "YIELD_FROM", .op_code = 72);
|
|
free_op(.op_obj = ret->opcodes, .op_name = "LOAD_CLASSDEREF", .op_code = 148);
|
|
|
|
rz_list_purge(ret->opcode_arg_fmt);
|
|
add_arg_fmt(ret, "EXTENDED_ARG", format_extended_arg);
|
|
add_arg_fmt(ret, "MAKE_FUNCTION", format_MAKE_FUNCTION_arg_3x);
|
|
|
|
return ret;
|
|
}
|