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

Go to the source code of this file.

Functions

pyc_opcodesopcode_26 (void)
 

Function Documentation

◆ opcode_26()

pyc_opcodes* opcode_26 ( void  )

Definition at line 6 of file opcode_26.c.

6  {
7  pyc_opcodes *ret = opcode_25();
8  if (!ret) {
9  return NULL;
10  }
11 
12  ret->version_sig = (void *(*)())opcode_26;
13 
14  // Below are opcode changes since Python 2.5
15  store_op(.op_obj = ret->opcodes, .op_name = "STORE_MAP", .op_code = 54, .pop = 3, .push = 1);
16 
18  add_arg_fmt(ret, "EXTENDED_ARG", format_extended_arg);
19 
20  return ret;
21 }
#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_26(void)
Definition: opcode_26.c:6
#define store_op(...)
Definition: opcode.h:145
const char * format_extended_arg(ut32 oparg)
Definition: opcode_arg_fmt.c:6
pyc_opcodes * opcode_25(void)
Definition: opcode_25.c:6
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(), format_extended_arg(), NULL, pyc_opcode_object::op_name, opcode_25(), opcode_26(), pyc_opcodes::opcode_arg_fmt, pyc_opcodes::opcodes, rz_list_purge(), store_op, and pyc_opcodes::version_sig.

Referenced by opcode_26(), and opcode_27().