Skip to content

Commit

Permalink
Rename node_net2.cc to node_net.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 29, 2010
1 parent a26f7d7 commit 78e49f1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/node.cc
Expand Up @@ -19,7 +19,7 @@

#include <node_buffer.h>
#include <node_io_watcher.h>
#include <node_net2.h>
#include <node_net.h>
#include <node_events.h>
#include <node_cares.h>
#include <node_file.h>
Expand Down Expand Up @@ -1783,7 +1783,7 @@ static Handle<Value> Binding(const Arguments& args) {
exports = binding_cache->Get(module)->ToObject();
} else {
exports = Object::New();
InitNet2(exports);
InitNet(exports);
binding_cache->Set(module, exports);
}

Expand Down
4 changes: 2 additions & 2 deletions src/node_net2.cc → src/node_net.cc
@@ -1,4 +1,4 @@
#include <node_net2.h>
#include <node_net.h>
#include <v8.h>

#include <node.h>
Expand Down Expand Up @@ -799,7 +799,7 @@ static Handle<Value> CreateErrnoException(const Arguments& args) {
}


void InitNet2(Handle<Object> target) {
void InitNet(Handle<Object> target) {
HandleScope scope;

NODE_SET_METHOD(target, "write", Write);
Expand Down
12 changes: 12 additions & 0 deletions src/node_net.h
@@ -0,0 +1,12 @@
#ifndef NODE_NET
#define NODE_NET

#include <v8.h>

namespace node {

void InitNet(v8::Handle<v8::Object> target);

}

#endif // NODE_NET
12 changes: 0 additions & 12 deletions src/node_net2.h

This file was deleted.

2 changes: 1 addition & 1 deletion wscript
Expand Up @@ -318,7 +318,7 @@ def build(bld):
src/node.cc
src/node_buffer.cc
src/node_http_parser.cc
src/node_net2.cc
src/node_net.cc
src/node_io_watcher.cc
src/node_child_process.cc
src/node_constants.cc
Expand Down

0 comments on commit 78e49f1

Please sign in to comment.