|
20 | 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. |
21 | 21 |
|
22 | 22 | #include "node.h" |
23 | | -#include "req_wrap.h" |
24 | | -#include "handle_wrap.h" |
25 | | -#include "string_bytes.h" |
| 23 | +#include "node_buffer.h" |
| 24 | +#include "node_constants.h" |
| 25 | +#include "node_file.h" |
| 26 | +#include "node_http_parser.h" |
| 27 | +#include "node_javascript.h" |
| 28 | +#include "node_script.h" |
| 29 | +#include "node_version.h" |
26 | 30 |
|
27 | | -#include "ares.h" |
28 | | -#include "uv.h" |
| 31 | +#if defined HAVE_PERFCTR |
| 32 | +#include "node_counters.h" |
| 33 | +#endif |
| 34 | + |
| 35 | +#if HAVE_OPENSSL |
| 36 | +#include "node_crypto.h" |
| 37 | +#endif |
29 | 38 |
|
30 | | -#include "v8-debug.h" |
31 | 39 | #if defined HAVE_DTRACE || defined HAVE_ETW || defined HAVE_SYSTEMTAP |
32 | | -# include "node_dtrace.h" |
| 40 | +#include "node_dtrace.h" |
33 | 41 | #endif |
34 | | -#if defined HAVE_PERFCTR |
35 | | -# include "node_counters.h" |
| 42 | + |
| 43 | +#if HAVE_SYSTEMTAP |
| 44 | +#include "node_provider.h" |
36 | 45 | #endif |
37 | 46 |
|
| 47 | +#include "ares.h" |
| 48 | +#include "handle_wrap.h" |
| 49 | +#include "req_wrap.h" |
| 50 | +#include "string_bytes.h" |
| 51 | +#include "uv.h" |
| 52 | +#include "v8-debug.h" |
| 53 | +#include "zlib.h" |
| 54 | + |
| 55 | +#include <assert.h> |
| 56 | +#include <errno.h> |
| 57 | +#include <limits.h> // PATH_MAX |
38 | 58 | #include <locale.h> |
39 | 59 | #include <signal.h> |
40 | 60 | #include <stdio.h> |
41 | 61 | #include <stdlib.h> |
42 | 62 | #include <string.h> |
43 | | -#if !defined(_MSC_VER) |
44 | | -#include <strings.h> |
45 | | -#else |
46 | | -#define strcasecmp _stricmp |
47 | | -#endif |
48 | | -#include <limits.h> /* PATH_MAX */ |
49 | | -#include <assert.h> |
50 | | -#if !defined(_MSC_VER) |
51 | | -#include <unistd.h> /* setuid, getuid */ |
52 | | -#else |
| 63 | +#include <sys/types.h> |
| 64 | + |
| 65 | +#if defined(_MSC_VER) |
53 | 66 | #include <direct.h> |
| 67 | +#include <io.h> |
54 | 68 | #include <process.h> |
| 69 | +#include <strings.h> |
| 70 | +#define strcasecmp _stricmp |
55 | 71 | #define getpid _getpid |
56 | | -#include <io.h> |
57 | 72 | #define umask _umask |
58 | 73 | typedef int mode_t; |
| 74 | +#else |
| 75 | +#include <unistd.h> // setuid, getuid |
59 | 76 | #endif |
60 | | -#include <errno.h> |
61 | | -#include <sys/types.h> |
62 | | -#include "zlib.h" |
63 | 77 |
|
64 | 78 | #if defined(__POSIX__) && !defined(__ANDROID__) |
65 | | -# include <pwd.h> /* getpwnam() */ |
66 | | -# include <grp.h> /* getgrnam() */ |
| 79 | +#include <pwd.h> // getpwnam() |
| 80 | +#include <grp.h> // getgrnam() |
67 | 81 | #endif |
68 | 82 |
|
69 | | -#include "node_buffer.h" |
70 | | -#include "node_file.h" |
71 | | -#include "node_http_parser.h" |
72 | | -#include "node_constants.h" |
73 | | -#include "node_javascript.h" |
74 | | -#include "node_version.h" |
75 | | -#if HAVE_OPENSSL |
76 | | -# include "node_crypto.h" |
77 | | -#endif |
78 | | -#if HAVE_SYSTEMTAP |
79 | | -#include "node_provider.h" |
80 | | -#endif |
81 | | -#include "node_script.h" |
82 | | - |
83 | 83 | #ifdef __APPLE__ |
84 | | -# include <crt_externs.h> |
85 | | -# define environ (*_NSGetEnviron()) |
| 84 | +#include <crt_externs.h> |
| 85 | +#define environ (*_NSGetEnviron()) |
86 | 86 | #elif !defined(_MSC_VER) |
87 | 87 | extern char **environ; |
88 | 88 | #endif |
|
0 commit comments