Rizin
unix-like reverse engineering framework and cli tools
opcode_21.c
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2020 FXTi <zjxiang1998@gmail.com>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #include "opcode.h"
5 
7  pyc_opcodes *ret = opcode_22();
8  if (!ret) {
9  return NULL;
10  }
11 
12  ret->version_sig = (void *(*)())opcode_21;
13 
14  // 2.1 bytecodes changes from 2.2
15  rm_op(.op_obj = ret->opcodes, .op_name = "BINARY_FLOOR_DIVIDE", .op_code = 26);
16  rm_op(.op_obj = ret->opcodes, .op_name = "BINARY_TRUE_DIVIDE", .op_code = 27);
17  rm_op(.op_obj = ret->opcodes, .op_name = "INPLACE_FLOOR_DIVIDE", .op_code = 28);
18  rm_op(.op_obj = ret->opcodes, .op_name = "INPLACE_TRUE_DIVIDE", .op_code = 29);
19  rm_op(.op_obj = ret->opcodes, .op_name = "GET_ITER", .op_code = 68);
20  rm_op(.op_obj = ret->opcodes, .op_name = "YIELD_VALUE", .op_code = 86);
21  rm_op(.op_obj = ret->opcodes, .op_name = "FOR_ITER", .op_code = 93);
22 
24  add_arg_fmt(ret, "EXTENDED_ARG", format_extended_arg);
25 
26  return ret;
27 }
#define NULL
Definition: cris-opc.c:27
RZ_API void rz_list_purge(RZ_NONNULL RzList *list)
Empties the list without freeing the list pointer.
Definition: list.c:120
void add_arg_fmt(pyc_opcodes *ret, char *op_name, const char *(*formatter)(ut32 oparg))
Definition: opcode.c:234
pyc_opcodes * opcode_21(void)
Definition: opcode_21.c:6
const char * format_extended_arg(ut32 oparg)
Definition: opcode_arg_fmt.c:6
pyc_opcodes * opcode_22(void)
Definition: opcode_22.c:6
#define rm_op(...)
Definition: opcode.h:175
char * op_name
Definition: opcode.h:38
void *(* version_sig)()
Definition: opcode.h:49
pyc_opcode_object * opcodes
Definition: opcode.h:51
RzList * opcode_arg_fmt
Definition: opcode.h:50