File tree 6 files changed +13
-6
lines changed
6 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ System types:
141
141
EOF2
142
142
143
143
printf " \nOptional Features:
144
- --disable-devel Enable development mode (use valabind and swig)
144
+ --disable-devel development mode (use valabind and swig)
145
145
--with-cc Define C compiler to use (gcc by default) (USERCC=gcc)
146
146
--with-cxx Define C++ compiler to use (g++ by default) (USERCXX=g++)
147
147
--with-ostype Choose OS type (gnulinux windows darwin) (USEROSTYPE=auto)\n"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ CHKPRG VALABIND valabind
8
8
CHKPRG SWIG swig
9
9
CHKPRG GIRCOMPILER g-ir-compiler
10
10
11
- ARG_DISABLE DEVEL_MODE devel Enable development mode (use valabind and swig) ;
11
+ ARG_DISABLE DEVEL_MODE devel development mode (use valabind and swig) ;
12
12
ARG_WITH USERCC=gcc cc Define C compiler to use (gcc by default) ;
13
13
ARG_WITH USERCXX=g++ cxx Define C++ compiler to use (g++ by default) ;
14
14
ARG_WITH USEROSTYPE=auto ostype Choose OS type (gnulinux windows darwin) ;
Original file line number Diff line number Diff line change 1
1
LANG =node-ffi
2
+ MODVER =$(shell node -e 'console.log(JSON.parse(require("fs") .readFileSync("package.json"))["version"])')
2
3
LANG_EXT =js
3
4
LIBS_PFX =
4
5
FORCE_SOEXT =1
@@ -12,6 +13,10 @@ include ../rules.mk
12
13
node_modules :
13
14
npm install
14
15
15
- npm : clean
16
+ npm publish : clean
16
17
${MAKE}
17
18
npm publish
19
+
20
+ unpublish : clean
21
+ ${MAKE}
22
+ npm unpublish @${MODVER}
Original file line number Diff line number Diff line change 1
1
{ "name" : " radare2.js" ,
2
- "version" : " 0.1.1 " ,
2
+ "version" : " 0.1.2 " ,
3
3
"url" : " http://www.radare.org" ,
4
4
"description" : " radare2 valabind-ffi bindings for nodejs" ,
5
5
"dependencies" : {
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ namespace Radare {
65
65
LT
66
66
}
67
67
68
+ /*
68
69
[CCode (cname="int", cprefix="R_ANAL_VAR_TYPE_")]
69
70
public enum VarClass {
70
71
NULL,
@@ -73,6 +74,7 @@ namespace Radare {
73
74
ARG,
74
75
ARGREG
75
76
}
77
+ */
76
78
77
79
[CCode (cname= " int" , cprefix= " R_ANAL_FCN_TYPE_" )]
78
80
public enum FunctionType {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ namespace Radare {
33
33
public static int hash(string str);
34
34
public static int write(int fd, string str);
35
35
public static int rwx(string str);
36
- public static void subchr (ref string str, int a, int b);
36
+ public static int replace_char (ref string str, int a, int b);
37
37
// public static string @bool(bool b);
38
38
public static int ansi_len(string str);
39
39
public static int ansi_filter(ref string str, int len);
@@ -50,7 +50,7 @@ namespace Radare {
50
50
public static int dump(string file, uint8 * buf, int len);
51
51
public static unowned string basename (string path);
52
52
public static string abspath(string path);
53
- public static bool exist (string file);
53
+ public static bool exists (string file);
54
54
public static bool slurp_line (string file, int line, int ctx);
55
55
56
56
}
You can’t perform that action at this time.
0 commit comments