CentOS forward decl RBin (#17224)

* Try to fix double declaration issue in centos
* On CentOS we just check unit tests
This commit is contained in:
Riccardo Schirone 2020-07-06 13:43:48 +02:00 committed by GitHub
parent 5454239cae
commit 9b43e2d70f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -32,7 +32,7 @@ jobs:
run: make install
working-directory: radare2
- name: Run tests
run: cd test/unit && make && make fuzz-tests
run: cd test/unit && make
working-directory: radare2
env:
# `make install` installs, for some unknown reasons, pkgconfig files in

View File

@ -6,6 +6,9 @@
#include <r_io.h>
#include <r_cons.h>
#include <r_list.h>
typedef struct r_bin_t RBin;
#include <r_bin_dwarf.h>
#include <r_pdb.h>
@ -302,7 +305,7 @@ typedef struct r_bin_file_options_t {
// const char *xtrname;
} RBinFileOptions;
typedef struct r_bin_t {
struct r_bin_t {
const char *file;
RBinFile *cur; // TODO: deprecate
int narch;
@ -338,7 +341,7 @@ typedef struct r_bin_t {
bool use_xtr; // use extract plugins when loading a file?
bool use_ldr; // use loader plugins when loading a file?
RStrConstPool constpool;
} RBin;
};
typedef struct r_bin_xtr_metadata_t {
char *arch;

View File

@ -799,8 +799,6 @@ typedef struct {
#define r_bin_dwarf_line_new(o,a,f,l) o->address=a, o->file = strdup (f?f:""), o->line = l, o->column =0,o
typedef struct r_bin_t RBin; // forward declaration so I can keep the functions in this interface
R_API RBinDwarfDebugAbbrev *r_bin_dwarf_parse_abbrev(RBin *a, int mode);
R_API RList *r_bin_dwarf_parse_aranges(RBin *a, int mode);
R_API RBinDwarfDebugInfo *r_bin_dwarf_parse_info(RBinDwarfDebugAbbrev *da, RBin *a, int mode);