From 9050da9c20ed7e6e09e20944d2e8caac687bb00f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 25 Aug 2011 16:27:27 -0600 Subject: Rename dimension-impl.h to dimension-internal.h --- HACKING | 2 +- libdimension/Makefile.am | 2 +- libdimension/bench/prtree.c | 2 +- libdimension/csg.c | 2 +- libdimension/dimension-impl.h | 39 --------------------------------------- libdimension/dimension-internal.h | 39 +++++++++++++++++++++++++++++++++++++++ libdimension/error.c | 2 +- libdimension/geometry.c | 2 +- libdimension/malloc.c | 2 +- libdimension/platform.c | 2 +- libdimension/png.c | 2 +- libdimension/polynomial.c | 2 +- libdimension/profile.c | 2 +- libdimension/progress.c | 2 +- libdimension/prtree.c | 2 +- libdimension/raytrace.c | 2 +- libdimension/scene.c | 2 +- libdimension/tests/prtree.c | 2 +- libdimension/threads.c | 2 +- libdimension/timer.c | 2 +- 20 files changed, 57 insertions(+), 57 deletions(-) delete mode 100644 libdimension/dimension-impl.h create mode 100644 libdimension/dimension-internal.h diff --git a/HACKING b/HACKING index 49cc828..58ca3f2 100644 --- a/HACKING +++ b/HACKING @@ -8,7 +8,7 @@ API: libdimension/dimension.h, libdimension/dimension/*.h are generally at libdimension/$file.c) Ray tracing algorithm: libdimension/raytrace.c Bounding hierarchy: libdimension/prtree.{c,h} -Library internals: libdimension/dimension-impl.h and its #includes +Library internals: libdimension/dimension-internal.h and its #includes Tests: libdimension/tests/*.{c,cpp} Benchmarks: libdimension/bench/*.c diff --git a/libdimension/Makefile.am b/libdimension/Makefile.am index 94b5e98..d6049da 100644 --- a/libdimension/Makefile.am +++ b/libdimension/Makefile.am @@ -72,7 +72,7 @@ libdimension_la_SOURCES = $(nobase_include_HEADERS) \ cube.c \ csg.c \ dictionary.c \ - dimension-impl.h \ + dimension-internal.h \ error.c \ finish.c \ geometry.c \ diff --git a/libdimension/bench/prtree.c b/libdimension/bench/prtree.c index 05fc1ce..e8e0b02 100644 --- a/libdimension/bench/prtree.c +++ b/libdimension/bench/prtree.c @@ -17,7 +17,7 @@ * along with this program. If not, see . * *************************************************************************/ -#include "dimension-impl.h" +#include "dimension-internal.h" #include #include diff --git a/libdimension/csg.c b/libdimension/csg.c index 1b2e36f..d2996db 100644 --- a/libdimension/csg.c +++ b/libdimension/csg.c @@ -23,7 +23,7 @@ * Constructive solid geometry. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #include /* diff --git a/libdimension/dimension-impl.h b/libdimension/dimension-impl.h deleted file mode 100644 index 418f8c8..0000000 --- a/libdimension/dimension-impl.h +++ /dev/null @@ -1,39 +0,0 @@ -/************************************************************************* - * Copyright (C) 2009-2011 Tavian Barnes * - * * - * This file is part of The Dimension Library. * - * * - * The Dimension Library is free software; you can redistribute it and/ * - * or modify it under the terms of the GNU Lesser General Public License * - * as published by the Free Software Foundation; either version 3 of the * - * License, or (at your option) any later version. * - * * - * The Dimension Library is distributed in the hope that it will be * - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty * - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - * Lesser General Public License for more details. * - * * - * You should have received a copy of the GNU Lesser General Public * - * License along with this program. If not, see * - * . * - *************************************************************************/ - -/** - * @file - * The internal libdimension API. These functions and types are used to - * implement libdimension, but are not part of its public API. - */ - -#ifndef DIMENSION_IMPL_H -#define DIMENSION_IMPL_H - -#define _GNU_SOURCE -#include "dimension.h" -#include "compiler.h" -#include "profile.h" -#include "platform.h" -#include "progress-impl.h" -#include "threads.h" -#include "prtree.h" - -#endif /* DIMENSION_IMPL_H */ diff --git a/libdimension/dimension-internal.h b/libdimension/dimension-internal.h new file mode 100644 index 0000000..21e2f42 --- /dev/null +++ b/libdimension/dimension-internal.h @@ -0,0 +1,39 @@ +/************************************************************************* + * Copyright (C) 2009-2011 Tavian Barnes * + * * + * This file is part of The Dimension Library. * + * * + * The Dimension Library is free software; you can redistribute it and/ * + * or modify it under the terms of the GNU Lesser General Public License * + * as published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * + * * + * The Dimension Library is distributed in the hope that it will be * + * useful, but WITHOUT ANY WARRANTY; without even the implied warranty * + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * + * Lesser General Public License for more details. * + * * + * You should have received a copy of the GNU Lesser General Public * + * License along with this program. If not, see * + * . * + *************************************************************************/ + +/** + * @file + * The internal libdimension API. These functions and types are used to + * implement libdimension, but are not part of its public API. + */ + +#ifndef DIMENSION_INTERNAL_H +#define DIMENSION_INTERNAL_H + +#define _GNU_SOURCE +#include "dimension.h" +#include "compiler.h" +#include "profile.h" +#include "platform.h" +#include "progress-impl.h" +#include "threads.h" +#include "prtree.h" + +#endif /* DIMENSION_INTERNAL_H */ diff --git a/libdimension/error.c b/libdimension/error.c index 6276c5c..5b82548 100644 --- a/libdimension/error.c +++ b/libdimension/error.c @@ -23,7 +23,7 @@ * Error handling. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #include #include /* For fprintf() */ #include /* For exit() */ diff --git a/libdimension/geometry.c b/libdimension/geometry.c index f7c6842..1d50def 100644 --- a/libdimension/geometry.c +++ b/libdimension/geometry.c @@ -23,7 +23,7 @@ * Geometrical function implementations. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #include /* Identity matrix */ diff --git a/libdimension/malloc.c b/libdimension/malloc.c index 2f11281..d7816c3 100644 --- a/libdimension/malloc.c +++ b/libdimension/malloc.c @@ -23,7 +23,7 @@ * Dynamic memory. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #include #include diff --git a/libdimension/platform.c b/libdimension/platform.c index e9509a1..a54a3de 100644 --- a/libdimension/platform.c +++ b/libdimension/platform.c @@ -23,7 +23,7 @@ * Platform abstractions. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #if HAVE_UNISTD_H #include #endif diff --git a/libdimension/png.c b/libdimension/png.c index 0c6ffdd..36164d1 100644 --- a/libdimension/png.c +++ b/libdimension/png.c @@ -23,7 +23,7 @@ * PNG import/export. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #include #include #include diff --git a/libdimension/polynomial.c b/libdimension/polynomial.c index ed4679b..d072719 100644 --- a/libdimension/polynomial.c +++ b/libdimension/polynomial.c @@ -23,7 +23,7 @@ * Polynomials. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #include /** Get the real degree of a polynomial, ignoring leading zeros. */ diff --git a/libdimension/profile.c b/libdimension/profile.c index f7e8e41..fcbb423 100644 --- a/libdimension/profile.c +++ b/libdimension/profile.c @@ -23,7 +23,7 @@ * Branch profile accounting. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #include #include #include diff --git a/libdimension/progress.c b/libdimension/progress.c index 0fa1c66..f2ff25f 100644 --- a/libdimension/progress.c +++ b/libdimension/progress.c @@ -23,7 +23,7 @@ * Progress objects. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #include /* Allocate a new dmnsn_progress* */ diff --git a/libdimension/prtree.c b/libdimension/prtree.c index 0663acf..d47d89a 100644 --- a/libdimension/prtree.c +++ b/libdimension/prtree.c @@ -24,7 +24,7 @@ * libdimension. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #include #include diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c index 7cc99ba..fdfa3cb 100644 --- a/libdimension/raytrace.c +++ b/libdimension/raytrace.c @@ -23,7 +23,7 @@ * The ray-tracing algorithm. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #include /* diff --git a/libdimension/scene.c b/libdimension/scene.c index ff2ff62..0d8c5b0 100644 --- a/libdimension/scene.c +++ b/libdimension/scene.c @@ -23,7 +23,7 @@ * Scenes. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #include /* Allocate an empty scene */ diff --git a/libdimension/tests/prtree.c b/libdimension/tests/prtree.c index ddfa46a..991d466 100644 --- a/libdimension/tests/prtree.c +++ b/libdimension/tests/prtree.c @@ -21,7 +21,7 @@ * Basic tests of PR-trees */ -#include "dimension-impl.h" +#include "dimension-internal.h" #define DMNSN_PRTREE_B 8 #include #include diff --git a/libdimension/threads.c b/libdimension/threads.c index 4cefdd5..2200671 100644 --- a/libdimension/threads.c +++ b/libdimension/threads.c @@ -23,7 +23,7 @@ * Background threading. */ -#include "dimension-impl.h" +#include "dimension-internal.h" #include /** The payload to pass to the pthread callback. */ diff --git a/libdimension/timer.c b/libdimension/timer.c index e0873a8..7b2290f 100644 --- a/libdimension/timer.c +++ b/libdimension/timer.c @@ -23,7 +23,7 @@ * Performance counter. */ -#include "dimension-impl.h" +#include "dimension-internal.h" void dmnsn_start_timer(dmnsn_timer *timer) -- cgit v1.2.3