Skip to content

Commit 4d2cdaa

Browse files
committed
fi
1 parent b693d91 commit 4d2cdaa

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

libr/arch/p/pyc/pyc_dis.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,24 @@
66
#include <r_util.h>
77
#include <r_asm.h>
88

9+
#if 0
910
#include "../../bin/format/pyc/pyc_magic.h"
11+
#else
12+
struct pyc_version {
13+
ut32 magic;
14+
const char *version;
15+
const char *revision;
16+
};
17+
18+
typedef struct {
19+
ut64 code_start_offset;
20+
struct pyc_version version;
21+
RList *sections_cache; // RList<RBinSection*>
22+
RList *interned_table; // RList<char*>
23+
RList *cobjs; // RList<pyc_code_object*>
24+
} RBinPycObj;
25+
#endif
26+
1027
#include "opcode.h"
1128

1229
typedef struct {

libr/bin/format/pyc/pyc_magic.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ struct pyc_version {
1111
const char *version;
1212
const char *revision;
1313
};
14-
#if 1
14+
1515
typedef struct {
1616
ut64 code_start_offset;
1717
struct pyc_version version;
1818
RList *sections_cache; // RList<RBinSection*>
1919
RList *interned_table; // RList<char*>
2020
RList *cobjs; // RList<pyc_code_object*>
2121
} RBinPycObj;
22-
#endif
2322

2423
struct pyc_version get_pyc_version(ut32 magic);
2524

0 commit comments

Comments
 (0)