Skip to content

Commit

Permalink
Remove more lines to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Apr 12, 2021
1 parent d485f17 commit 1c13a6a
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 17 deletions.
4 changes: 2 additions & 2 deletions vapi/r_anal.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ namespace Radare {
public RAnal ();
public bool op_hexstr(uint64 addr, string hexstr);
//public bool esil_eval (string str);
public bool set_bits (int bits);
public bool set_big_endian (bool big);
public void set_bits (int bits);
public void set_big_endian (bool big);
//public bool set_pc (uint64 addr);
public void diff_setup(bool doops, double thbb, double thfcn);
public void diff_setup_i(bool doops, int thbb, int thfcn);
Expand Down
6 changes: 3 additions & 3 deletions vapi/r_asm.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public class RAsm {
/**
* The assembly representation.
*/
public RStrBuf buf_asm;
// public RStrBuf buf_asm;
// public string buf_asm;

/**
Expand All @@ -128,7 +128,7 @@ public class RAsm {
* Retrieves the assembly representation of the instruction.
* @return such representation.
*/
// public string get_asm();
public string get_asm();
}

/**
Expand All @@ -144,7 +144,7 @@ public class RAsm {
uint64 code_offset;
uint64 data_offset;
int code_align;
public string buf_hex;
//public string buf_hex;
public string get_hex();
public string equ_replace(string s);
public bool set_equ(string k, string v);
Expand Down
4 changes: 3 additions & 1 deletion vapi/r_bin.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ namespace Radare {
public uint64 dbg_info;
}

[Compact]
[CCode (cname="RBinString", free_function="", ref_function="", unref_function="")]
public class String {
public string @string; // FIXME proper static strings w/o hardcoded size
Expand All @@ -199,8 +200,9 @@ namespace Radare {
public uint64 size;
}

[Compact]
[CCode (cname="RBinField", free_function="", ref_function="", unref_function="")]
public compact class Field {
public class Field {
public string name; // FIXME proper static strings w/o hardcoded size
public uint64 vaddr;
public uint64 paddr;
Expand Down
4 changes: 2 additions & 2 deletions vapi/r_config.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ namespace Radare {
public class RConfig {
public RConfig (void* user = null);
public RConfig clone();
public void serialize(SDB.Sdb db);
public bool unserialize(SDB.Sdb db, out string err);
// public void serialize(SDB.Sdb db);
// public bool unserialize(SDB.Sdb db, out string err);

public void lock (bool enable);
public void bump (string key);
Expand Down
2 changes: 1 addition & 1 deletion vapi/r_cons.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace Radare {
/* output */
public static void printf(string fmt, ...);
public static void strcat(string str);
public static void memcat(string str, int len);
public static void write(string str, int len);
public static void newline();
public static void flush();
public static void filter();
Expand Down
6 changes: 4 additions & 2 deletions vapi/r_core.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ public class RCore {
//public int anal_graph_fcn(string input, int opts);
// public int anal_ref_list(bool rad);

/*
public int project_open (string file, bool thready);
public int project_save (string file);
public string project_info (string file);
*/

public int gdiff(RCore *c2);

Expand Down Expand Up @@ -180,8 +182,8 @@ public class RCore {

/* files */
public RIO.Desc file_open(string file, int mode, uint64 loadaddr=0);
public bool file_close_fd(int fd);
public bool file_list(int mode);
// public bool file_close_fd(int fd);
// public bool file_list(int mode);

public int seek_delta(int64 addr);

Expand Down
2 changes: 1 addition & 1 deletion vapi/r_db.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace SDB {
public int json_num_set (string key, string path, int v, uint32 cas = 0);
public int json_num_inc (string key, string path, int n, uint32 cas = 0);
public int json_num_dec (string key, string path, int n, uint32 cas = 0);
public static string json_indent (string json);
// public static string json_indent (string json);
public static string json_unindent (string json);
/* remove */
public bool unset (string key, int cas=0);
Expand Down
2 changes: 1 addition & 1 deletion vapi/r_debug.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class Radare.RDebug {
//public bool mmu_free(uint64 addr);

public bool reg_sync(RReg.Type type, bool set);
public bool reg_list(int type, int size, int rad, string use_color);
// public bool reg_list(int type, int size, int rad, string use_color);
//public bool reg_set(string name, uint64 num);
//public uint64 reg_get(string name);

Expand Down
6 changes: 3 additions & 3 deletions vapi/r_io.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ namespace Radare {
public class UndoWrite {
int set;
uint64 off;
uint8 *o; /* old data */
uint8 *n; /* new data */
int len; /* length */
uint8 *o; // old data
uint8 *n; // new data
int len; // length
}
*/

Expand Down
2 changes: 1 addition & 1 deletion vapi/r_syscall.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class Radare.RSyscall {
string sargs;
}

public Item item_new_from_string(string name, string s);
// public Item item_new_from_string(string name, string s);

public RSyscall();
public bool setup(string arch, int bits, string cpu, string os);
Expand Down
2 changes: 2 additions & 0 deletions vapi/r_util.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ namespace Radare {

[CCode (cheader_filename="r_util.h", lower_case_cprefix="r_sys_")]
namespace RSystem {
/*
[CCode (cname="R_SYS_OS")]
public const string OS;
[CCode (cname="R_SYS_ARCH")]
public const string ARCH;
*/

public static int sleep (int secs);
public static int usleep (int usecs);
Expand Down

0 comments on commit 1c13a6a

Please sign in to comment.