Rizin
unix-like reverse engineering framework and cli tools
opcode_34.c File Reference
#include "opcode.h"

Go to the source code of this file.

Functions

pyc_opcodesopcode_34 (void)
 

Function Documentation

◆ opcode_34()

pyc_opcodes* opcode_34 ( void  )

Definition at line 6 of file opcode_34.c.

6  {
7  pyc_opcodes *ret = opcode_33();
8  if (!ret) {
9  return NULL;
10  }
11 
12  ret->version_sig = (void *(*)())opcode_34;
13 
14  // These are removed since Python 3.3
15  rm_op(.op_obj = ret->opcodes, .op_name = "STORE_LOCALS", .op_code = 69);
16 
17  // These are new since Python 3.3
18  def_op(.op_obj = ret->opcodes, .op_name = "YIELD_FROM", .op_code = 72);
19  free_op(.op_obj = ret->opcodes, .op_name = "LOAD_CLASSDEREF", .op_code = 148);
20 
22  add_arg_fmt(ret, "EXTENDED_ARG", format_extended_arg);
23  add_arg_fmt(ret, "MAKE_FUNCTION", format_MAKE_FUNCTION_arg_3x);
24 
25  return ret;
26 }
#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_34(void)
Definition: opcode_34.c:6
#define free_op(...)
Definition: opcode.h:141
const char * format_extended_arg(ut32 oparg)
Definition: opcode_arg_fmt.c:6
const char * format_MAKE_FUNCTION_arg_3x(ut32 oparg)
pyc_opcodes * opcode_33(void)
Definition: opcode_33.c:6
#define def_op(...)
Definition: opcode.h:127
#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

References add_arg_fmt(), def_op, format_extended_arg(), format_MAKE_FUNCTION_arg_3x(), free_op, NULL, pyc_opcode_object::op_name, opcode_33(), opcode_34(), pyc_opcodes::opcode_arg_fmt, pyc_opcodes::opcodes, rm_op, rz_list_purge(), and pyc_opcodes::version_sig.

Referenced by opcode_34(), and opcode_35().