Browse Source

core: use proper #include directives

v0.8.7-release
Ben Noordhuis 13 years ago
parent
commit
eef57dddf4
  1. 6
      src/cares_wrap.cc
  2. 4
      src/fs_event_wrap.cc
  3. 4
      src/handle_wrap.cc
  4. 36
      src/node.cc
  5. 6
      src/node.h
  6. 6
      src/node_buffer.cc
  7. 6
      src/node_buffer.h
  8. 6
      src/node_constants.cc
  9. 4
      src/node_constants.h
  10. 10
      src/node_crypto.cc
  11. 8
      src/node_crypto.h
  12. 2
      src/node_dtrace.cc
  13. 4
      src/node_dtrace.h
  14. 2
      src/node_file.cc
  15. 4
      src/node_file.h
  16. 8
      src/node_http_parser.cc
  17. 2
      src/node_http_parser.h
  18. 6
      src/node_io_watcher.cc
  19. 4
      src/node_io_watcher.h
  20. 2
      src/node_javascript.cc
  21. 2
      src/node_javascript.h
  22. 2
      src/node_main.cc
  23. 4
      src/node_object_wrap.h
  24. 8
      src/node_os.cc
  25. 4
      src/node_os.h
  26. 4
      src/node_script.cc
  27. 8
      src/node_script.h
  28. 2
      src/node_signal_watcher.cc
  29. 6
      src/node_signal_watcher.h
  30. 2
      src/node_stat_watcher.cc
  31. 4
      src/node_stat_watcher.h
  32. 2
      src/node_string.h
  33. 12
      src/pipe_wrap.cc
  34. 2
      src/pipe_wrap.h
  35. 2
      src/platform.h
  36. 2
      src/platform_darwin.cc
  37. 2
      src/platform_freebsd.cc
  38. 2
      src/platform_linux.cc
  39. 2
      src/platform_openbsd.cc
  40. 6
      src/platform_win32.cc
  41. 6
      src/process_wrap.cc
  42. 12
      src/stream_wrap.cc
  43. 6
      src/stream_wrap.h
  44. 12
      src/tcp_wrap.cc
  45. 2
      src/tcp_wrap.h
  46. 4
      src/timer_wrap.cc
  47. 10
      src/tty_wrap.cc
  48. 8
      src/udp_wrap.cc
  49. 2
      src/v8_typed_array.cc
  50. 2
      src/v8_typed_array.h

6
src/cares_wrap.cc

@ -20,9 +20,9 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <assert.h>
#include <node.h>
#include <req_wrap.h>
#include <uv.h>
#include "node.h"
#include "req_wrap.h"
#include "uv.h"
#include <string.h>

4
src/fs_event_wrap.cc

@ -19,8 +19,8 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include <handle_wrap.h>
#include "node.h"
#include "handle_wrap.h"
#include <stdlib.h>

4
src/handle_wrap.cc

@ -19,8 +19,8 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include <handle_wrap.h>
#include "node.h"
#include "handle_wrap.h"
namespace node {

36
src/node.cc

@ -19,13 +19,13 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include "node.h"
#include <uv.h>
#include "uv.h"
#include <v8-debug.h>
#include "v8-debug.h"
#ifdef HAVE_DTRACE
# include <node_dtrace.h>
# include "node_dtrace.h"
#endif
#include <locale.h>
@ -57,7 +57,7 @@ typedef int mode_t;
#include <sys/types.h>
#if defined(__MINGW32__) || defined(_MSC_VER)
# include <platform_win32.h> /* winapi_perror() */
# include "platform_win32.h" /* winapi_perror() */
#endif
#ifdef __POSIX__
@ -66,25 +66,25 @@ typedef int mode_t;
#endif
#include "platform.h"
#include <node_buffer.h>
#include "node_buffer.h"
#ifdef __POSIX__
# include <node_io_watcher.h>
# include "node_io_watcher.h"
#endif
#include <node_file.h>
#include <node_http_parser.h>
#include "node_file.h"
#include "node_http_parser.h"
#ifdef __POSIX__
# include <node_signal_watcher.h>
# include <node_stat_watcher.h>
# include "node_signal_watcher.h"
# include "node_stat_watcher.h"
#endif
#include <node_constants.h>
#include <node_javascript.h>
#include <node_version.h>
#include <node_string.h>
#include "node_constants.h"
#include "node_javascript.h"
#include "node_version.h"
#include "node_string.h"
#if HAVE_OPENSSL
# include <node_crypto.h>
# include "node_crypto.h"
#endif
#include <node_script.h>
#include <v8_typed_array.h>
#include "node_script.h"
#include "v8_typed_array.h"
using namespace v8;

6
src/node.h

@ -58,13 +58,13 @@
# define SIGKILL 9
#endif
#include <uv.h>
#include <v8.h>
#include "uv.h"
#include "v8.h"
#include <sys/types.h> /* struct stat */
#include <sys/stat.h>
#include <assert.h>
#include <node_object_wrap.h>
#include "node_object_wrap.h"
#if defined(_MSC_VER)
#undef interface

6
src/node_buffer.cc

@ -20,10 +20,10 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include <node_buffer.h>
#include "node.h"
#include "node_buffer.h"
#include <v8.h>
#include "v8.h"
#include <assert.h>
#include <stdlib.h> // malloc, free

6
src/node_buffer.h

@ -22,9 +22,9 @@
#ifndef NODE_BUFFER_H_
#define NODE_BUFFER_H_
#include <node.h>
#include <node_object_wrap.h>
#include <v8.h>
#include "node.h"
#include "node_object_wrap.h"
#include "v8.h"
#include <assert.h>
namespace node {

6
src/node_constants.cc

@ -19,9 +19,9 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node_constants.h>
#include "node_constants.h"
#include <uv.h>
#include "uv.h"
#include <errno.h>
#if !defined(_MSC_VER)
@ -33,7 +33,7 @@
#include <sys/stat.h>
#if defined(__MINGW32__) || defined(_MSC_VER)
# include <platform_win32.h>
# include "platform_win32.h"
#endif
#if HAVE_OPENSSL

4
src/node_constants.h

@ -22,8 +22,8 @@
#ifndef SRC_CONSTANTS_H_
#define SRC_CONSTANTS_H_
#include <node.h>
#include <v8.h>
#include "node.h"
#include "v8.h"
namespace node {
void DefineConstants(v8::Handle<v8::Object> target);

10
src/node_crypto.cc

@ -19,12 +19,12 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node_crypto.h>
#include <v8.h>
#include "node_crypto.h"
#include "v8.h"
#include <node.h>
#include <node_buffer.h>
#include <node_root_certs.h>
#include "node.h"
#include "node_buffer.h"
#include "node_root_certs.h"
#include <string.h>
#ifdef _MSC_VER

8
src/node_crypto.h

@ -22,10 +22,10 @@
#ifndef SRC_NODE_CRYPTO_H_
#define SRC_NODE_CRYPTO_H_
#include <node.h>
#include "node.h"
#include <node_object_wrap.h>
#include <v8.h>
#include "node_object_wrap.h"
#include "v8.h"
#include <openssl/ssl.h>
#include <openssl/err.h>
@ -38,7 +38,7 @@
#include <openssl/pkcs12.h>
#ifdef OPENSSL_NPN_NEGOTIATED
#include <node_buffer.h>
#include "node_buffer.h"
#endif
#define EVP_F_EVP_DECRYPTFINAL 101

2
src/node_dtrace.cc

@ -19,7 +19,7 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node_dtrace.h>
#include "node_dtrace.h"
#include <string.h>
#ifdef HAVE_DTRACE

4
src/node_dtrace.h

@ -22,8 +22,8 @@
#ifndef NODE_DTRACE_H_
#define NODE_DTRACE_H_
#include <node.h>
#include <v8.h>
#include "node.h"
#include "v8.h"
extern "C" {

2
src/node_file.cc

@ -37,7 +37,7 @@
#if defined(__MINGW32__) || defined(_MSC_VER)
# include <io.h>
# include <platform_win32.h>
# include "platform_win32.h"
#endif
namespace node {

4
src/node_file.h

@ -22,8 +22,8 @@
#ifndef SRC_FILE_H_
#define SRC_FILE_H_
#include <node.h>
#include <v8.h>
#include "node.h"
#include "v8.h"
namespace node {

8
src/node_http_parser.cc

@ -19,11 +19,11 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node_http_parser.h>
#include "node_http_parser.h"
#include <v8.h>
#include <node.h>
#include <node_buffer.h>
#include "v8.h"
#include "node.h"
#include "node_buffer.h"
#include <http_parser.h>

2
src/node_http_parser.h

@ -22,7 +22,7 @@
#ifndef NODE_HTTP_PARSER
#define NODE_HTTP_PARSER
#include <v8.h>
#include "v8.h"
namespace node {

6
src/node_io_watcher.cc

@ -19,10 +19,10 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node_io_watcher.h>
#include "node_io_watcher.h"
#include <node.h>
#include <v8.h>
#include "node.h"
#include "v8.h"
#include <assert.h>

4
src/node_io_watcher.h

@ -22,8 +22,8 @@
#ifndef NODE_IO_H_
#define NODE_IO_H_
#include <node_object_wrap.h>
#include <uv-private/ev.h>
#include "node_object_wrap.h"
#include "uv-private/ev.h"
namespace node {

2
src/node_javascript.cc

@ -19,7 +19,7 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <v8.h>
#include "v8.h"
#include "node.h"
#include "node_natives.h"
#include "node_string.h"

2
src/node_javascript.h

@ -19,7 +19,7 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <v8.h>
#include "v8.h"
namespace node {

2
src/node_main.cc

@ -19,7 +19,7 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include "node.h"
#ifdef _WIN32
int wmain(int argc, wchar_t *wargv[]) {

4
src/node_object_wrap.h

@ -22,8 +22,8 @@
#ifndef object_wrap_h
#define object_wrap_h
#include <node.h>
#include <v8.h>
#include "node.h"
#include "v8.h"
#include <assert.h>
namespace node {

8
src/node_os.cc

@ -20,11 +20,11 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include <node_os.h>
#include "node.h"
#include "node_os.h"
#include "platform.h"
#include <v8.h>
#include "v8.h"
#include <errno.h>
#include <string.h>
@ -32,7 +32,7 @@
#ifdef __MINGW32__
# include <io.h>
# include <platform_win32.h>
# include "platform_win32.h"
#endif
#ifdef __POSIX__

4
src/node_os.h

@ -22,8 +22,8 @@
#ifndef node_os_h
#define node_os_h
#include <node.h>
#include <v8.h>
#include "node.h"
#include "v8.h"
namespace node {

4
src/node_script.cc

@ -19,8 +19,8 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include <node_script.h>
#include "node.h"
#include "node_script.h"
#include <assert.h>
namespace node {

8
src/node_script.h

@ -22,10 +22,10 @@
#ifndef node_script_h
#define node_script_h
#include <node.h>
#include <node_object_wrap.h>
#include <v8.h>
#include <uv.h>
#include "node.h"
#include "node_object_wrap.h"
#include "v8.h"
#include "uv.h"
namespace node {

2
src/node_signal_watcher.cc

@ -19,7 +19,7 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node_signal_watcher.h>
#include "node_signal_watcher.h"
#include <assert.h>
namespace node {

6
src/node_signal_watcher.h

@ -22,9 +22,9 @@
#ifndef NODE_SIGNAL_WATCHER_H_
#define NODE_SIGNAL_WATCHER_H_
#include <node.h>
#include <v8.h>
#include <uv-private/ev.h>
#include "node.h"
#include "v8.h"
#include "uv-private/ev.h"
namespace node {

2
src/node_stat_watcher.cc

@ -19,7 +19,7 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node_stat_watcher.h>
#include "node_stat_watcher.h"
#include <assert.h>
#include <string.h>

4
src/node_stat_watcher.h

@ -22,8 +22,8 @@
#ifndef NODE_STAT_WATCHER_H_
#define NODE_STAT_WATCHER_H_
#include <node.h>
#include <uv-private/ev.h>
#include "node.h"
#include "uv-private/ev.h"
namespace node {

2
src/node_string.h

@ -22,7 +22,7 @@
#ifndef SRC_NODE_STRING_H_
#define SRC_NODE_STRING_H_
#include <v8.h>
#include "v8.h"
namespace node {

12
src/pipe_wrap.cc

@ -19,12 +19,12 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include <node_buffer.h>
#include <req_wrap.h>
#include <handle_wrap.h>
#include <stream_wrap.h>
#include <pipe_wrap.h>
#include "node.h"
#include "node_buffer.h"
#include "req_wrap.h"
#include "handle_wrap.h"
#include "stream_wrap.h"
#include "pipe_wrap.h"
#define UNWRAP \
assert(!args.Holder().IsEmpty()); \

2
src/pipe_wrap.h

@ -21,7 +21,7 @@
#ifndef PIPE_WRAP_H_
#define PIPE_WRAP_H_
#include <stream_wrap.h>
#include "stream_wrap.h"
namespace node {

2
src/platform.h

@ -22,7 +22,7 @@
#ifndef NODE_PLATFORM_H_
#define NODE_PLATFORM_H_
#include <v8.h>
#include "v8.h"
namespace node {

2
src/platform_darwin.cc

@ -22,7 +22,7 @@
#include "node.h"
#include "platform.h"
#include <v8.h>
#include "v8.h"
#include <mach/task.h>
#include <mach/mach.h>

2
src/platform_freebsd.cc

@ -22,7 +22,7 @@
#include "node.h"
#include "platform.h"
#include <v8.h>
#include "v8.h"
#include <stdlib.h>
#include <kvm.h>

2
src/platform_linux.cc

@ -22,7 +22,7 @@
#include "node.h"
#include "platform.h"
#include <v8.h>
#include "v8.h"
#include <sys/param.h> // for MAXPATHLEN
#include <unistd.h> // getpagesize, sysconf

2
src/platform_openbsd.cc

@ -22,7 +22,7 @@
#include "node.h"
#include "platform.h"
#include <v8.h>
#include "v8.h"
#include <stdlib.h>
#include <kvm.h>

6
src/platform_win32.cc

@ -20,10 +20,10 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include "node.h"
#include "platform.h"
#include <v8.h>
#include "v8.h"
#include <errno.h>
#include <stdlib.h>
@ -32,7 +32,7 @@
#include <unistd.h> // getpagesize
#endif
#include <platform_win32.h>
#include "platform_win32.h"
#include <psapi.h>
namespace node {

6
src/process_wrap.cc

@ -19,9 +19,9 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include <handle_wrap.h>
#include <pipe_wrap.h>
#include "node.h"
#include "handle_wrap.h"
#include "pipe_wrap.h"
#include <string.h>
#include <stdlib.h>

12
src/stream_wrap.cc

@ -19,12 +19,12 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include <node_buffer.h>
#include <handle_wrap.h>
#include <stream_wrap.h>
#include <tcp_wrap.h>
#include <req_wrap.h>
#include "node.h"
#include "node_buffer.h"
#include "handle_wrap.h"
#include "stream_wrap.h"
#include "tcp_wrap.h"
#include "req_wrap.h"
namespace node {

6
src/stream_wrap.h

@ -22,9 +22,9 @@
#ifndef STREAM_WRAP_H_
#define STREAM_WRAP_H_
#include <v8.h>
#include <node.h>
#include <handle_wrap.h>
#include "v8.h"
#include "node.h"
#include "handle_wrap.h"
namespace node {

12
src/tcp_wrap.cc

@ -19,12 +19,12 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include <node_buffer.h>
#include <req_wrap.h>
#include <handle_wrap.h>
#include <stream_wrap.h>
#include <tcp_wrap.h>
#include "node.h"
#include "node_buffer.h"
#include "req_wrap.h"
#include "handle_wrap.h"
#include "stream_wrap.h"
#include "tcp_wrap.h"
#include <stdlib.h>

2
src/tcp_wrap.h

@ -21,7 +21,7 @@
#ifndef TCP_WRAP_H_
#define TCP_WRAP_H_
#include <stream_wrap.h>
#include "stream_wrap.h"
namespace node {

4
src/timer_wrap.cc

@ -19,8 +19,8 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include <handle_wrap.h>
#include "node.h"
#include "handle_wrap.h"
#define UNWRAP \
assert(!args.Holder().IsEmpty()); \

10
src/tty_wrap.cc

@ -19,11 +19,11 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include <node_buffer.h>
#include <req_wrap.h>
#include <handle_wrap.h>
#include <stream_wrap.h>
#include "node.h"
#include "node_buffer.h"
#include "req_wrap.h"
#include "handle_wrap.h"
#include "stream_wrap.h"
namespace node {

8
src/udp_wrap.cc

@ -19,11 +19,11 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <node.h>
#include <node_buffer.h>
#include "node.h"
#include "node_buffer.h"
#include <req_wrap.h>
#include <handle_wrap.h>
#include "req_wrap.h"
#include "handle_wrap.h"
#include <stdlib.h>

2
src/v8_typed_array.cc

@ -22,7 +22,7 @@
#include <stdlib.h> // calloc, etc
#include <string.h> // memmove
#include <v8.h>
#include "v8.h"
#include "v8_typed_array.h"

2
src/v8_typed_array.h

@ -22,7 +22,7 @@
#ifndef V8_TYPED_ARRAY_H_
#define V8_TYPED_ARRAY_H_
#include <v8.h>
#include "v8.h"
namespace v8_typed_array {

Loading…
Cancel
Save