Add node::Start()

first step towards building a libnode.a
pull/5370/head
Ryan Dahl 2010-09-19 13:13:57 -07:00
parent db73c71280
commit 124fbedc2f
3 changed files with 7 additions and 4 deletions

View File

@ -1744,10 +1744,7 @@ static void AtExit() {
}
} // namespace node
int main(int argc, char *argv[]) {
int Start(int argc, char *argv[]) {
// Hack aroung with the argv pointer. Used for process.title = "blah".
argv = node::OS::SetupArgs(argc, argv);
@ -1879,3 +1876,6 @@ int main(int argc, char *argv[]) {
#endif // NDEBUG
return 0;
}
} // namespace node

View File

@ -17,6 +17,8 @@
namespace node {
int Start (int argc, char *argv[]);
#define NODE_PSYMBOL(s) Persistent<String>::New(String::NewSymbol(s))
/* Converts a unixtime to V8 Date */

View File

@ -474,6 +474,7 @@ def build(bld):
node.install_path = '${PREFIX}/bin'
node.chmod = 0755
node.source = """
src/node_main.cc
src/node.cc
src/node_buffer.cc
src/node_extensions.cc