Browse Source

Move stdio to extension model.

v0.7.4-release
Paul Querna 15 years ago
committed by Ryan Dahl
parent
commit
e5bb8abc9d
  1. 6
      src/node.cc
  2. 3
      src/node_extensions.h
  3. 2
      src/node_stdio.cc

6
src/node.cc

@ -1586,12 +1586,6 @@ static Handle<Value> Binding(const Arguments& args) {
exports = Object::New(); exports = Object::New();
modp->register_func(exports); modp->register_func(exports);
binding_cache->Set(module, exports); binding_cache->Set(module, exports);
}
else if (!strcmp(*module_v, "stdio")) {
exports = Object::New();
Stdio::Initialize(exports);
binding_cache->Set(module, exports);
} else if (!strcmp(*module_v, "cares")) { } else if (!strcmp(*module_v, "cares")) {
exports = Object::New(); exports = Object::New();
Cares::Initialize(exports); Cares::Initialize(exports);

3
src/node_extensions.h

@ -1,8 +1,9 @@
NODE_EXT_LIST_START NODE_EXT_LIST_START
NODE_EXT_LIST_ITEM(node_net)
#ifdef HAVE_OPENSSL #ifdef HAVE_OPENSSL
NODE_EXT_LIST_ITEM(node_crypto) NODE_EXT_LIST_ITEM(node_crypto)
#endif #endif
NODE_EXT_LIST_ITEM(node_net)
NODE_EXT_LIST_ITEM(node_stdio)
NODE_EXT_LIST_END NODE_EXT_LIST_END

2
src/node_stdio.cc

@ -216,3 +216,5 @@ void Stdio::Initialize(v8::Handle<v8::Object> target) {
} // namespace node } // namespace node
NODE_MODULE(node_stdio, node::Stdio::Initialize);

Loading…
Cancel
Save