// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
-#include <assert.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-
#define CARES_STATICLIB
#include "ares.h"
#include "node.h"
#include "tree.h"
#include "uv.h"
+#include <assert.h>
+#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+
#if defined(__ANDROID__) || \
defined(__MINGW32__) || \
defined(__OpenBSD__) || \
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+#include "handle_wrap.h"
#include "node.h"
#include "queue.h"
-#include "handle_wrap.h"
namespace node {
#ifndef SRC_HANDLE_WRAP_H_
#define SRC_HANDLE_WRAP_H_
+#include "node.h"
#include "queue.h"
+#include "uv.h"
+#include "v8.h"
namespace node {
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "node.h"
-#include "req_wrap.h"
-#include "handle_wrap.h"
-#include "string_bytes.h"
+#include "node_buffer.h"
+#include "node_constants.h"
+#include "node_file.h"
+#include "node_http_parser.h"
+#include "node_javascript.h"
+#include "node_script.h"
+#include "node_version.h"
-#include "ares.h"
-#include "uv.h"
+#if defined HAVE_PERFCTR
+#include "node_counters.h"
+#endif
+
+#if HAVE_OPENSSL
+#include "node_crypto.h"
+#endif
-#include "v8-debug.h"
#if defined HAVE_DTRACE || defined HAVE_ETW || defined HAVE_SYSTEMTAP
-# include "node_dtrace.h"
+#include "node_dtrace.h"
#endif
-#if defined HAVE_PERFCTR
-# include "node_counters.h"
+
+#if HAVE_SYSTEMTAP
+#include "node_provider.h"
#endif
+#include "ares.h"
+#include "handle_wrap.h"
+#include "req_wrap.h"
+#include "string_bytes.h"
+#include "uv.h"
+#include "v8-debug.h"
+#include "zlib.h"
+
+#include <assert.h>
+#include <errno.h>
+#include <limits.h> // PATH_MAX
#include <locale.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if !defined(_MSC_VER)
-#include <strings.h>
-#else
-#define strcasecmp _stricmp
-#endif
-#include <limits.h> /* PATH_MAX */
-#include <assert.h>
-#if !defined(_MSC_VER)
-#include <unistd.h> /* setuid, getuid */
-#else
+#include <sys/types.h>
+
+#if defined(_MSC_VER)
#include <direct.h>
+#include <io.h>
#include <process.h>
+#include <strings.h>
+#define strcasecmp _stricmp
#define getpid _getpid
-#include <io.h>
#define umask _umask
typedef int mode_t;
+#else
+#include <unistd.h> // setuid, getuid
#endif
-#include <errno.h>
-#include <sys/types.h>
-#include "zlib.h"
#if defined(__POSIX__) && !defined(__ANDROID__)
-# include <pwd.h> /* getpwnam() */
-# include <grp.h> /* getgrnam() */
+#include <pwd.h> // getpwnam()
+#include <grp.h> // getgrnam()
#endif
-#include "node_buffer.h"
-#include "node_file.h"
-#include "node_http_parser.h"
-#include "node_constants.h"
-#include "node_javascript.h"
-#include "node_version.h"
-#if HAVE_OPENSSL
-# include "node_crypto.h"
-#endif
-#if HAVE_SYSTEMTAP
-#include "node_provider.h"
-#endif
-#include "node_script.h"
-
#ifdef __APPLE__
-# include <crt_externs.h>
-# define environ (*_NSGetEnviron())
+#include <crt_externs.h>
+#define environ (*_NSGetEnviron())
#elif !defined(_MSC_VER)
extern char **environ;
#endif
# define SIGKILL 9
#endif
-#include "node_version.h" /* NODE_MODULE_VERSION */
-#include "uv.h"
-#include "v8.h"
-
-#include <sys/types.h> /* struct stat */
-#include <sys/stat.h>
-#include <assert.h>
-
+#include "node_version.h" // NODE_MODULE_VERSION
#include "node_object_wrap.h"
// Forward-declare these functions now to stop MSVS from becoming
} // namespace node
#if NODE_WANT_INTERNALS
-# include "node_internals.h"
+#include "node_internals.h"
#endif
+#include "uv.h"
+#include "v8.h"
+
+#include <assert.h>
+
#ifndef NODE_STRINGIFY
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
#define NODE_STRINGIFY_HELPER(n) #n
#define SRC_NODE_COUNTERS_H_
#include "node.h"
-#include "v8.h"
-
-namespace node {
-
-void InitPerfCounters(v8::Handle<v8::Object> target);
-void TermPerfCounters(v8::Handle<v8::Object> target);
-
-} // namespace node
#ifdef HAVE_PERFCTR
#include "node_win32_perfctr_provider.h"
#define NODE_COUNT_PIPE_BYTES_RECV(bytes)
#endif
+#include "v8.h"
+
+namespace node {
+
+void InitPerfCounters(v8::Handle<v8::Object> target);
+void TermPerfCounters(v8::Handle<v8::Object> target);
+
+} // namespace node
+
#endif // SRC_NODE_COUNTERS_H_
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+#include "node.h"
+#include "node_buffer.h"
#include "node_crypto.h"
#include "node_crypto_bio.h"
#include "node_crypto_groups.h"
-#include "v8.h"
+#include "node_root_certs.h"
-#include "node.h"
-#include "node_buffer.h"
#include "string_bytes.h"
-#include "node_root_certs.h"
+#include "v8.h"
+#include <errno.h>
+#include <stdlib.h>
#include <string.h>
-#ifdef _MSC_VER
+
+#if defined(_MSC_VER)
#define strcasecmp _stricmp
#endif
-#include <stdlib.h>
-#include <errno.h>
-
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
-# define OPENSSL_CONST const
+#define OPENSSL_CONST const
#else
-# define OPENSSL_CONST
+#define OPENSSL_CONST
#endif
#define ASSERT_IS_STRING_OR_BUFFER(val) do { \
#define SRC_NODE_CRYPTO_H_
#include "node.h"
-
#include "node_object_wrap.h"
+
+#ifdef OPENSSL_NPN_NEGOTIATED
+#include "node_buffer.h"
+#endif
+
#include "v8.h"
#include <openssl/ssl.h>
#include <openssl/rand.h>
#include <openssl/pkcs12.h>
-#ifdef OPENSSL_NPN_NEGOTIATED
-#include "node_buffer.h"
-#endif
-
#define EVP_F_EVP_DECRYPTFINAL 101
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
-#include "node_http_parser.h"
-
-#include "v8.h"
#include "node.h"
#include "node_buffer.h"
+#include "node_http_parser.h"
+#include "v8.h"
-#include <string.h> /* strdup() */
-#if !defined(_MSC_VER)
-#include <strings.h> /* strcasecmp() */
-#else
+#include <stdlib.h> // free()
+#include <string.h> // strdup()
+
+#if defined(_MSC_VER)
#define strcasecmp _stricmp
+#else
+#include <strings.h> // strcasecmp()
#endif
-#include <stdlib.h> /* free() */
// This is a binding to http_parser (https://github.com/joyent/http-parser)
// The goal is to decouple sockets from parsing for more javascript-level
#ifndef SRC_NODE_INTERNALS_H_
#define SRC_NODE_INTERNALS_H_
+#include "v8.h"
+
#include <assert.h>
#include <stdlib.h>
-#include "v8.h"
-
struct sockaddr;
namespace node {
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
-#include "v8.h"
#include "node.h"
#include "node_natives.h"
+#include "v8.h"
#include <string.h>
#if !defined(_MSC_VER)
#ifndef SRC_NODE_WIN32_ETW_PROVIDER_H_
#define SRC_NODE_WIN32_ETW_PROVIDER_H_
-#include <evntprov.h>
#include "node_dtrace.h"
+#include <evntprov.h>
namespace node {
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+#define __INIT_node_perfctr_provider_IMP
#include "node_counters.h"
-#include <perflib.h>
+#include "node_perfctr_provider.h"
#include "node_win32_perfctr_provider.h"
-#define __INIT_node_perfctr_provider_IMP
-#include <node_perfctr_provider.h>
+#include <perflib.h>
typedef ULONG (WINAPI *PerfStartProviderExFunc)(
__in LPGUID ProviderGuid,
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+#include "node.h"
+#include "node_buffer.h"
#include "v8.h"
+#include "zlib.h"
+
#include <errno.h>
-#include <string.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
-#include "zlib.h"
-#include "node.h"
-#include "node_buffer.h"
-
-
namespace node {
using v8::FunctionCallbackInfo;
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+#include "pipe_wrap.h"
#include "node.h"
#include "node_buffer.h"
-#include "req_wrap.h"
#include "handle_wrap.h"
-#include "stream_wrap.h"
-#include "pipe_wrap.h"
#include "node_wrap.h"
+#include "req_wrap.h"
+#include "stream_wrap.h"
namespace node {
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
+#include "smalloc.h"
#include "node.h"
#include "node_internals.h"
-#include "smalloc.h"
#include "v8.h"
#include "v8-profiler.h"
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+#include "stream_wrap.h"
#include "node.h"
#include "node_buffer.h"
+#include "node_counters.h"
#include "handle_wrap.h"
-#include "stream_wrap.h"
#include "pipe_wrap.h"
-#include "tcp_wrap.h"
#include "req_wrap.h"
+#include "tcp_wrap.h"
#include "udp_wrap.h"
-#include "node_counters.h"
#include <stdlib.h> // abort()
#include <limits.h> // INT_MAX
#include "string_bytes.h"
-#include <assert.h>
-#include <string.h> // memcpy
-#include <limits.h>
-
#include "node.h"
#include "node_buffer.h"
#include "v8.h"
+#include <assert.h>
+#include <limits.h>
+#include <string.h> // memcpy
+
// When creating strings >= this length v8's gc spins up and consumes
// most of the execution time. For these cases it's more performant to
// use external string resources.
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+#include "tcp_wrap.h"
#include "node.h"
#include "node_buffer.h"
-#include "req_wrap.h"
+#include "node_wrap.h"
#include "handle_wrap.h"
+#include "req_wrap.h"
#include "stream_wrap.h"
-#include "tcp_wrap.h"
-#include "node_wrap.h"
#include <stdlib.h>
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+#include "tty_wrap.h"
#include "node.h"
#include "node_buffer.h"
-#include "req_wrap.h"
#include "handle_wrap.h"
-#include "stream_wrap.h"
-#include "tty_wrap.h"
#include "node_wrap.h"
+#include "req_wrap.h"
+#include "stream_wrap.h"
namespace node {
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+#include "udp_wrap.h"
#include "node.h"
#include "node_buffer.h"
-#include "req_wrap.h"
#include "handle_wrap.h"
-#include "udp_wrap.h"
+#include "req_wrap.h"
#include <stdlib.h>
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
-#include "node.h"
#include "uv.h"
+#include "node.h"
namespace node {
namespace uv {