mirror of https://github.com/nodejs/node.git
src: add include guards to internal headers
For consistency with the newly added src/base64.h header, check that NODE_WANT_INTERNALS is defined and set in internal headers. PR-URL: https://github.com/nodejs/node/pull/6948 Refs: https://github.com/nodejs/node/pull/6910 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
This commit is contained in:
parent
54785f59e1
commit
eff96d32dc
1
node.gyp
1
node.gyp
|
@ -706,6 +706,7 @@
|
|||
'GTEST_DONT_DEFINE_ASSERT_LE=1',
|
||||
'GTEST_DONT_DEFINE_ASSERT_LT=1',
|
||||
'GTEST_DONT_DEFINE_ASSERT_NE=1',
|
||||
'NODE_WANT_INTERNALS=1',
|
||||
],
|
||||
'sources': [
|
||||
'test/cctest/util.cc',
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_ASYNC_WRAP_INL_H_
|
||||
#define SRC_ASYNC_WRAP_INL_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "async-wrap.h"
|
||||
#include "base-object.h"
|
||||
#include "base-object-inl.h"
|
||||
|
@ -120,4 +122,6 @@ inline v8::Local<v8::Value> AsyncWrap::MakeCallback(
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_ASYNC_WRAP_INL_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_ASYNC_WRAP_H_
|
||||
#define SRC_ASYNC_WRAP_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "base-object.h"
|
||||
#include "v8.h"
|
||||
|
||||
|
@ -86,5 +88,6 @@ void LoadAsyncWrapperInfo(Environment* env);
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_ASYNC_WRAP_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_BASE_OBJECT_INL_H_
|
||||
#define SRC_BASE_OBJECT_INL_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "base-object.h"
|
||||
#include "env.h"
|
||||
#include "env-inl.h"
|
||||
|
@ -68,4 +70,6 @@ inline void BaseObject::ClearWeak() {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_BASE_OBJECT_INL_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_BASE_OBJECT_H_
|
||||
#define SRC_BASE_OBJECT_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "v8.h"
|
||||
|
||||
namespace node {
|
||||
|
@ -48,4 +50,6 @@ class BaseObject {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_BASE_OBJECT_H_
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#ifndef SRC_DEBUG_AGENT_H_
|
||||
#define SRC_DEBUG_AGENT_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "util.h"
|
||||
#include "util-inl.h"
|
||||
#include "uv.h"
|
||||
|
@ -132,4 +134,6 @@ class Agent {
|
|||
} // namespace debugger
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_DEBUG_AGENT_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_ENV_INL_H_
|
||||
#define SRC_ENV_INL_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "env.h"
|
||||
#include "node.h"
|
||||
#include "util.h"
|
||||
|
@ -576,4 +578,6 @@ inline v8::Local<v8::Object> Environment::NewInternalFieldObject() {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_ENV_INL_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_ENV_H_
|
||||
#define SRC_ENV_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "ares.h"
|
||||
#include "debug-agent.h"
|
||||
#include "handle_wrap.h"
|
||||
|
@ -647,4 +649,6 @@ class Environment {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_ENV_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_HANDLE_WRAP_H_
|
||||
#define SRC_HANDLE_WRAP_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "async-wrap.h"
|
||||
#include "util.h"
|
||||
#include "uv.h"
|
||||
|
@ -69,5 +71,6 @@ class HandleWrap : public AsyncWrap {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_HANDLE_WRAP_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_JS_STREAM_H_
|
||||
#define SRC_JS_STREAM_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "async-wrap.h"
|
||||
#include "env.h"
|
||||
#include "stream_base.h"
|
||||
|
@ -48,4 +50,6 @@ class JSStream : public AsyncWrap, public StreamBase {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_JS_STREAM_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_CONSTANTS_H_
|
||||
#define SRC_NODE_CONSTANTS_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
#include "v8.h"
|
||||
|
||||
|
@ -37,4 +39,6 @@ extern const char* default_cipher_list;
|
|||
void DefineConstants(v8::Isolate* isolate, v8::Local<v8::Object> target);
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_CONSTANTS_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_COUNTERS_H_
|
||||
#define SRC_NODE_COUNTERS_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
|
||||
#ifdef HAVE_PERFCTR
|
||||
|
@ -31,4 +33,6 @@ void TermPerfCounters(v8::Local<v8::Object> target);
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_COUNTERS_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_CRYPTO_H_
|
||||
#define SRC_NODE_CRYPTO_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
#include "node_crypto_clienthello.h" // ClientHelloParser
|
||||
#include "node_crypto_clienthello-inl.h"
|
||||
|
@ -742,4 +744,6 @@ void InitCrypto(v8::Local<v8::Object> target);
|
|||
} // namespace crypto
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_CRYPTO_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_CRYPTO_BIO_H_
|
||||
#define SRC_NODE_CRYPTO_BIO_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "openssl/bio.h"
|
||||
#include "env.h"
|
||||
#include "env-inl.h"
|
||||
|
@ -134,4 +136,6 @@ class NodeBIO {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_CRYPTO_BIO_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_CRYPTO_CLIENTHELLO_INL_H_
|
||||
#define SRC_NODE_CRYPTO_CLIENTHELLO_INL_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "util.h"
|
||||
#include "util-inl.h"
|
||||
|
||||
|
@ -53,4 +55,6 @@ inline bool ClientHelloParser::IsPaused() const {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_CRYPTO_CLIENTHELLO_INL_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_CRYPTO_CLIENTHELLO_H_
|
||||
#define SRC_NODE_CRYPTO_CLIENTHELLO_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
|
||||
#include <stddef.h> // size_t
|
||||
|
@ -112,4 +114,6 @@ class ClientHelloParser {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_CRYPTO_CLIENTHELLO_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_CRYPTO_GROUPS_H_
|
||||
#define SRC_NODE_CRYPTO_GROUPS_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
/*
|
||||
These modular groups were literally taken from:
|
||||
* RFC 2412 (groups 1 and 2)
|
||||
|
@ -388,4 +390,6 @@ static const modp_group modp_groups[] = {
|
|||
#undef V
|
||||
};
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_CRYPTO_GROUPS_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_DTRACE_H_
|
||||
#define SRC_NODE_DTRACE_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
#include "v8.h"
|
||||
#include "env.h"
|
||||
|
@ -58,4 +60,6 @@ void InitDTrace(Environment* env, v8::Local<v8::Object> target);
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_DTRACE_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_FILE_H_
|
||||
#define SRC_NODE_FILE_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
#include "v8.h"
|
||||
|
||||
|
@ -10,4 +12,6 @@ void InitFs(v8::Local<v8::Object> target);
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_FILE_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_HTTP_PARSER_H_
|
||||
#define SRC_NODE_HTTP_PARSER_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "v8.h"
|
||||
|
||||
#include "http_parser.h"
|
||||
|
@ -11,4 +13,6 @@ void InitHttpParser(v8::Local<v8::Object> target);
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_HTTP_PARSER_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_I18N_H_
|
||||
#define SRC_NODE_I18N_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
|
||||
#if defined(NODE_HAVE_I18N_SUPPORT)
|
||||
|
@ -18,4 +20,6 @@ bool InitializeICUDirectory(const char* icu_data_path);
|
|||
|
||||
#endif // NODE_HAVE_I18N_SUPPORT
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_I18N_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_INTERNALS_H_
|
||||
#define SRC_NODE_INTERNALS_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
#include "util.h"
|
||||
#include "util-inl.h"
|
||||
|
@ -313,4 +315,6 @@ v8::MaybeLocal<v8::Object> New(Environment* env, char* data, size_t length);
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_INTERNALS_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_JAVASCRIPT_H_
|
||||
#define SRC_NODE_JAVASCRIPT_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "v8.h"
|
||||
#include "env.h"
|
||||
|
||||
|
@ -11,4 +13,6 @@ v8::Local<v8::String> MainSource(Environment* env);
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_JAVASCRIPT_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_LTTNG_H_
|
||||
#define SRC_NODE_LTTNG_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
#include "v8.h"
|
||||
#include "env.h"
|
||||
|
@ -37,4 +39,6 @@ void InitLTTNG(Environment* env, v8::Local<v8::Object> target);
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_LTTNG_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_LTTNG_PROVIDER_H_
|
||||
#define SRC_NODE_LTTNG_PROVIDER_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#define TRACEPOINT_CREATE_PROBES
|
||||
#define TRACEPOINT_DEFINE
|
||||
#include "node_lttng_tp.h"
|
||||
|
@ -99,4 +101,6 @@ bool NODE_NET_STREAM_END_ENABLED() { return true; }
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_LTTNG_PROVIDER_H_
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#undef TRACEPOINT_PROVIDER
|
||||
#define TRACEPOINT_PROVIDER node
|
||||
|
||||
|
@ -128,3 +130,5 @@ TRACEPOINT_EVENT(
|
|||
#endif /* __NODE_LTTNG_TP_H */
|
||||
|
||||
#include <lttng/tracepoint-event.h>
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_REVERT_H_
|
||||
#define SRC_NODE_REVERT_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
|
||||
/**
|
||||
|
@ -41,4 +43,6 @@ bool IsReverted(const char * cve);
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_REVERT_H_
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
/* GlobalSign Root CA */
|
||||
"-----BEGIN CERTIFICATE-----\n"
|
||||
|
@ -3881,3 +3882,5 @@
|
|||
"1T2wdKyUpOgOPQB0TKGXa/kNUTyh2Tv0Daupn75OcsqF1NnstTJFGG+rrQIwfcf3aWMvoeGY\n"
|
||||
"7xMQ0Xk/0f7qO3/eVvSQsRUR2LIiFdAvwyYua/GRspBl9JrmkO5K\n"
|
||||
"-----END CERTIFICATE-----\n",
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_STAT_WATCHER_H_
|
||||
#define SRC_NODE_STAT_WATCHER_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
#include "async-wrap.h"
|
||||
#include "env.h"
|
||||
|
@ -35,4 +37,7 @@ class StatWatcher : public AsyncWrap {
|
|||
};
|
||||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_STAT_WATCHER_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_WATCHDOG_H_
|
||||
#define SRC_NODE_WATCHDOG_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "v8.h"
|
||||
#include "uv.h"
|
||||
|
||||
|
@ -32,4 +34,6 @@ class Watchdog {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_WATCHDOG_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_WIN32_ETW_PROVIDER_INL_H_
|
||||
#define SRC_NODE_WIN32_ETW_PROVIDER_INL_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node_win32_etw_provider.h"
|
||||
#include "node_etw_provider.h"
|
||||
|
||||
|
@ -265,4 +267,6 @@ bool NODE_V8SYMBOL_ENABLED() { return events_enabled > 0; }
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_WIN32_ETW_PROVIDER_INL_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_WIN32_ETW_PROVIDER_H_
|
||||
#define SRC_NODE_WIN32_ETW_PROVIDER_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node_dtrace.h"
|
||||
#include <evntprov.h>
|
||||
|
||||
|
@ -71,4 +73,6 @@ INLINE bool NODE_V8SYMBOL_ENABLED();
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_WIN32_ETW_PROVIDER_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_WIN32_PERFCTR_PROVIDER_H_
|
||||
#define SRC_NODE_WIN32_PERFCTR_PROVIDER_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# define INLINE __forceinline
|
||||
#else
|
||||
|
@ -30,4 +32,6 @@ void TermPerfCountersWin32();
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_WIN32_PERFCTR_PROVIDER_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_NODE_WRAP_H_
|
||||
#define SRC_NODE_WRAP_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "env.h"
|
||||
#include "env-inl.h"
|
||||
#include "js_stream.h"
|
||||
|
@ -49,4 +51,6 @@ inline uv_stream_t* HandleToStream(Environment* env,
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_WRAP_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_PIPE_WRAP_H_
|
||||
#define SRC_PIPE_WRAP_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "async-wrap.h"
|
||||
#include "env.h"
|
||||
#include "stream_wrap.h"
|
||||
|
@ -44,5 +46,6 @@ class PipeWrap : public StreamWrap {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_PIPE_WRAP_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_REQ_WRAP_INL_H_
|
||||
#define SRC_REQ_WRAP_INL_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "req-wrap.h"
|
||||
#include "async-wrap.h"
|
||||
#include "async-wrap-inl.h"
|
||||
|
@ -39,4 +41,6 @@ void ReqWrap<T>::Dispatched() {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_REQ_WRAP_INL_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_REQ_WRAP_H_
|
||||
#define SRC_REQ_WRAP_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "async-wrap.h"
|
||||
#include "env.h"
|
||||
#include "util.h"
|
||||
|
@ -27,4 +29,6 @@ class ReqWrap : public AsyncWrap {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_REQ_WRAP_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_SPAWN_SYNC_H_
|
||||
#define SRC_SPAWN_SYNC_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
#include "node_buffer.h"
|
||||
|
||||
|
@ -222,4 +224,6 @@ class SyncProcessRunner {
|
|||
};
|
||||
}
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_SPAWN_SYNC_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_STREAM_BASE_INL_H_
|
||||
#define SRC_STREAM_BASE_INL_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "stream_base.h"
|
||||
|
||||
#include "node.h"
|
||||
|
@ -162,4 +164,6 @@ char* WriteWrap::Extra(size_t offset) {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_STREAM_BASE_INL_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_STREAM_BASE_H_
|
||||
#define SRC_STREAM_BASE_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "env.h"
|
||||
#include "async-wrap.h"
|
||||
#include "req-wrap.h"
|
||||
|
@ -270,4 +272,6 @@ class StreamBase : public StreamResource {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_STREAM_BASE_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_STREAM_WRAP_H_
|
||||
#define SRC_STREAM_WRAP_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "stream_base.h"
|
||||
|
||||
#include "env.h"
|
||||
|
@ -103,5 +105,6 @@ class StreamWrap : public HandleWrap, public StreamBase {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_STREAM_WRAP_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_STRING_BYTES_H_
|
||||
#define SRC_STRING_BYTES_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
// Decodes a v8::Local<v8::String> or Buffer to a raw char*
|
||||
|
||||
#include "v8.h"
|
||||
|
@ -108,4 +110,6 @@ class StringBytes {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_STRING_BYTES_H_
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
#ifndef SRC_STRING_SEARCH_H_
|
||||
#define SRC_STRING_SEARCH_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
#include <string.h>
|
||||
|
||||
|
@ -674,4 +676,6 @@ size_t SearchString(const Char* haystack,
|
|||
}
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_STRING_SEARCH_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_TCP_WRAP_H_
|
||||
#define SRC_TCP_WRAP_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "async-wrap.h"
|
||||
#include "env.h"
|
||||
#include "stream_wrap.h"
|
||||
|
@ -52,5 +54,6 @@ class TCPWrap : public StreamWrap {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_TCP_WRAP_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_TLS_WRAP_H_
|
||||
#define SRC_TLS_WRAP_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
#include "node_crypto.h" // SSLWrap
|
||||
|
||||
|
@ -165,4 +167,6 @@ class TLSWrap : public AsyncWrap,
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_TLS_WRAP_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_TTY_WRAP_H_
|
||||
#define SRC_TTY_WRAP_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "env.h"
|
||||
#include "handle_wrap.h"
|
||||
#include "stream_wrap.h"
|
||||
|
@ -34,4 +36,6 @@ class TTYWrap : public StreamWrap {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_TTY_WRAP_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_UDP_WRAP_H_
|
||||
#define SRC_UDP_WRAP_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "async-wrap.h"
|
||||
#include "env.h"
|
||||
#include "handle_wrap.h"
|
||||
|
@ -70,4 +72,6 @@ class UDPWrap: public HandleWrap {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_UDP_WRAP_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_UTIL_INL_H_
|
||||
#define SRC_UTIL_INL_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "util.h"
|
||||
|
||||
namespace node {
|
||||
|
@ -219,4 +221,6 @@ bool StringEqualNoCase(const char* a, const char* b) {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_UTIL_INL_H_
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SRC_UTIL_H_
|
||||
#define SRC_UTIL_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "v8.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
@ -304,4 +306,6 @@ class BufferValue : public MaybeStackBuffer<char> {
|
|||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_UTIL_H_
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
'targets': [
|
||||
{
|
||||
'target_name': 'binding',
|
||||
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
|
||||
'defines': [
|
||||
'NODE_WANT_INTERNALS=1',
|
||||
'V8_DEPRECATION_WARNINGS=1',
|
||||
],
|
||||
'sources': [ 'binding.cc' ]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
'targets': [
|
||||
{
|
||||
'target_name': 'binding',
|
||||
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
|
||||
'defines': [
|
||||
'NODE_WANT_INTERNALS=1',
|
||||
'V8_DEPRECATION_WARNINGS=1',
|
||||
],
|
||||
'sources': [ 'binding.cc' ]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
'targets': [
|
||||
{
|
||||
'target_name': 'binding',
|
||||
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
|
||||
'defines': [
|
||||
'NODE_WANT_INTERNALS=1',
|
||||
'V8_DEPRECATION_WARNINGS=1',
|
||||
],
|
||||
'sources': [ 'binding.cc' ]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
'targets': [
|
||||
{
|
||||
'target_name': 'binding',
|
||||
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
|
||||
'defines': [
|
||||
'NODE_WANT_INTERNALS=1',
|
||||
'V8_DEPRECATION_WARNINGS=1',
|
||||
],
|
||||
'sources': [ 'binding.cc' ]
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue