diff --git a/src/node.cc b/src/node.cc index 9f2ad4342a..5daafa8a57 100644 --- a/src/node.cc +++ b/src/node.cc @@ -10,20 +10,21 @@ #include #include /* dlopen(), dlsym() */ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include -#include #include +#include + using namespace v8; extern char **environ; diff --git a/src/node.h b/src/node.h index e8499900c7..de5b7b3bed 100644 --- a/src/node.h +++ b/src/node.h @@ -7,7 +7,7 @@ #include #include -#include +#include namespace node { diff --git a/src/child_process.cc b/src/node_child_process.cc similarity index 99% rename from src/child_process.cc rename to src/node_child_process.cc index a70d529d1f..68373fe9c9 100644 --- a/src/child_process.cc +++ b/src/node_child_process.cc @@ -1,5 +1,5 @@ // Copyright 2009 Ryan Dahl -#include +#include #include #include diff --git a/src/child_process.h b/src/node_child_process.h similarity index 98% rename from src/child_process.h rename to src/node_child_process.h index a9c595201a..1cdd974d09 100644 --- a/src/child_process.h +++ b/src/node_child_process.h @@ -3,7 +3,7 @@ #define SRC_CHILD_PROCESS_H_ #include -#include +#include #include #include diff --git a/src/constants.cc b/src/node_constants.cc similarity index 99% rename from src/constants.cc rename to src/node_constants.cc index f486f11500..216c0e49c3 100644 --- a/src/constants.cc +++ b/src/node_constants.cc @@ -1,5 +1,5 @@ // Copyright 2009 Ryan Dahl -#include +#include #include #include diff --git a/src/constants.h b/src/node_constants.h similarity index 100% rename from src/constants.h rename to src/node_constants.h diff --git a/src/dns.cc b/src/node_dns.cc similarity index 99% rename from src/dns.cc rename to src/node_dns.cc index 7c4ccef3fa..ea069f2776 100644 --- a/src/dns.cc +++ b/src/node_dns.cc @@ -1,5 +1,5 @@ // Copyright 2009 Ryan Dahl -#include +#include #include /* exit() */ #include @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include diff --git a/src/dns.h b/src/node_dns.h similarity index 100% rename from src/dns.h rename to src/node_dns.h diff --git a/src/events.cc b/src/node_events.cc similarity index 99% rename from src/events.cc rename to src/node_events.cc index f323322c4a..bff32abdf5 100644 --- a/src/events.cc +++ b/src/node_events.cc @@ -1,5 +1,5 @@ // Copyright 2009 Ryan Dahl -#include +#include #include #include diff --git a/src/events.h b/src/node_events.h similarity index 97% rename from src/events.h rename to src/node_events.h index 9e3a8fd645..d6e3111271 100644 --- a/src/events.h +++ b/src/node_events.h @@ -2,7 +2,7 @@ #ifndef SRC_EVENTS_H_ #define SRC_EVENTS_H_ -#include +#include #include namespace node { diff --git a/src/file.cc b/src/node_file.cc similarity index 99% rename from src/file.cc rename to src/node_file.cc index 5215d07cb9..c2c329f6d6 100644 --- a/src/file.cc +++ b/src/node_file.cc @@ -1,5 +1,5 @@ // Copyright 2009 Ryan Dahl -#include +#include #include #include diff --git a/src/file.h b/src/node_file.h similarity index 99% rename from src/file.h rename to src/node_file.h index 831cf4a65a..b968f28735 100644 --- a/src/file.h +++ b/src/node_file.h @@ -3,7 +3,7 @@ #define SRC_FILE_H_ #include -#include +#include #include namespace node { diff --git a/src/http.cc b/src/node_http.cc similarity index 99% rename from src/http.cc rename to src/node_http.cc index 1c80ceabcf..b139796d09 100644 --- a/src/http.cc +++ b/src/node_http.cc @@ -1,6 +1,4 @@ -#include "node.h" -#include "http.h" -#include +#include #include #include diff --git a/src/http.h b/src/node_http.h similarity index 99% rename from src/http.h rename to src/node_http.h index d1ca4042a7..cf70c12377 100644 --- a/src/http.h +++ b/src/node_http.h @@ -1,8 +1,8 @@ #ifndef node_http_h #define node_http_h +#include #include -#include "net.h" #include namespace node { diff --git a/src/net.cc b/src/node_net.cc similarity index 99% rename from src/net.cc rename to src/node_net.cc index 8c5fad1d8a..a5197d0f28 100644 --- a/src/net.cc +++ b/src/node_net.cc @@ -1,5 +1,5 @@ // Copyright 2009 Ryan Dahl -#include +#include #include #include diff --git a/src/net.h b/src/node_net.h similarity index 99% rename from src/net.h rename to src/node_net.h index e1261ab484..4b35444c34 100644 --- a/src/net.h +++ b/src/node_net.h @@ -3,7 +3,7 @@ #define SRC_NET_H_ #include -#include +#include #include #include diff --git a/src/object_wrap.h b/src/node_object_wrap.h similarity index 100% rename from src/object_wrap.h rename to src/node_object_wrap.h diff --git a/src/signal_handler.cc b/src/node_signal_handler.cc similarity index 98% rename from src/signal_handler.cc rename to src/node_signal_handler.cc index cd022e6c6d..b853f65318 100644 --- a/src/signal_handler.cc +++ b/src/node_signal_handler.cc @@ -1,5 +1,5 @@ // Copyright 2009 Ryan Dahl -#include +#include #include namespace node { diff --git a/src/signal_handler.h b/src/node_signal_handler.h similarity index 96% rename from src/signal_handler.h rename to src/node_signal_handler.h index 88098b45ca..b6f3b892d5 100644 --- a/src/signal_handler.h +++ b/src/node_signal_handler.h @@ -3,7 +3,7 @@ #define SRC_SIGNAL_HANDLER_H_ #include -#include +#include #include #include diff --git a/src/node_stdio.cc b/src/node_stdio.cc index 00c83799b4..2b1da6c055 100644 --- a/src/node_stdio.cc +++ b/src/node_stdio.cc @@ -1,6 +1,6 @@ -#include "node_stdio.h" -#include "events.h" -#include "coupling.h" +#include +#include +#include #include #include diff --git a/src/node_stdio.h b/src/node_stdio.h index cfd473f281..11dd5aeddc 100644 --- a/src/node_stdio.h +++ b/src/node_stdio.h @@ -1,7 +1,7 @@ #ifndef node_stdio_h #define node_stdio_h -#include "node.h" +#include #include #include diff --git a/src/timer.cc b/src/node_timer.cc similarity index 98% rename from src/timer.cc rename to src/node_timer.cc index 61f18f745f..c9e8e7abf6 100644 --- a/src/timer.cc +++ b/src/node_timer.cc @@ -1,5 +1,5 @@ -#include "node.h" -#include "timer.h" +#include +#include #include using namespace v8; diff --git a/src/timer.h b/src/node_timer.h similarity index 95% rename from src/timer.h rename to src/node_timer.h index 9d0834b515..d662f9a0fa 100644 --- a/src/timer.h +++ b/src/node_timer.h @@ -1,8 +1,8 @@ #ifndef node_timer_h #define node_timer_h -#include "node.h" -#include "events.h" +#include +#include #include #include diff --git a/wscript b/wscript index 9d7be74845..68c6cf710d 100644 --- a/wscript +++ b/wscript @@ -310,16 +310,16 @@ def build(bld): node.target = "node" node.source = """ src/node.cc - src/events.cc - src/http.cc - src/net.cc + src/node_child_process.cc + src/node_constants.cc + src/node_dns.cc + src/node_events.cc + src/node_file.cc + src/node_http.cc + src/node_net.cc + src/node_signal_handler.cc src/node_stdio.cc - src/dns.cc - src/file.cc - src/signal_handler.cc - src/timer.cc - src/child_process.cc - src/constants.cc + src/node_timer.cc """ node.includes = """ src/