Fix line endings and trailing whitespace
This commit is contained in:
parent
358f0ce96b
commit
189dd8f803
@ -116,7 +116,7 @@ function setupChannel(target, channel) {
|
|||||||
|
|
||||||
// For overflow protection don't write if channel queue is too deep.
|
// For overflow protection don't write if channel queue is too deep.
|
||||||
if (channel.writeQueueSize > 1024 * 1024) {
|
if (channel.writeQueueSize > 1024 * 1024) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var buffer = Buffer(JSON.stringify(message) + '\n');
|
var buffer = Buffer(JSON.stringify(message) + '\n');
|
||||||
|
@ -56,7 +56,7 @@ exports.isMaster = ! exports.isWorker;
|
|||||||
// Specifies the script to execute for the child processes. Default is
|
// Specifies the script to execute for the child processes. Default is
|
||||||
// process.argv[1]
|
// process.argv[1]
|
||||||
//
|
//
|
||||||
// options.args
|
// options.args
|
||||||
// Specifies program arguments for the workers. The Default is
|
// Specifies program arguments for the workers. The Default is
|
||||||
// process.argv.slice(2)
|
// process.argv.slice(2)
|
||||||
//
|
//
|
||||||
@ -109,7 +109,7 @@ function handleWorkerMessage(worker, message) {
|
|||||||
debug("recv " + JSON.stringify(message));
|
debug("recv " + JSON.stringify(message));
|
||||||
|
|
||||||
switch (message.cmd) {
|
switch (message.cmd) {
|
||||||
case 'online':
|
case 'online':
|
||||||
console.log("Worker " + worker.pid + " online");
|
console.log("Worker " + worker.pid + " online");
|
||||||
workers[message._workerId] = worker;
|
workers[message._workerId] = worker;
|
||||||
break;
|
break;
|
||||||
|
@ -111,7 +111,7 @@ Handle<Value> FSEventWrap::Start(const Arguments& args) {
|
|||||||
if (!args[1]->IsTrue()) {
|
if (!args[1]->IsTrue()) {
|
||||||
uv_unref(uv_default_loop());
|
uv_unref(uv_default_loop());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
SetErrno(uv_last_error(uv_default_loop()));
|
SetErrno(uv_last_error(uv_default_loop()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ namespace node {
|
|||||||
Migrating code C++ Buffer code from v0.2 to v0.3 is difficult. Here are
|
Migrating code C++ Buffer code from v0.2 to v0.3 is difficult. Here are
|
||||||
some tips:
|
some tips:
|
||||||
- buffer->data() calls should become Buffer::Data(buffer) calls.
|
- 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
|
- There should not be any ObjectWrap::Unwrap<Buffer>() calls. You should
|
||||||
not be storing pointers to Buffer objects at all - as they are
|
not be storing pointers to Buffer objects at all - as they are
|
||||||
now considered internal structures. Instead consider making a
|
now considered internal structures. Instead consider making a
|
||||||
|
@ -780,7 +780,7 @@ int Connection::SelectNextProtoCallback_(SSL *s,
|
|||||||
}
|
}
|
||||||
|
|
||||||
return SSL_TLSEXT_ERR_OK;
|
return SSL_TLSEXT_ERR_OK;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
|
#ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
|
||||||
|
@ -193,7 +193,7 @@ class Connection : ObjectWrap {
|
|||||||
BIO *bio_read_;
|
BIO *bio_read_;
|
||||||
BIO *bio_write_;
|
BIO *bio_write_;
|
||||||
SSL *ssl_;
|
SSL *ssl_;
|
||||||
|
|
||||||
bool is_server_; /* coverity[member_decl] */
|
bool is_server_; /* coverity[member_decl] */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ node_module_struct* get_builtin_module(const char *name)
|
|||||||
char buf[128];
|
char buf[128];
|
||||||
node_module_struct *cur = NULL;
|
node_module_struct *cur = NULL;
|
||||||
snprintf(buf, sizeof(buf), "node_%s", name);
|
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. */
|
* a few, and once loaded they are cached. */
|
||||||
for (int i = 0; node_module_list[i] != NULL; i++) {
|
for (int i = 0; node_module_list[i] != NULL; i++) {
|
||||||
cur = node_module_list[i];
|
cur = node_module_list[i];
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
// Copyright Joyent, Inc. and other Node contributors.
|
// Copyright Joyent, Inc. and other Node contributors.
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
// copy of this software and associated documentation files (the
|
// copy of this software and associated documentation files (the
|
||||||
// "Software"), to deal in the Software without restriction, including
|
// "Software"), to deal in the Software without restriction, including
|
||||||
// without limitation the rights to use, copy, modify, merge, publish,
|
// without limitation the rights to use, copy, modify, merge, publish,
|
||||||
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
// 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
|
// persons to whom the Software is furnished to do so, subject to the
|
||||||
// following conditions:
|
// following conditions:
|
||||||
//
|
//
|
||||||
// The above copyright notice and this permission notice shall be included
|
// The above copyright notice and this permission notice shall be included
|
||||||
// in all copies or substantial portions of the Software.
|
// in all copies or substantial portions of the Software.
|
||||||
//
|
//
|
||||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
||||||
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
// 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
|
// 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
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||||
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
#ifndef NODE_PLATFORM_WIN32_H_
|
#ifndef NODE_PLATFORM_WIN32_H_
|
||||||
#define NODE_PLATFORM_WIN32_H_
|
#define NODE_PLATFORM_WIN32_H_
|
||||||
|
|
||||||
@ -56,15 +56,15 @@
|
|||||||
# define NOMCX
|
# define NOMCX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <winsock2.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 {
|
namespace node {
|
||||||
|
|
||||||
#define NO_IMPL_MSG(...) \
|
#define NO_IMPL_MSG(...) \
|
||||||
|
@ -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
|
// I'm too lazy to come up with the perfect class hierarchy here. Let's
|
||||||
// just do some type munging.
|
// just do some type munging.
|
||||||
ConnectWrap* req_wrap = new ConnectWrap();
|
ConnectWrap* req_wrap = new ConnectWrap();
|
||||||
|
|
||||||
int r = uv_tcp_connect(&req_wrap->req_, &wrap->handle_, address,
|
int r = uv_tcp_connect(&req_wrap->req_, &wrap->handle_, address,
|
||||||
AfterConnect);
|
AfterConnect);
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ class TTYWrap : StreamWrap {
|
|||||||
|
|
||||||
static Handle<Value> GetWindowSize(const Arguments& args) {
|
static Handle<Value> GetWindowSize(const Arguments& args) {
|
||||||
HandleScope scope;
|
HandleScope scope;
|
||||||
|
|
||||||
UNWRAP
|
UNWRAP
|
||||||
|
|
||||||
int width, height;
|
int width, height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user