mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
src: fix extra includes of "env.h" and "env-inl.h"
Due to how the Environment class is used throughout the codebase, there are a log of includes referencing eitehr env.h or env-inl.h. This commit cleans up the remaining extra includes of 'env.h' or 'env-inl.h' and adds forward declarations of the Environment class. PR-URL: https://github.com/nodejs/node/pull/32293 Refs: https://github.com/nodejs/node/issues/27531 Fixes: https://github.com/nodejs/node/issues/27531 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
ca4e65273f
commit
06953df051
4 files changed
+6
-6
No files matched your search
@@ -3,7 +3,6 @@
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "env.h"
|
||||
#include "node_crypto.h"
|
||||
#include "v8.h"
|
||||
#include <openssl/ssl.h>
|
||||
|
||||
+2
-1
@@ -3,7 +3,6 @@
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "env.h"
|
||||
#include "memory_tracker.h"
|
||||
#include "node.h"
|
||||
#include "uv.h"
|
||||
@@ -14,6 +13,8 @@
|
||||
|
||||
namespace node {
|
||||
|
||||
class Environment;
|
||||
|
||||
class SocketAddress : public MemoryRetainer {
|
||||
public:
|
||||
struct Hash {
|
||||
|
||||
@@ -3,10 +3,9 @@
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "stream_base.h"
|
||||
|
||||
#include "async_wrap-inl.h"
|
||||
#include "node.h"
|
||||
#include "env-inl.h"
|
||||
#include "stream_base.h"
|
||||
#include "v8.h"
|
||||
|
||||
namespace node {
|
||||
|
||||
+2
-1
@@ -3,7 +3,8 @@
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "async_wrap-inl.h"
|
||||
#include "env.h"
|
||||
#include "async_wrap.h"
|
||||
#include "node.h"
|
||||
#include "util.h"
|
||||
|
||||
|
||||
Reference in new issue
Block a user