aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-26 22:13:47 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-26 22:13:47 +0000
commit6b5af5a100ccbdadbd2bda2ae1f5d0c82fd88b78 (patch)
tree4d746ca78ad5f710ada416279ff42bbcb3ebbe2b
parent72c7bcdc9dd9af6e3305df7b079922447a56a88f (diff)
downloadpaludis-6b5af5a100ccbdadbd2bda2ae1f5d0c82fd88b78.tar.gz
paludis-6b5af5a100ccbdadbd2bda2ae1f5d0c82fd88b78.tar.xz
Make paludis.hh more useful
-rw-r--r--paludis/paludis.hh.m47
-rw-r--r--paludis/util/util.hh.m49
2 files changed, 11 insertions, 5 deletions
diff --git a/paludis/paludis.hh.m4 b/paludis/paludis.hh.m4
index 4665c2c..514819d 100644
--- a/paludis/paludis.hh.m4
+++ b/paludis/paludis.hh.m4
@@ -31,8 +31,11 @@ dnl vim: set ft=cpp et sw=4 sts=4 :
define(`addhh', `dnl
#include <paludis/$1.hh>
')dnl
-define(`addthis', `ifelse(`$2', `hh', `addhh(`$1')',`')')
-define(`add', `addthis(`$1',`$2')addthis(`$1',`$3')addthis(`$1',`$4')dnl
+define(`addimpl', `dnl
+#include <paludis/$1-impl.hh>
+')dnl
+define(`addthis', `ifelse(`$2', `hh', `addhh(`$1')', ifelse(`$2', `impl', `addimpl(`$1')', `' ) )')
+define(`add', `addthis(`$1',`$2')addthis(`$1',`$3')addthis(`$1',`$4')
addthis(`$1',`$5')addthis(`$1',`$6')')dnl
include(`paludis/files.m4')
diff --git a/paludis/util/util.hh.m4 b/paludis/util/util.hh.m4
index 437206c..8dbced7 100644
--- a/paludis/util/util.hh.m4
+++ b/paludis/util/util.hh.m4
@@ -5,7 +5,7 @@ dnl vim: set ft=cpp et sw=4 sts=4 :
#endif
/*
- * Copyright (c) 2006 Ciaran McCreesh <ciaranm@ciaranm.org>
+ * Copyright (c) 2006, 2007 Ciaran McCreesh <ciaranm@ciaranm.org>
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -31,8 +31,11 @@ dnl vim: set ft=cpp et sw=4 sts=4 :
define(`addhh', `dnl
#include <paludis/util/$1.hh>
')dnl
-define(`addthis', `ifelse(`$2', `hh', `addhh(`$1')',`')')
-define(`add', `addthis(`$1',`$2')addthis(`$1',`$3')addthis(`$1',`$4')dnl
+define(`addimpl', `dnl
+#include <paludis/util/$1-impl.hh>
+')dnl
+define(`addthis', `ifelse(`$2', `hh', `addhh(`$1')', ifelse(`$2', `impl', `addimpl(`$1')', `' ) )')
+define(`add', `addthis(`$1',`$2')addthis(`$1',`$3')addthis(`$1',`$4')
addthis(`$1',`$5')addthis(`$1',`$6')')dnl
include(`paludis/util/files.m4')