GeezerVison is showing github.com — src: refactor `#include` handling · nodejs/node@774e42b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/async-wrap-inl.h -5Lines changed: 0 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
27 | 27 | #include "async-wrap.h" |
28 | 28 | #include "base-object.h" |
29 | 29 | #include "base-object-inl.h" |
30 | | -#include "env.h" |
31 | | -#include "env-inl.h" |
32 | 30 | #include "node_internals.h" |
33 | | -#include "util.h" |
34 | | -#include "util-inl.h" |
35 | | -#include "v8.h" |
36 | 31 |
|
37 | 32 | namespace node { |
38 | 33 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: src/backtrace_posix.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -#include "node.h" |
| 1 | +#include "node_internals.h" |
2 | 2 |
|
3 | 3 | #if defined(__linux__) |
4 | 4 | #include <features.h> |
|
Collapse file
Copy file name to clipboardExpand all lines: src/env-inl.h +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
31 | 31 | #include "util-inl.h" |
32 | 32 | #include "uv.h" |
33 | 33 | #include "v8.h" |
| 34 | +#include "node_perf_common.h" |
34 | 35 |
|
35 | 36 | #include <stddef.h> |
36 | 37 | #include <stdint.h> |
|
Collapse file
Copy file name to clipboardExpand all lines: src/env.cc +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -#include "env.h" |
2 | | -#include "env-inl.h" |
| 1 | +#include "node_internals.h" |
3 | 2 | #include "async-wrap.h" |
4 | | -#include "v8.h" |
5 | 3 | #include "v8-profiler.h" |
6 | 4 |
|
7 | 5 | #if defined(_MSC_VER) |
|
Collapse file
Copy file name to clipboardExpand all lines: src/env.h +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -48,6 +48,10 @@ struct nghttp2_rcbuf; |
48 | 48 |
|
49 | 49 | namespace node { |
50 | 50 |
|
| 51 | +namespace performance { |
| 52 | +struct performance_state; |
| 53 | +} |
| 54 | + |
51 | 55 | // Pick an index that's hopefully out of the way when we're embedded inside |
52 | 56 | // another application. Performance-wise or memory-wise it doesn't matter: |
53 | 57 | // Context::SetAlignedPointerInEmbedderData() is backed by a FixedArray, |
|
Collapse file
Copy file name to clipboardExpand all lines: src/inspector_agent.cc +1-4Lines changed: 1 addition & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | #include "inspector_agent.h" |
2 | 2 |
|
3 | 3 | #include "inspector_io.h" |
4 | | -#include "env.h" |
5 | | -#include "env-inl.h" |
6 | | -#include "node.h" |
| 4 | +#include "node_internals.h" |
7 | 5 | #include "v8-inspector.h" |
8 | 6 | #include "v8-platform.h" |
9 | | -#include "util.h" |
10 | 7 | #include "zlib.h" |
11 | 8 |
|
12 | 9 | #include "libplatform/libplatform.h" |
|
Collapse file
Copy file name to clipboardExpand all lines: src/node.cc -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
19 | 19 | // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE |
20 | 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. |
21 | 21 |
|
22 | | -#include "node.h" |
23 | 22 | #include "node_buffer.h" |
24 | 23 | #include "node_constants.h" |
25 | 24 | #include "node_javascript.h" |
|
Collapse file
Copy file name to clipboardExpand all lines: src/node.h -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -169,10 +169,6 @@ NODE_EXTERN v8::Local<v8::Value> MakeCallback( |
169 | 169 |
|
170 | 170 | } // namespace node |
171 | 171 |
|
172 | | -#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS |
173 | | -#include "node_internals.h" |
174 | | -#endif |
175 | | - |
176 | 172 | #include <assert.h> |
177 | 173 | #include <stdint.h> |
178 | 174 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: src/node_api.cc -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
14 | 14 | #include <algorithm> |
15 | 15 | #include <cmath> |
16 | 16 | #include <vector> |
17 | | -#include "uv.h" |
18 | 17 | #include "node_api.h" |
19 | 18 | #include "node_internals.h" |
20 | | -#include "util.h" |
21 | 19 |
|
22 | 20 | #define NAPI_VERSION 1 |
23 | 21 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: src/node_buffer.h +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
22 | 22 | #ifndef SRC_NODE_BUFFER_H_ |
23 | 23 | #define SRC_NODE_BUFFER_H_ |
24 | 24 |
|
25 | | -#include "node.h" |
26 | | -#include "v8.h" |
| 25 | +#include "node_internals.h" |
27 | 26 |
|
28 | 27 | namespace node { |
29 | 28 |
|
|