[Pkg-javascript-commits] [node-leveldown] 224/492: move LU_STR() for Database::Batch() closer to usage
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:14:01 UTC 2014
This is an automated email from the git hooks/post-receive script.
andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.
commit cac083d31137bd038fabfe456917c6a28f629d52
Author: Lars-Magnus Skog <lars.magnus.skog at gmail.com>
Date: Fri Feb 22 15:35:20 2013 +0100
move LU_STR() for Database::Batch() closer to usage
---
src/database.cc | 6 ++++++
src/database.h | 5 -----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/database.cc b/src/database.cc
index 9c6ac32..90ac010 100644
--- a/src/database.cc
+++ b/src/database.cc
@@ -290,6 +290,12 @@ v8::Handle<v8::Value> Database::Delete (const v8::Arguments& args) {
v8::Handle<v8::Value> Database::Batch (const v8::Arguments& args) {
v8::HandleScope scope;
+ LU_STR ( key );
+ LU_STR ( value );
+ LU_STR ( type );
+ LU_STR ( del );
+ LU_STR ( put );
+
Database* database = node::ObjectWrap::Unwrap<Database>(args.This());
v8::Local<v8::Array> array = v8::Local<v8::Array>::Cast(args[0]);
v8::Local<v8::Object> optionsObj = v8::Local<v8::Object>::Cast(args[1]);
diff --git a/src/database.h b/src/database.h
index f2869a4..698e893 100644
--- a/src/database.h
+++ b/src/database.h
@@ -21,11 +21,6 @@ LU_OPTION ( cacheSize ); // for open()
LU_OPTION ( sync ); // for put() and delete()
LU_OPTION ( asBuffer ); // for get()
LU_OPTION ( fillCache ); // for get() and readStream()
-LU_STR ( key );
-LU_STR ( value );
-LU_STR ( type );
-LU_STR ( del );
-LU_STR ( put );
struct AsyncDescriptor;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git
More information about the Pkg-javascript-commits
mailing list