mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd::json: Cleanup visibility attributions for internal assets.
This commit is contained in:
parent
f151eb2e6c
commit
ca147df40f
1 changed files with 10 additions and 13 deletions
23
ircd/json.cc
23
ircd/json.cc
|
@ -8,8 +8,7 @@
|
|||
// copyright notice and this permission notice is present in all copies. The
|
||||
// full license for this software is available in the LICENSE file.
|
||||
|
||||
namespace ircd { namespace json
|
||||
__attribute__((visibility("hidden")))
|
||||
namespace ircd::json
|
||||
{
|
||||
using namespace ircd::spirit;
|
||||
|
||||
|
@ -21,7 +20,7 @@ __attribute__((visibility("hidden")))
|
|||
struct printer extern const printer;
|
||||
|
||||
const size_t &error_show_max {48};
|
||||
}}
|
||||
}
|
||||
|
||||
BOOST_FUSION_ADAPT_STRUCT
|
||||
(
|
||||
|
@ -37,7 +36,8 @@ BOOST_FUSION_ADAPT_STRUCT
|
|||
( decltype(ircd::json::object::member::second), second )
|
||||
)
|
||||
|
||||
struct ircd::json::input
|
||||
struct [[gnu::visibility("internal")]]
|
||||
ircd::json::input
|
||||
:qi::grammar<const char *, unused_type>
|
||||
{
|
||||
using it = const char *;
|
||||
|
@ -215,7 +215,8 @@ struct ircd::json::input
|
|||
}
|
||||
};
|
||||
|
||||
struct ircd::json::output
|
||||
struct [[gnu::visibility("internal")]]
|
||||
ircd::json::output
|
||||
:karma::grammar<char *, unused_type>
|
||||
{
|
||||
using it = char *;
|
||||
|
@ -347,14 +348,16 @@ struct ircd::json::output
|
|||
}
|
||||
};
|
||||
|
||||
struct ircd::json::parser
|
||||
struct [[gnu::visibility("internal")]]
|
||||
ircd::json::parser
|
||||
:input
|
||||
{
|
||||
using input::input;
|
||||
}
|
||||
const ircd::json::parser;
|
||||
|
||||
struct ircd::json::printer
|
||||
struct [[gnu::visibility("internal")]]
|
||||
ircd::json::printer
|
||||
:output
|
||||
{
|
||||
template<class gen,
|
||||
|
@ -463,12 +466,6 @@ ircd::json::input::throws_exceeded()
|
|||
};
|
||||
}
|
||||
|
||||
namespace ircd { namespace json
|
||||
__attribute__((visibility("default")))
|
||||
{
|
||||
// this stub needed for clang
|
||||
}}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// json/tool.h
|
||||
|
|
Loading…
Reference in a new issue