Browse Source

Fix line endings and trailing whitespace

v0.7.4-release
Bert Belder 13 years ago
parent
commit
189dd8f803
  1. 2
      lib/child_process.js
  2. 4
      lib/cluster.js
  3. 2
      src/fs_event_wrap.cc
  4. 2
      src/node_buffer.h
  5. 2
      src/node_crypto.cc
  6. 2
      src/node_crypto.h
  7. 2
      src/node_extensions.cc
  8. 58
      src/platform_win32.h
  9. 2
      src/tcp_wrap.cc
  10. 2
      src/tty_wrap.cc

2
lib/child_process.js

@ -116,7 +116,7 @@ function setupChannel(target, channel) {
// For overflow protection don't write if channel queue is too deep.
if (channel.writeQueueSize > 1024 * 1024) {
return false;
return false;
}
var buffer = Buffer(JSON.stringify(message) + '\n');

4
lib/cluster.js

@ -56,7 +56,7 @@ exports.isMaster = ! exports.isWorker;
// Specifies the script to execute for the child processes. Default is
// process.argv[1]
//
// options.args
// options.args
// Specifies program arguments for the workers. The Default is
// process.argv.slice(2)
//
@ -109,7 +109,7 @@ function handleWorkerMessage(worker, message) {
debug("recv " + JSON.stringify(message));
switch (message.cmd) {
case 'online':
case 'online':
console.log("Worker " + worker.pid + " online");
workers[message._workerId] = worker;
break;

2
src/fs_event_wrap.cc

@ -111,7 +111,7 @@ Handle<Value> FSEventWrap::Start(const Arguments& args) {
if (!args[1]->IsTrue()) {
uv_unref(uv_default_loop());
}
} else {
} else {
SetErrno(uv_last_error(uv_default_loop()));
}

2
src/node_buffer.h

@ -50,7 +50,7 @@ namespace node {
Migrating code C++ Buffer code from v0.2 to v0.3 is difficult. Here are
some tips:
- buffer->data() calls should become Buffer::Data(buffer) calls.
- buffer->length() calls should become Buffer::Length(buffer) calls.
- buffer->length() calls should become Buffer::Length(buffer) calls.
- There should not be any ObjectWrap::Unwrap<Buffer>() calls. You should
not be storing pointers to Buffer objects at all - as they are
now considered internal structures. Instead consider making a

2
src/node_crypto.cc

@ -780,7 +780,7 @@ int Connection::SelectNextProtoCallback_(SSL *s,
}
return SSL_TLSEXT_ERR_OK;
}
}
#endif
#ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB

2
src/node_crypto.h

@ -193,7 +193,7 @@ class Connection : ObjectWrap {
BIO *bio_read_;
BIO *bio_write_;
SSL *ssl_;
bool is_server_; /* coverity[member_decl] */
};

2
src/node_extensions.cc

@ -56,7 +56,7 @@ node_module_struct* get_builtin_module(const char *name)
char buf[128];
node_module_struct *cur = NULL;
snprintf(buf, sizeof(buf), "node_%s", name);
/* TODO: you could look these up in a hash, but there are only
/* TODO: you could look these up in a hash, but there are only
* a few, and once loaded they are cached. */
for (int i = 0; node_module_list[i] != NULL; i++) {
cur = node_module_list[i];

58
src/platform_win32.h

@ -1,24 +1,24 @@
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef NODE_PLATFORM_WIN32_H_
#define NODE_PLATFORM_WIN32_H_
@ -56,15 +56,15 @@
# define NOMCX
#endif
#include <windows.h>
#include <winsock2.h>
#include <windows.h>
#include <winsock2.h>
#if defined(_MSC_VER)
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
#endif
#if defined(_MSC_VER)
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
#endif
namespace node {
#define NO_IMPL_MSG(...) \

2
src/tcp_wrap.cc

@ -422,7 +422,7 @@ Handle<Value> TCPWrap::Connect(const Arguments& args) {
// I'm too lazy to come up with the perfect class hierarchy here. Let's
// just do some type munging.
ConnectWrap* req_wrap = new ConnectWrap();
int r = uv_tcp_connect(&req_wrap->req_, &wrap->handle_, address,
AfterConnect);

2
src/tty_wrap.cc

@ -116,7 +116,7 @@ class TTYWrap : StreamWrap {
static Handle<Value> GetWindowSize(const Arguments& args) {
HandleScope scope;
UNWRAP
int width, height;

Loading…
Cancel
Save