Prefix all source files with node_
authorRyan Dahl <ry@tinyclouds.org>
Tue, 27 Oct 2009 10:46:58 +0000 (11:46 +0100)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 27 Oct 2009 10:46:58 +0000 (11:46 +0100)
24 files changed:
src/node.cc
src/node.h
src/node_child_process.cc [moved from src/child_process.cc with 99% similarity]
src/node_child_process.h [moved from src/child_process.h with 98% similarity]
src/node_constants.cc [moved from src/constants.cc with 99% similarity]
src/node_constants.h [moved from src/constants.h with 100% similarity]
src/node_dns.cc [moved from src/dns.cc with 99% similarity]
src/node_dns.h [moved from src/dns.h with 100% similarity]
src/node_events.cc [moved from src/events.cc with 99% similarity]
src/node_events.h [moved from src/events.h with 97% similarity]
src/node_file.cc [moved from src/file.cc with 99% similarity]
src/node_file.h [moved from src/file.h with 99% similarity]
src/node_http.cc [moved from src/http.cc with 99% similarity]
src/node_http.h [moved from src/http.h with 99% similarity]
src/node_net.cc [moved from src/net.cc with 99% similarity]
src/node_net.h [moved from src/net.h with 99% similarity]
src/node_object_wrap.h [moved from src/object_wrap.h with 100% similarity]
src/node_signal_handler.cc [moved from src/signal_handler.cc with 98% similarity]
src/node_signal_handler.h [moved from src/signal_handler.h with 96% similarity]
src/node_stdio.cc
src/node_stdio.h
src/node_timer.cc [moved from src/timer.cc with 98% similarity]
src/node_timer.h [moved from src/timer.h with 95% similarity]
wscript

index 9f2ad43..5daafa8 100644 (file)
 #include <errno.h>
 #include <dlfcn.h> /* dlopen(), dlsym() */
 
-#include <events.h>
-#include <dns.h>
-#include <net.h>
-#include <file.h>
-#include <http.h>
-#include <signal_handler.h>
-#include <timer.h>
-#include <child_process.h>
-#include <constants.h>
+#include <node_events.h>
+#include <node_dns.h>
+#include <node_net.h>
+#include <node_file.h>
+#include <node_http.h>
+#include <node_signal_handler.h>
+#include <node_timer.h>
+#include <node_child_process.h>
+#include <node_constants.h>
 #include <node_stdio.h>
 #include <node_natives.h>
-#include <v8-debug.h>
 #include <node_version.h>
 
+#include <v8-debug.h>
+
 using namespace v8;
 
 extern char **environ;
index e849990..de5b7b3 100644 (file)
@@ -7,7 +7,7 @@
 #include <v8.h>
 #include <evcom.h>
 
-#include <object_wrap.h>
+#include <node_object_wrap.h>
 
 namespace node {
 
similarity index 99%
rename from src/child_process.cc
rename to src/node_child_process.cc
index a70d529..68373fe 100644 (file)
@@ -1,5 +1,5 @@
 // Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
-#include <child_process.h>
+#include <node_child_process.h>
 
 #include <assert.h>
 #include <string.h>
similarity index 98%
rename from src/child_process.h
rename to src/node_child_process.h
index a9c5952..1cdd974 100644 (file)
@@ -3,7 +3,7 @@
 #define SRC_CHILD_PROCESS_H_
 
 #include <node.h>
-#include <events.h>
+#include <node_events.h>
 
 #include <v8.h>
 #include <ev.h>
similarity index 99%
rename from src/constants.cc
rename to src/node_constants.cc
index f486f11..216c0e4 100644 (file)
@@ -1,5 +1,5 @@
 // Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
-#include <constants.h>
+#include <node_constants.h>
 
 #include <errno.h>
 #include <unistd.h>
similarity index 100%
rename from src/constants.h
rename to src/node_constants.h
similarity index 99%
rename from src/dns.cc
rename to src/node_dns.cc
index 7c4ccef..ea069f2 100644 (file)
@@ -1,5 +1,5 @@
 // Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
-#include <dns.h>
+#include <node_dns.h>
 
 #include <stdlib.h> /* exit() */
 #include <sys/types.h>
@@ -8,7 +8,7 @@
 #include <arpa/inet.h>
 #include <assert.h>
 
-#include <events.h>
+#include <node_events.h>
 
 #include <v8.h>
 #include <ev.h>
similarity index 100%
rename from src/dns.h
rename to src/node_dns.h
similarity index 99%
rename from src/events.cc
rename to src/node_events.cc
index f323322..bff32ab 100644 (file)
@@ -1,5 +1,5 @@
 // Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
-#include <events.h>
+#include <node_events.h>
 
 #include <assert.h>
 #include <stdlib.h>
similarity index 97%
rename from src/events.h
rename to src/node_events.h
index 9e3a8fd..d6e3111 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef SRC_EVENTS_H_
 #define SRC_EVENTS_H_
 
-#include <object_wrap.h>
+#include <node_object_wrap.h>
 #include <v8.h>
 
 namespace node {
similarity index 99%
rename from src/file.cc
rename to src/node_file.cc
index 5215d07..c2c329f 100644 (file)
@@ -1,5 +1,5 @@
 // Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
-#include <file.h>
+#include <node_file.h>
 
 #include <sys/types.h>
 #include <sys/stat.h>
similarity index 99%
rename from src/file.h
rename to src/node_file.h
index 831cf4a..b968f28 100644 (file)
@@ -3,7 +3,7 @@
 #define SRC_FILE_H_
 
 #include <node.h>
-#include <events.h>
+#include <node_events.h>
 #include <v8.h>
 
 namespace node {
similarity index 99%
rename from src/http.cc
rename to src/node_http.cc
index 1c80cea..b139796 100644 (file)
@@ -1,6 +1,4 @@
-#include "node.h"
-#include "http.h"
-#include <http_parser.h>
+#include <node_http.h>
 
 #include <assert.h>
 #include <stdio.h>
similarity index 99%
rename from src/http.h
rename to src/node_http.h
index d1ca404..cf70c12 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef node_http_h
 #define node_http_h
 
+#include <node_net.h>
 #include <v8.h>
-#include "net.h"
 #include <http_parser.h>
 
 namespace node {
similarity index 99%
rename from src/net.cc
rename to src/node_net.cc
index 8c5fad1..a5197d0 100644 (file)
@@ -1,5 +1,5 @@
 // Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
-#include <net.h>
+#include <node_net.h>
 
 #include <assert.h>
 #include <stdlib.h>
similarity index 99%
rename from src/net.h
rename to src/node_net.h
index e1261ab..4b35444 100644 (file)
--- a/src/net.h
@@ -3,7 +3,7 @@
 #define SRC_NET_H_
 
 #include <node.h>
-#include <events.h>
+#include <node_events.h>
 #include <v8.h>
 #include <evcom.h>
 
similarity index 100%
rename from src/object_wrap.h
rename to src/node_object_wrap.h
similarity index 98%
rename from src/signal_handler.cc
rename to src/node_signal_handler.cc
index cd022e6..b853f65 100644 (file)
@@ -1,5 +1,5 @@
 // Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
-#include <signal_handler.h>
+#include <node_signal_handler.h>
 #include <assert.h>
 
 namespace node {
similarity index 96%
rename from src/signal_handler.h
rename to src/node_signal_handler.h
index 88098b4..b6f3b89 100644 (file)
@@ -3,7 +3,7 @@
 #define SRC_SIGNAL_HANDLER_H_
 
 #include <node.h>
-#include <events.h>
+#include <node_events.h>
 
 #include <v8.h>
 #include <ev.h>
index 00c8379..2b1da6c 100644 (file)
@@ -1,6 +1,6 @@
-#include "node_stdio.h"
-#include "events.h"
-#include "coupling.h"
+#include <node_stdio.h>
+#include <node_events.h>
+#include <coupling.h>
 
 #include <unistd.h>
 #include <fcntl.h>
index cfd473f..11dd5ae 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef node_stdio_h
 #define node_stdio_h
 
-#include "node.h"
+#include <node.h>
 
 #include <v8.h>
 #include <evcom.h>
similarity index 98%
rename from src/timer.cc
rename to src/node_timer.cc
index 61f18f7..c9e8e7a 100644 (file)
@@ -1,5 +1,5 @@
-#include "node.h"
-#include "timer.h"
+#include <node.h>
+#include <node_timer.h>
 #include <assert.h>
 
 using namespace v8;
similarity index 95%
rename from src/timer.h
rename to src/node_timer.h
index 9d0834b..d662f9a 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef node_timer_h
 #define node_timer_h
 
-#include "node.h"
-#include "events.h"
+#include <node.h>
+#include <node_events.h>
 #include <v8.h>
 #include <ev.h>
 
diff --git a/wscript b/wscript
index 9d7be74..68c6cf7 100644 (file)
--- 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/