diff options
author | 2006-09-28 04:28:13 +0000 | |
---|---|---|
committer | 2006-09-28 04:28:13 +0000 | |
commit | f296289c0686ed045842717a97ab88b1eae91db9 (patch) | |
tree | b706940ad0998ebb3a13ca0e832eae3142c7f3cf /misc | |
parent | 2fce25cdbfc4e90252977728b955d86b2940c1d6 (diff) | |
download | paludis-f296289c0686ed045842717a97ab88b1eae91db9.tar.gz paludis-f296289c0686ed045842717a97ab88b1eae91db9.tar.xz |
Add visibility support to some of the smaller libraries
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/make_sr.bash | 12 |
1 files changed, 11 insertions, 1 deletions
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 |