Skip to content

Commit a331ced

Browse files
committedSep 17, 2012
Fix bindings
1 parent 724968c commit a331ced

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed
 

‎configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ System types:
141141
EOF2
142142

143143
printf "\nOptional Features:
144-
--disable-devel Enable development mode (use valabind and swig)
144+
--disable-devel development mode (use valabind and swig)
145145
--with-cc Define C compiler to use (gcc by default) (USERCC=gcc)
146146
--with-cxx Define C++ compiler to use (g++ by default) (USERCXX=g++)
147147
--with-ostype Choose OS type (gnulinux windows darwin) (USEROSTYPE=auto)\n"

‎configure.acr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CHKPRG VALABIND valabind
88
CHKPRG SWIG swig
99
CHKPRG GIRCOMPILER g-ir-compiler
1010

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) ;
1212
ARG_WITH USERCC=gcc cc Define C compiler to use (gcc by default) ;
1313
ARG_WITH USERCXX=g++ cxx Define C++ compiler to use (g++ by default) ;
1414
ARG_WITH USEROSTYPE=auto ostype Choose OS type (gnulinux windows darwin) ;

‎node-ffi/Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
LANG=node-ffi
2+
MODVER=$(shell node -e 'console.log(JSON.parse(require("fs").readFileSync("package.json"))["version"])')
23
LANG_EXT=js
34
LIBS_PFX=
45
FORCE_SOEXT=1
@@ -12,6 +13,10 @@ include ../rules.mk
1213
node_modules:
1314
npm install
1415

15-
npm: clean
16+
npm publish: clean
1617
${MAKE}
1718
npm publish
19+
20+
unpublish: clean
21+
${MAKE}
22+
npm unpublish @${MODVER}

‎node-ffi/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ "name": "radare2.js",
2-
"version": "0.1.1",
2+
"version": "0.1.2",
33
"url": "http://www.radare.org",
44
"description": "radare2 valabind-ffi bindings for nodejs",
55
"dependencies": {

‎vapi/r_anal.vapi

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ namespace Radare {
6565
LT
6666
}
6767

68+
/*
6869
[CCode (cname="int", cprefix="R_ANAL_VAR_TYPE_")]
6970
public enum VarClass {
7071
NULL,
@@ -73,6 +74,7 @@ namespace Radare {
7374
ARG,
7475
ARGREG
7576
}
77+
*/
7678

7779
[CCode (cname="int", cprefix="R_ANAL_FCN_TYPE_")]
7880
public enum FunctionType {

‎vapi/r_util.vapi

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace Radare {
3333
public static int hash(string str);
3434
public static int write(int fd, string str);
3535
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);
3737
//public static string @bool(bool b);
3838
public static int ansi_len(string str);
3939
public static int ansi_filter(ref string str, int len);
@@ -50,7 +50,7 @@ namespace Radare {
5050
public static int dump(string file, uint8 *buf, int len);
5151
public static unowned string basename (string path);
5252
public static string abspath(string path);
53-
public static bool exist (string file);
53+
public static bool exists (string file);
5454
public static bool slurp_line (string file, int line, int ctx);
5555

5656
}

0 commit comments

Comments
 (0)
Please sign in to comment.