From b47c474cfd62eaf0030e069c160b363a2cb8ec2a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 31 Aug 2011 00:43:55 -0700 Subject: [PATCH] Move private headers into include/uv-private --- Makefile | 2 +- config-unix.mk | 8 ++++---- include/{ => uv-private}/eio.h | 0 include/{ => uv-private}/ev.h | 0 include/{ => uv-private}/ngx-queue.h | 0 include/{ => uv-private}/tree.h | 0 include/{ => uv-private}/uv-unix.h | 0 include/{ => uv-private}/uv-win.h | 0 include/uv.h | 4 ++-- uv.gyp | 13 +++++++------ 10 files changed, 14 insertions(+), 13 deletions(-) rename include/{ => uv-private}/eio.h (100%) rename include/{ => uv-private}/ev.h (100%) rename include/{ => uv-private}/ngx-queue.h (100%) rename include/{ => uv-private}/tree.h (100%) rename include/{ => uv-private}/uv-unix.h (100%) rename include/{ => uv-private}/uv-win.h (100%) diff --git a/Makefile b/Makefile index b106ad4c..d1252716 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ ifdef MSVC uname_S := MINGW endif -CPPFLAGS += -Iinclude +CPPFLAGS += -Iinclude -Iinclude/uv-private CARES_OBJS = CARES_OBJS += src/ares/ares__close_sockets.o diff --git a/config-unix.mk b/config-unix.mk index bfd1dc38..37208519 100644 --- a/config-unix.mk +++ b/config-unix.mk @@ -89,16 +89,16 @@ uv.a: src/uv-unix.o src/unix/fs.o src/uv-common.o src/uv-platform.o src/unix/ev/ $(AR) rcs uv.a src/uv-unix.o src/unix/fs.o src/uv-platform.o src/uv-common.o src/unix/uv-eio.o src/unix/ev/ev.o \ src/unix/eio/eio.o $(CARES_OBJS) -src/uv-platform.o: src/unix/$(UV_OS_FILE) include/uv.h include/uv-unix.h +src/uv-platform.o: src/unix/$(UV_OS_FILE) include/uv.h include/uv-private/uv-unix.h $(CC) $(CSTDFLAG) $(CPPFLAGS) $(CFLAGS) -c src/unix/$(UV_OS_FILE) -o src/uv-platform.o -src/uv-unix.o: src/uv-unix.c include/uv.h include/uv-unix.h src/unix/internal.h +src/uv-unix.o: src/uv-unix.c include/uv.h include/uv-private/uv-unix.h src/unix/internal.h $(CC) $(CSTDFLAG) $(CPPFLAGS) -Isrc $(CFLAGS) -c src/uv-unix.c -o src/uv-unix.o -src/unix/fs.o: src/unix/fs.c include/uv.h include/uv-unix.h src/unix/internal.h +src/unix/fs.o: src/unix/fs.c include/uv.h include/uv-private/uv-unix.h src/unix/internal.h $(CC) $(CSTDFLAG) $(CPPFLAGS) -Isrc/ $(CFLAGS) -c src/unix/fs.c -o src/unix/fs.o -src/uv-common.o: src/uv-common.c include/uv.h include/uv-unix.h +src/uv-common.o: src/uv-common.c include/uv.h include/uv-private/uv-unix.h $(CC) $(CSTDFLAG) $(CPPFLAGS) $(CFLAGS) -c src/uv-common.c -o src/uv-common.o src/unix/ev/ev.o: src/unix/ev/ev.c diff --git a/include/eio.h b/include/uv-private/eio.h similarity index 100% rename from include/eio.h rename to include/uv-private/eio.h diff --git a/include/ev.h b/include/uv-private/ev.h similarity index 100% rename from include/ev.h rename to include/uv-private/ev.h diff --git a/include/ngx-queue.h b/include/uv-private/ngx-queue.h similarity index 100% rename from include/ngx-queue.h rename to include/uv-private/ngx-queue.h diff --git a/include/tree.h b/include/uv-private/tree.h similarity index 100% rename from include/tree.h rename to include/uv-private/tree.h diff --git a/include/uv-unix.h b/include/uv-private/uv-unix.h similarity index 100% rename from include/uv-unix.h rename to include/uv-private/uv-unix.h diff --git a/include/uv-win.h b/include/uv-private/uv-win.h similarity index 100% rename from include/uv-win.h rename to include/uv-private/uv-win.h diff --git a/include/uv.h b/include/uv.h index 4ba5bd64..a64f18e7 100644 --- a/include/uv.h +++ b/include/uv.h @@ -67,9 +67,9 @@ typedef struct uv_fs_s uv_fs_t; typedef struct uv_work_s uv_work_t; #if defined(__unix__) || defined(__POSIX__) || defined(__APPLE__) -# include "uv-unix.h" +# include "uv-private/uv-unix.h" #else -# include "uv-win.h" +# include "uv-private/uv-win.h" #endif diff --git a/uv.gyp b/uv.gyp index f836c5ee..d345a59d 100644 --- a/uv.gyp +++ b/uv.gyp @@ -5,6 +5,7 @@ 'type': '<(library)', 'include_dirs': [ 'include', + 'include/uv-private', 'src/', ], 'direct_dependent_settings': { @@ -94,8 +95,8 @@ '_GNU_SOURCE', ], 'sources': [ - 'include/tree.h', - 'include/uv-win.h', + 'include/uv-private/tree.h', + 'include/uv-private/uv-win.h', 'src/ares/config_win32/ares_config.h', 'src/win/async.c', 'src/win/cares.c', @@ -136,10 +137,10 @@ '-Wno-unused-parameter' ], 'sources': [ - 'include/eio.h', - 'include/ev.h', - 'include/ngx-queue.h', - 'include/uv-unix.h', + 'include/uv-private/eio.h', + 'include/uv-private/ev.h', + 'include/uv-private/ngx-queue.h', + 'include/uv-private/uv-unix.h', 'src/uv-unix.c', 'src/unix/uv-eio.c', 'src/unix/uv-eio.h',