Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
core: use proper #include directives
  • Loading branch information
bnoordhuis committed Jun 18, 2012
1 parent bb2ce1a commit eef57dd
Show file tree
Hide file tree
Showing 50 changed files with 136 additions and 136 deletions.
6 changes: 3 additions & 3 deletions src/cares_wrap.cc
Expand Up @@ -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>

Expand Down
4 changes: 2 additions & 2 deletions src/fs_event_wrap.cc
Expand Up @@ -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>

Expand Down
4 changes: 2 additions & 2 deletions src/handle_wrap.cc
Expand Up @@ -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 {

Expand Down
36 changes: 18 additions & 18 deletions src/node.cc
Expand Up @@ -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>
Expand Down Expand Up @@ -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__
Expand All @@ -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;

Expand Down
6 changes: 3 additions & 3 deletions src/node.h
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/node_buffer.cc
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/node_buffer.h
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions src/node_constants.cc
Expand Up @@ -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)
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/node_constants.h
Expand Up @@ -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);
Expand Down
10 changes: 5 additions & 5 deletions src/node_crypto.cc
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/node_crypto.h
Expand Up @@ -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>
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/node_dtrace.cc
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/node_dtrace.h
Expand Up @@ -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" {

Expand Down
2 changes: 1 addition & 1 deletion src/node_file.cc
Expand Up @@ -37,7 +37,7 @@

#if defined(__MINGW32__) || defined(_MSC_VER)
# include <io.h>
# include <platform_win32.h>
# include "platform_win32.h"
#endif

namespace node {
Expand Down
4 changes: 2 additions & 2 deletions src/node_file.h
Expand Up @@ -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 {

Expand Down
8 changes: 4 additions & 4 deletions src/node_http_parser.cc
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion src/node_http_parser.h
Expand Up @@ -22,7 +22,7 @@
#ifndef NODE_HTTP_PARSER
#define NODE_HTTP_PARSER

#include <v8.h>
#include "v8.h"

namespace node {

Expand Down
6 changes: 3 additions & 3 deletions src/node_io_watcher.cc
Expand Up @@ -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>

Expand Down
4 changes: 2 additions & 2 deletions src/node_io_watcher.h
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/node_javascript.cc
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/node_javascript.h
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/node_main.cc
Expand Up @@ -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[]) {
Expand Down
4 changes: 2 additions & 2 deletions src/node_object_wrap.h
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions src/node_os.cc
Expand Up @@ -20,19 +20,19 @@
// 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>

#ifdef __MINGW32__
# include <io.h>

# include <platform_win32.h>
# include "platform_win32.h"
#endif

#ifdef __POSIX__
Expand Down
4 changes: 2 additions & 2 deletions src/node_os.h
Expand Up @@ -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 {

Expand Down
4 changes: 2 additions & 2 deletions src/node_script.cc
Expand Up @@ -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 {
Expand Down

0 comments on commit eef57dd

Please sign in to comment.