Browse Source

Add node::Start()

first step towards building a libnode.a
v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
124fbedc2f
  1. 8
      src/node.cc
  2. 2
      src/node.h
  3. 1
      wscript

8
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

2
src/node.h

@ -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 */

1
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

Loading…
Cancel
Save