Browse Source

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>
v6.x
Ben Noordhuis 9 years ago
committed by Rod Vagg
parent
commit
64445674f0
  1. 1
      node.gyp
  2. 4
      src/async-wrap-inl.h
  3. 3
      src/async-wrap.h
  4. 4
      src/base-object-inl.h
  5. 4
      src/base-object.h
  6. 4
      src/debug-agent.h
  7. 4
      src/env-inl.h
  8. 4
      src/env.h
  9. 3
      src/handle_wrap.h
  10. 4
      src/js_stream.h
  11. 4
      src/node_constants.h
  12. 4
      src/node_counters.h
  13. 4
      src/node_crypto.h
  14. 4
      src/node_crypto_bio.h
  15. 4
      src/node_crypto_clienthello-inl.h
  16. 4
      src/node_crypto_clienthello.h
  17. 4
      src/node_crypto_groups.h
  18. 4
      src/node_dtrace.h
  19. 4
      src/node_file.h
  20. 4
      src/node_http_parser.h
  21. 4
      src/node_i18n.h
  22. 4
      src/node_internals.h
  23. 4
      src/node_javascript.h
  24. 4
      src/node_lttng.h
  25. 4
      src/node_lttng_provider.h
  26. 4
      src/node_lttng_tp.h
  27. 4
      src/node_revert.h
  28. 3
      src/node_root_certs.h
  29. 5
      src/node_stat_watcher.h
  30. 4
      src/node_watchdog.h
  31. 4
      src/node_win32_etw_provider-inl.h
  32. 4
      src/node_win32_etw_provider.h
  33. 4
      src/node_win32_perfctr_provider.h
  34. 4
      src/node_wrap.h
  35. 3
      src/pipe_wrap.h
  36. 4
      src/req-wrap-inl.h
  37. 4
      src/req-wrap.h
  38. 4
      src/spawn_sync.h
  39. 4
      src/stream_base-inl.h
  40. 4
      src/stream_base.h
  41. 3
      src/stream_wrap.h
  42. 4
      src/string_bytes.h
  43. 4
      src/string_search.h
  44. 3
      src/tcp_wrap.h
  45. 4
      src/tls_wrap.h
  46. 4
      src/tty_wrap.h
  47. 4
      src/udp_wrap.h
  48. 4
      src/util-inl.h
  49. 4
      src/util.h
  50. 5
      test/addons/buffer-free-callback/binding.gyp
  51. 5
      test/addons/make-callback-recurse/binding.gyp
  52. 5
      test/addons/make-callback/binding.gyp
  53. 5
      test/addons/null-buffer-neuter/binding.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',

4
src/async-wrap-inl.h

@ -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_

3
src/async-wrap.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_

4
src/base-object-inl.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_

4
src/base-object.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_

4
src/debug-agent.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_

4
src/env-inl.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_

4
src/env.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_

3
src/handle_wrap.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_

4
src/js_stream.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_

4
src/node_constants.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::Local<v8::Object> target);
} // namespace node
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#endif // SRC_NODE_CONSTANTS_H_

4
src/node_counters.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_

4
src/node_crypto.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_

4
src/node_crypto_bio.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_

4
src/node_crypto_clienthello-inl.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_

4
src/node_crypto_clienthello.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_

4
src/node_crypto_groups.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_

4
src/node_dtrace.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_

4
src/node_file.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_

4
src/node_http_parser.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_

4
src/node_i18n.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_

4
src/node_internals.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_

4
src/node_javascript.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_

4
src/node_lttng.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_

4
src/node_lttng_provider.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_

4
src/node_lttng_tp.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

4
src/node_revert.h

@ -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_

3
src/node_root_certs.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

5
src/node_stat_watcher.h

@ -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_

4
src/node_watchdog.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_

4
src/node_win32_etw_provider-inl.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_

4
src/node_win32_etw_provider.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_

4
src/node_win32_perfctr_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_

4
src/node_wrap.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_

3
src/pipe_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_

4
src/req-wrap-inl.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_

4
src/req-wrap.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_

4
src/spawn_sync.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_

4
src/stream_base-inl.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_

4
src/stream_base.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_

3
src/stream_wrap.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_

4
src/string_bytes.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_

4
src/string_search.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_

3
src/tcp_wrap.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_

4
src/tls_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_

4
src/tty_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_

4
src/udp_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_

4
src/util-inl.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_

4
src/util.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_

5
test/addons/buffer-free-callback/binding.gyp

@ -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' ]
}
]

5
test/addons/make-callback-recurse/binding.gyp

@ -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' ]
}
]

5
test/addons/make-callback/binding.gyp

@ -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' ]
}
]

5
test/addons/null-buffer-neuter/binding.gyp

@ -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…
Cancel
Save