summaryrefslogtreecommitdiff
path: root/src/node_extensions.cc
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headersRyan Dahl2011-03-141-0/+21
|
* Register builtin extensions via a macro, rather than a manual strcmpPaul Querna2010-07-141-0/+46
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.