Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with NaN #43

Merged
merged 26 commits into from
May 26, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
4b174b4
Commit inicial da alteração para NaN
Bigous Mar 5, 2015
79a8685
Commit inicial da alteração para NaN
Bigous Mar 5, 2015
6ecdca7
Removidos os erros de comipalção NaN, faltam 2 erros do sdk 7.0
Bigous Mar 5, 2015
22d8b3c
Removidos os erros de comipalção NaN, faltam 2 erros do sdk 7.0
Bigous Mar 5, 2015
a144ca8
Revert "Removidos os erros de comipalção NaN, faltam 2 erros do sdk 7.0"
Bigous Mar 5, 2015
63e7817
Revert "Removidos os erros de comipalção NaN, faltam 2 erros do sdk 7.0"
Bigous Mar 5, 2015
56613f6
Nan compile errors stripped.
Bigous Mar 5, 2015
537e74b
Nan compile errors stripped.
Bigous Mar 5, 2015
47646ec
Change configuration to compile without errors on windows.
Bigous Mar 9, 2015
bf2f046
Change configuration to compile without errors on windows.
Bigous Mar 9, 2015
9c3a488
BugFix - Escapable scope was not defined in GetValue
Bigous Mar 10, 2015
45eb8de
BugFix - Escapable scope was not defined in GetValue
Bigous Mar 10, 2015
1217432
Merge with upstream from oracle.
Bigous Mar 10, 2015
627516d
Merge with upstream from oracle.
Bigous Mar 10, 2015
ac0a3bf
Removed the use of deprecated sys package from webapp example
Bigous Mar 10, 2015
f15f846
Removed the use of deprecated sys package from webapp example
Bigous Mar 10, 2015
97fd0d7
Merge with the latest version of oracledb
Bigous Mar 16, 2015
e9bf062
Merge with the latest version of oracledb
Bigous Mar 16, 2015
43a306c
Bump to signoff
Bigous Mar 23, 2015
e08a200
Merge with the latest version of oracledb [SIGN-OFF]
Bigous Mar 16, 2015
7af0588
Merge with the latest version of oracledb [SIGN-OFF]
Bigous Mar 16, 2015
d8b200f
Bump to signoff
Bigous Mar 23, 2015
a148f7d
Merge with latest commit from upstream.
Bigous Mar 31, 2015
e68332f
Merge with latest commit from upstream.
Bigous Mar 31, 2015
3c36d55
Merge with tag 0.5
Bigous May 11, 2015
b3eec33
Avoiding using ?: operator with NanNull
Bigous May 18, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Nan compile errors stripped.
Signed-off-by: Richard Natal <bigous@gmail.com>
  • Loading branch information
Bigous committed Mar 5, 2015
commit 537e74b49824442229fa4e553e8e1c6d93be32cf
4 changes: 2 additions & 2 deletions src/njs/src/njsConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ void Connection::Init(Handle<Object> target)
DESCRIPTION
Invoked when new of connection is called from JS
*/
v8::Handle<v8::Value> Connection::New(_NAN_METHOD_ARGS)
NAN_METHOD(Connection::New)
{
NanScope();

Connection *connection = new Connection();
connection->Wrap(args.This());

return args.This();
NanReturnValue(args.This());
}

/*****************************************************************************/
Expand Down
10 changes: 5 additions & 5 deletions src/njs/src/njsConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,30 +152,30 @@ class Connection: public ObjectWrap
static void Init (Handle<Object> target);

private:
static v8::Handle<v8::Value> New(_NAN_METHOD_ARGS);
static NAN_METHOD(New);
// Execute Method on Connection class
static NAN_METHOD(Execute);
static void Async_Execute (uv_work_t *req);
static void Async_AfterExecute (uv_work_t *req);

// Release Method on Connection class
static NAN_METHOD(Release);
static void Connection::Async_Release(uv_work_t *req);
static void Async_Release(uv_work_t *req);
static void Async_AfterRelease (uv_work_t *req);

// Commit Method on Connection class
static NAN_METHOD(Commit);
static void Connection::Async_Commit (uv_work_t *req);
static void Async_Commit (uv_work_t *req);
static void Async_AfterCommit (uv_work_t *req);

// Rollback Method on Connection class
static NAN_METHOD(Rollback);
static void Connection::Async_Rollback (uv_work_t *req);
static void Async_Rollback (uv_work_t *req);
static void Async_AfterRollback (uv_work_t *req);

// BreakMethod on Connection class
static NAN_METHOD(Break);
static void Connection::Async_Break(uv_work_t *req);
static void Async_Break(uv_work_t *req);
static void Async_AfterBreak (uv_work_t *req);

// Define Getter Accessors to properties
Expand Down
6 changes: 3 additions & 3 deletions src/njs/src/njsOracle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void Oracledb::Init(Handle<Object> target)
{
NanScope();

Local<FunctionTemplate> temp = FunctionTemplate::New(New);
Local<FunctionTemplate> temp = NanNew<FunctionTemplate>(New);
//Local<FunctionTemplate> temp = NanNew<FunctionTemplate>(New);
temp->InstanceTemplate()->SetInternalFieldCount(1);
temp->SetClassName(NanNew<v8::String>("Oracledb"));
Expand Down Expand Up @@ -142,14 +142,14 @@ void Oracledb::Init(Handle<Object> target)
Invoked when new of oracledb is called from JS

*/
v8::Handle<v8::Value> Oracledb::New(_NAN_METHOD_ARGS)
NAN_METHOD(Oracledb::New)
{
NanScope();

Oracledb *oracledb = new Oracledb();
oracledb->Wrap(args.This());

return args.This();
NanReturnValue(args.This());
}

/*****************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion src/njs/src/njsOracle.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Oracledb: public ObjectWrap
// Define Oracledb Constructor
static Persistent<FunctionTemplate> oracledbTemplate_s;

static v8::Handle<v8::Value> New(_NAN_METHOD_ARGS);
static NAN_METHOD(New);

// Get Connection Methods
static NAN_METHOD(GetConnection);
Expand Down
6 changes: 3 additions & 3 deletions src/njs/src/njsPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void Pool::Init(Handle<Object> target)
{
NanScope();

Local<FunctionTemplate> temp = FunctionTemplate::New(New);
Local<FunctionTemplate> temp = NanNew<FunctionTemplate>(New);
temp->InstanceTemplate()->SetInternalFieldCount(1);
temp->SetClassName(NanNew<v8::String>("Pool"));

Expand Down Expand Up @@ -116,14 +116,14 @@ void Pool::Init(Handle<Object> target)
Invoked when new of pool is called from JS

*/
v8::Handle<v8::Value> Pool::New(_NAN_METHOD_ARGS)
NAN_METHOD(Pool::New)
{
NanScope();

Pool *njsPool = new Pool();
njsPool->Wrap(args.This());

return args.This();
NanReturnValue(args.This());
}

/*****************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion src/njs/src/njsPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Pool: public ObjectWrap {

private:

static v8::Handle<v8::Value> New(_NAN_METHOD_ARGS);
static NAN_METHOD(New);

// Get Connection Methods
static NAN_METHOD(GetConnection);
Expand Down