mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
30dadfc033b45842691cef02caf059ba5db0b63a
Set the stage for making the builtin modules more dynamic.
Note: this only converts crypto and net, I will add more extensions in a
later commit.
* node.h: Add utility macro for converting macro values to strings.
* node.h: Include the actual module name inside the module structure, not
just the file it was built from.
* node.h: New Macro, NODE_MODULE_DECL, for declaring an external reference
to a module structure.
* node_extensions.cc: New File, implements get_builtin_module, which
iterates over the module structures that are compiled into node.
* node.cc(node::Binding): Use the new module lookup function to find
modules.
* node_{net,crypto}.c: Add NODE_MODULEs to generate the module structure.
Evented I/O for V8 javascript. To build: ./configure make make install To run the tests: make test To build the documentation: make doc To read the documentation: man doc/node.1 See http://nodejs.org/ for more information. For help and discussion subscribe to the mailing list by visiting http://groups.google.com/group/nodejs or by sending an email to nodejs+subscribe@googlegroups.com.
Description