From f296289c0686ed045842717a97ab88b1eae91db9 Mon Sep 17 00:00:00 2001 From: Ciaran McCreesh Date: Thu, 28 Sep 2006 04:28:13 +0000 Subject: Add visibility support to some of the smaller libraries --- misc/make_sr.bash | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/make_sr.bash b/misc/make_sr.bash index 01d692b06..381c9faf8 100755 --- a/misc/make_sr.bash +++ b/misc/make_sr.bash @@ -37,6 +37,7 @@ while read a ; do a=${a%% *} want_named_args= + want_visible= want_keys=( ) want_key_types=( ) want_comparison_operators= @@ -57,6 +58,11 @@ while read a ; do want_named_args=yes } + visible() + { + want_visible=yes + } + doxygen_comment() { : @@ -123,7 +129,11 @@ while read a ; do } if [[ "${what_to_make}" == "--header" ]] ; then - echo "class ${a}" + if [[ -z ${want_visible} ]] ; then + echo "class ${a}" + else + echo "class PALUDIS_VISIBLE ${a}" + fi echo "{" echo " public:" echo -- cgit v1.2.3