From 124fbedc2fa3ca6620f6c18195bb42d6c1305af8 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 19 Sep 2010 13:13:57 -0700 Subject: [PATCH] Add node::Start() first step towards building a libnode.a --- src/node.cc | 8 ++++---- src/node.h | 2 ++ wscript | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/node.cc b/src/node.cc index 7b29eea..f4b0820 100644 --- a/src/node.cc +++ b/src/node.cc @@ -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 diff --git a/src/node.h b/src/node.h index 901d853..c73df2a 100644 --- a/src/node.h +++ b/src/node.h @@ -17,6 +17,8 @@ namespace node { +int Start (int argc, char *argv[]); + #define NODE_PSYMBOL(s) Persistent::New(String::NewSymbol(s)) /* Converts a unixtime to V8 Date */ diff --git a/wscript b/wscript index 565b286..bcbe691 100644 --- a/wscript +++ b/wscript @@ -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 -- 2.7.4