Rename node_net2.cc to node_net.cc

v0.7.4-release
Ryan Dahl 2010-05-29 13:08:05 -07:00
parent a26f7d753d
commit 78e49f1c88
5 changed files with 17 additions and 17 deletions

View File

@ -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>
@ -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);
}

View File

@ -1,4 +1,4 @@
#include <node_net2.h>
#include <node_net.h>
#include <v8.h>
#include <node.h>
@ -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);

12
src/node_net.h 100644
View File

@ -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

View File

@ -1,12 +0,0 @@
#ifndef NODE_NET2
#define NODE_NET2
#include <v8.h>
namespace node {
void InitNet2(v8::Handle<v8::Object> target);
}
#endif // NODE_NET2

View File

@ -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