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

Go to the source code of this file.

Functions

pyc_opcodesopcode_14 (void)
 

Function Documentation

◆ opcode_14()

pyc_opcodes* opcode_14 ( void  )

Definition at line 6 of file opcode_14.c.

6  {
7  pyc_opcodes *ret = opcode_15();
8  if (!ret) {
9  return NULL;
10  }
11 
12  ret->version_sig = (void *(*)())opcode_14;
13 
14  // 1.4 Bytecodes not in 1.5
15  def_op(.op_obj = ret->opcodes, .op_name = "UNARY_CALL", .op_code = 14);
16  def_op(.op_obj = ret->opcodes, .op_name = "BINARY_CALL", .op_code = 26);
17  def_op(.op_obj = ret->opcodes, .op_name = "RAISE_EXCEPTION", .op_code = 81);
18  def_op(.op_obj = ret->opcodes, .op_name = "BUILD_FUNCTION", .op_code = 86);
19  varargs_op(.op_obj = ret->opcodes, .op_name = "UNPACK_ARG", .op_code = 94); // Number of arguments expected
20  varargs_op(.op_obj = ret->opcodes, .op_name = "UNPACK_VARARG", .op_code = 99); // Minimal number of arguments
21  name_op(.op_obj = ret->opcodes, .op_name = "LOAD_LOCAL", .op_code = 115);
22  varargs_op(.op_obj = ret->opcodes, .op_name = "SET_FUNC_ARGS", .op_code = 117); // Argcount
23  varargs_op(.op_obj = ret->opcodes, .op_name = "RESERVE_FAST", .op_code = 123); // Number of local variables
24 
26  add_arg_fmt(ret, "EXTENDED_ARG", format_extended_arg);
27 
28  return ret;
29 }
#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_14(void)
Definition: opcode_14.c:6
pyc_opcodes * opcode_15(void)
Definition: opcode_15.c:6
const char * format_extended_arg(ut32 oparg)
Definition: opcode_arg_fmt.c:6
#define varargs_op(...)
Definition: opcode.h:149
#define def_op(...)
Definition: opcode.h:127
#define name_op(...)
Definition: opcode.h:133
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(), name_op, NULL, pyc_opcode_object::op_name, opcode_14(), opcode_15(), pyc_opcodes::opcode_arg_fmt, pyc_opcodes::opcodes, rz_list_purge(), varargs_op, and pyc_opcodes::version_sig.

Referenced by opcode_13(), and opcode_14().