Peter Bright
13d6a1f67f
Basic VC++ compatibility work.
14 years ago
Mariano Iglesias
02ebcd8e26
Adding missing v8 namespace to NODE_PSYMBOL
14 years ago
Mariano Iglesias
075605f304
Adding missing v8 namespace to NODE_PSYMBOL
14 years ago
Henry Rawas
47a5d93256
Fix test-net-pingpong.js on windows
14 years ago
Ryan Dahl
650a308634
Move MakeCallback and SetErrno to node.cc
14 years ago
Bert Belder
9cec08e490
Batch of ev -> uv changes
14 years ago
Ryan Dahl
c8e447ee63
Fix timeouts with floating point numbers bug
fixes #897 .
14 years ago
Dean McNamee
f67e8f243c
Export more functions for initializing and starting node.
For greater flexibility in controlling node's initialization and startup, the
following new functions are exported.
- node::Init()
- node::SetupProcessObject()
- node::Load()
- node::EmitExit()
These are some of the major steps involved in node::Setup(). Exporting these
functions allows an embedding program to write a replacement for node::Start(),
and to have access to the node process object after it's created.
14 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Ryan Dahl
161f7aacf7
Add missing v8:: namespace prefix
14 years ago
isaacs
0aa1a8a005
Closes GH-695 Add 'hex' encoding to Buffer
14 years ago
Konstantin Käfer
9e101f2b01
UCS-2 support
Closes GH-644.
14 years ago
Bert Belder
f48c36f74f
Use unicode and bigfile aware stat/fstat
14 years ago
Ryan Dahl
b57c1f51b9
Saner, yet still ugly, fix to displaying syntax errors
14 years ago
Ben Noordhuis
55c65cc2d5
Safe constructor for ObjectWrapped classes
New() methods should be invoked as constructors, not regular functions.
Corner cases like Script::New() may cause a SIGSEGV when the GC is run.
More details: http://groups.google.com/group/nodejs/browse_thread/thread/a7e5db68d4cd6356
14 years ago
Ryan Dahl
124fbedc2f
Add node::Start()
first step towards building a libnode.a
14 years ago
Fedor Indutny
db23af05b0
Constants should be readOnly and DontDelete
15 years ago
Ben Noordhuis
95638c9b0d
Buffer: adjust buffer size so the base64-decoded input fits snugly.
Stops Valgrind from complaining about uninitialized memory access.
15 years ago
Paul Querna
30dadfc033
Register builtin extensions via a macro, rather than a manual strcmp
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.
15 years ago
Paul Querna
49066042a2
Add basic structure and macros for node modules.
15 years ago
visionmedia
45948e054d
Added better error messages for async and sync fs calls with paths
15 years ago
Felix Geisendörfer
f8a3cf980f
Properly handle child process exit codes
The child process 'exit' was returning the status of the process, rather than
the exit code. This patch properly deconstructs the status into the exit code
and the term signal a process may have received.
See:
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#Watcher_Specific_Functions_and_Data_-5
and waitpid(2)
15 years ago
Ryan Dahl
c72967d335
Remove http_old tcp_old
15 years ago
Ryan Dahl
c9e27b11c5
Unify ErrnoException creation
15 years ago
Ryan Dahl
3377a30fb8
Move cb_persist functions out of dns module
15 years ago
Ryan Dahl
45a806a066
Statically define symbols
~7% improvement in hello world HTTP response bench.
15 years ago
choonkeat
44d5f212fe
Stat::Callback has 2 arguments for callback: current stat info and previous stat info
http://groups.google.com/group/nodejs/msg/f8e51a8e0c74bd85
15 years ago
Ryan Dahl
a5df0f6a65
Prefix all source files with node_
15 years ago
Ryan Dahl
e7096fd769
ACTUALLY remove node_version.h from node.h
15 years ago
Ryan Dahl
07792afe0a
Remove "raw" encoding. Rename "raws" to "binary".
Deprecation warnings have been added to help the conversion to this new API.
15 years ago
Ryan
d6c9d31cb5
cpplint.py node.cc and node.h
16 years ago
Ryan
8890070b88
Introduce "raws" encoding. Raw String.
This allows you to have binary data imported into your application via
strings instead of arrays of numbers! This needs testing before release.
16 years ago
Ryan
21a1b045f5
Byte stream to V8 decoding and encoding.
This does not (should not) change behavior. Pulls those two functions
(encode/decode) out into node.cc.
16 years ago
Ryan
2f46540d30
Create NODE_UNIXTIME macros
16 years ago
Ryan
8152f9cff2
Revert static library build.
Not necessary to build dll modules after all.
16 years ago
Ryan
b73264d9b3
Add command line arguments for accessing build flags.
node --cflags
node --libs
At the expense of some WAF nastiness.
16 years ago
Ryan
2b6d72431b
First attempt at node.dlopen
Compiled first working 'hello world' module with this config
16 years ago
Ryan
31db4f1ed8
bump version
16 years ago
Ryan
116f4dea05
lint
16 years ago
Ryan
19f182a39f
Experimental support for Promise.block()
16 years ago
Ryan
8658999c7d
Refactor node.Process to take advantage of evcom_reader/writer.
16 years ago
Ryan
9c97b1db30
bump version
16 years ago
Ryan
a73998d6f4
bump version
16 years ago
Ryan
0f888ed6de
bump version
16 years ago
Ryan
7464d42310
bump version
16 years ago
Ryan
1bf9be6b37
Add node.version
16 years ago
Ryan
0fb0af3a6c
Rename evnet to evcom.
16 years ago
Ryan
c5ab0d5a80
Upgrade liboi, which is now called evnet.
16 years ago
Ryan
1fc4dce08b
Simplify and cleanup ObjectWrap.
Simplify and inline ObjectWrap::Wrap
Inline and clean up ObjectWrap::Unwrap
Move ObjectWrap into its own file.
Remove handle from ObjectWrap constructor. add obj->Wrap(handle)
Simplify Attach/Detach in ObjectWrap
Remove ObjectWrap::InformV8ofAllocation. (Too messy/complex.)
16 years ago
Ryan
65324866bc
Implement Promises for file i/o
16 years ago