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

Go to the source code of this file.

Functions

pyc_opcodesopcode_32 (void)
 

Function Documentation

◆ opcode_32()

pyc_opcodes* opcode_32 ( void  )

Definition at line 6 of file opcode_32.c.

6  {
7  pyc_opcodes *ret = opcode_3x();
8  if (!ret) {
9  return NULL;
10  }
11 
12  ret->version_sig = (void *(*)())opcode_32;
13 
14  // There are no opcodes to add or change.
15  // If there were, they'd be listed below.
16 
18  add_arg_fmt(ret, "EXTENDED_ARG", format_extended_arg);
19  add_arg_fmt(ret, "MAKE_FUNCTION", format_MAKE_FUNCTION_arg_3x);
20 
21  return ret;
22 }
#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_32(void)
Definition: opcode_32.c:6
pyc_opcodes * opcode_3x(void)
Definition: opcode_3x.c:6
const char * format_extended_arg(ut32 oparg)
Definition: opcode_arg_fmt.c:6
const char * format_MAKE_FUNCTION_arg_3x(ut32 oparg)
void *(* version_sig)()
Definition: opcode.h:49
RzList * opcode_arg_fmt
Definition: opcode.h:50

References add_arg_fmt(), format_extended_arg(), format_MAKE_FUNCTION_arg_3x(), NULL, opcode_32(), opcode_3x(), pyc_opcodes::opcode_arg_fmt, rz_list_purge(), and pyc_opcodes::version_sig.

Referenced by opcode_31(), and opcode_32().