Skip to content

update for node 0.5.9 #29

Description

@tojocky

Hello,

I propose to update to the node 0.5.9 version.

The patch is attached:

Author: Ion Lupascu <ionlupascu@gmail.com> 2011-10-12 21:56:56   
Committer:   
Parent: b958260e1ba703ce98cebf8fe39fe7f266d59560 (updated stress test)
Branch: 
Follows: 
Precedes: 

Corrected code with node 0.5.9

Signed-off-by: Ion Lupascu <ionlupascu@gmail.com>

-------------------------------- include/blob.h --------------------------------
index 5e7243c..34ed78b 100755
@@ -137,7 +137,7 @@ class GitBlob : public ObjectWrap {
      * Returns:
      *   completion code integer
      */
-    static int EIO_Lookup(eio_req* req);
+    static void EIO_Lookup(eio_req* req);
     /**
      * Function: EIO_AfterLookup
      *

------------------------------- include/commit.h -------------------------------
index e11c2cf..5fff9cf 100755
@@ -59,7 +59,7 @@ class GitCommit : public EventEmitter {
     static Handle<Value> New(const Arguments& args);

     static Handle<Value> Lookup(const Arguments& args);
-    static int EIO_Lookup(eio_req *req);
+    static void EIO_Lookup(eio_req *req);
     static int EIO_AfterLookup(eio_req *req);

     static Handle<Value> Close(const Arguments& args);

----------------------------- include/reference.h -----------------------------
index ea47c13..b669b95 100755
@@ -33,7 +33,7 @@ class GitReference : public EventEmitter {
     static Handle<Value> New(const Arguments& args);

     static Handle<Value> Lookup(const Arguments& args);
-    static int EIO_Lookup(eio_req* req);
+    static void EIO_Lookup(eio_req* req);
     static int EIO_AfterLookup(eio_req* req);

     static Handle<Value> Oid(const Arguments& args);

-------------------------------- include/repo.h --------------------------------
index 620877a..b153f60 100755
@@ -43,7 +43,7 @@ class GitRepo : public EventEmitter {
     static Handle<Value> New(const Arguments& args);

     static Handle<Value> Open(const Arguments& args);
-    static int EIO_Open(eio_req* req);
+    static void EIO_Open(eio_req* req);
     static int EIO_AfterOpen(eio_req* req);

     static Handle<Value> Lookup(const Arguments& args);
@@ -53,7 +53,7 @@ class GitRepo : public EventEmitter {
     static Handle<Value> Free(const Arguments& args);

     static Handle<Value> Init(const Arguments& args);
-    static int EIO_Init(eio_req* req);
+    static void EIO_Init(eio_req* req);
     static int EIO_AfterInit(eio_req* req);

   private:

------------------------------ include/revwalk.h ------------------------------
index 0a86ae2..ca0cbfb 100755
@@ -42,7 +42,7 @@ class GitRevWalk : public EventEmitter {
     static Handle<Value> Hide(const Arguments& args);

     static Handle<Value> Next(const Arguments& args);
-    static int EIO_Next(eio_req* req);
+    static void EIO_Next(eio_req* req);
     static int EIO_AfterNext(eio_req* req);

     static Handle<Value> Sorting(const Arguments& args);

-------------------------------- include/tree.h --------------------------------
index 696d463..59df855 100755
@@ -98,10 +98,10 @@ class GitTree : public EventEmitter {
     static int EIO_AfterLookup(eio_req *req);
     static Handle<Value> EntryCount(const Arguments& args);
     static Handle<Value> EntryByIndex(const Arguments& args);
-    static int EIO_EntryByIndex(eio_req *req);
+    static void EIO_EntryByIndex(eio_req *req);
     static int EIO_AfterEntryByIndex(eio_req *req);
     static Handle<Value> EntryByName(const Arguments& args);
-    static int EIO_EntryByName(eio_req *req);
+    static void EIO_EntryByName(eio_req *req);
     static int EIO_AfterEntryByName(eio_req *req);
     static Handle<Value> SortEntries(const Arguments& args);
     static Handle<Value> ClearEntries(const Arguments& args);

--------------------------------- src/blob.cc ---------------------------------
index 4b58f17..6ff8069 100755
@@ -111,13 +111,13 @@ Handle<Value> GitBlob::Lookup(const Arguments& args) {
   return scope.Close( Undefined() );
 }

-int GitBlob::EIO_Lookup(eio_req* req) {
+void GitBlob::EIO_Lookup(eio_req* req) {
   lookup_request* ar = static_cast<lookup_request* >(req->data);

   git_oid oid = ar->oid->GetValue();
   ar->err = ar->blob->Lookup(ar->repo->GetValue(), &oid);

-  return 0;
+  return;
 }

 int GitBlob::EIO_AfterLookup(eio_req* req) {

-------------------------------- src/commit.cc --------------------------------
index d7ec943..3e2a9db 100755
@@ -146,13 +146,13 @@ Handle<Value> GitCommit::Lookup(const Arguments& args) {
   return scope.Close( Undefined() );
 }

-int GitCommit::EIO_Lookup(eio_req *req) {
+void GitCommit::EIO_Lookup(eio_req *req) {
   lookup_request *ar = static_cast<lookup_request *>(req->data);

   git_oid oid = ar->oid->GetValue();
   ar->err = ar->commit->Lookup(ar->repo->GetValue(), &oid);

-  return 0;
+  return;
 }

 int GitCommit::EIO_AfterLookup(eio_req *req) {

------------------------------- src/reference.cc -------------------------------
index ab37f87..b1d2784 100755
@@ -94,14 +94,14 @@ Handle<Value> GitReference::Lookup(const Arguments& args) {
   return scope.Close( Undefined() );
 }

-int GitReference::EIO_Lookup(eio_req *req) {
+void GitReference::EIO_Lookup(eio_req *req) {
   lookup_request *ar = static_cast<lookup_request *>(req->data);

   git_repository* repo = ar->repo->GetValue();

   ar->err = ar->ref->Lookup(repo, ar->name.c_str());

-  return 0;
+  return;
 }

 int GitReference::EIO_AfterLookup(eio_req *req) {

--------------------------------- src/repo.cc ---------------------------------
index d288ef6..13e0dc1 100755
@@ -101,12 +101,12 @@ Handle<Value> GitRepo::Open(const Arguments& args) {
   return scope.Close( Undefined() );
 }

-int GitRepo::EIO_Open(eio_req *req) {
+void GitRepo::EIO_Open(eio_req *req) {
   open_request *ar = static_cast<open_request *>(req->data);

   ar->err = ar->repo->Open(ar->path.c_str());

-  return 0;
+  return;
 }

 int GitRepo::EIO_AfterOpen(eio_req *req) {
@@ -258,12 +258,12 @@ Handle<Value> GitRepo::Init(const Arguments& args) {
   return scope.Close( Undefined() );
 }

-int GitRepo::EIO_Init(eio_req *req) {
+void GitRepo::EIO_Init(eio_req *req) {
   init_request *ar = static_cast<init_request *>(req->data);

   ar->err = ar->repo->Init(ar->path.c_str(), ar->is_bare);

-  return 0;
+  return;
 }

 int GitRepo::EIO_AfterInit(eio_req *req) {

-------------------------------- src/revwalk.cc --------------------------------
index 3cc8f47..f7a73c0 100755
@@ -156,14 +156,14 @@ Handle<Value> GitRevWalk::Next(const Arguments& args) {
   return scope.Close( Undefined() );
 }

-int GitRevWalk::EIO_Next(eio_req *req) {
+void GitRevWalk::EIO_Next(eio_req *req) {
   next_request *ar = static_cast<next_request *>(req->data);
   git_oid oid = ar->oid->GetValue();

   ar->err = ar->revwalk->Next(&oid);
   ar->oid->SetValue(oid);

-  return 0;
+  return;
 }

 int GitRevWalk::EIO_AfterNext(eio_req *req) {

--------------------------------- src/tree.cc ---------------------------------
index be10471..5311f8f 100755
@@ -190,12 +190,12 @@ Handle<Value> GitTree::EntryByIndex(const Arguments& args) {
   return scope.Close( Undefined() );
 }

-int GitTree::EIO_EntryByIndex(eio_req *req) {
+void GitTree::EIO_EntryByIndex(eio_req *req) {
   entryindex_request *er = static_cast<entryindex_request *>(req->data);

   er->entry->SetValue(er->tree->EntryByIndex(er->idx));

-  return 0;
+  return;
 }

 int GitTree::EIO_AfterEntryByIndex(eio_req *req) {
@@ -256,12 +256,12 @@ Handle<Value> GitTree::EntryByName(const Arguments& args) {
   return scope.Close( Undefined() );
 }

-int GitTree::EIO_EntryByName(eio_req *req) {
+void GitTree::EIO_EntryByName(eio_req *req) {
   entryname_request *er = static_cast<entryname_request *>(req->data);

   er->entry->SetValue(er->tree->EntryByName(er->name.c_str()));

-  return 0;
+  return;
 }

 int GitTree::EIO_AfterEntryByName(eio_req *req) {


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions