Use -fvisibility=hidden for all parsers.
* src/eltlparse/Makefile.am, src/kripkeparse/Makefile.am, src/ltlparse/Makefile.am, src/neverparse/Makefile.am, src/tgbaparse/Makefile.am: Use $(VISIBILITY_CXXFLAGS) * src/eltlparse/public.hh, src/kripkeparse/public.hh, src/ltlparse/ltlfile.hh, src/ltlparse/public.hh, src/neverparse/public.hh, src/tgbaparse/public.hh: Mark public symbols with SPOT_API.
This commit is contained in:
parent
8c2d7fcb7f
commit
f53328a8c7
11 changed files with 33 additions and 20 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
AM_CPPFLAGS = -I$(srcdir)/.. -I.. -DYY_NO_INPUT
|
AM_CPPFLAGS = -I$(srcdir)/.. -I.. -DYY_NO_INPUT
|
||||||
# Disable -Werror because too many versions of flex yield warnings.
|
# Disable -Werror because too many versions of flex yield warnings.
|
||||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS:-Werror=)
|
AM_CXXFLAGS = $(WARNING_CXXFLAGS:-Werror=) $(VISIBILITY_CXXFLAGS)
|
||||||
|
|
||||||
eltlparsedir = $(pkgincludedir)/eltlparse
|
eltlparsedir = $(pkgincludedir)/eltlparse
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ namespace spot
|
||||||
/// 0 if the file could not be opened.
|
/// 0 if the file could not be opened.
|
||||||
///
|
///
|
||||||
/// \warning This function is not reentrant.
|
/// \warning This function is not reentrant.
|
||||||
|
SPOT_API
|
||||||
const formula* parse_file(const std::string& filename,
|
const formula* parse_file(const std::string& filename,
|
||||||
parse_error_list& error_list,
|
parse_error_list& error_list,
|
||||||
environment& env =
|
environment& env =
|
||||||
|
|
@ -71,6 +72,7 @@ namespace spot
|
||||||
/// 0 if the input was unparsable.
|
/// 0 if the input was unparsable.
|
||||||
///
|
///
|
||||||
/// \warning This function is not reentrant.
|
/// \warning This function is not reentrant.
|
||||||
|
SPOT_API
|
||||||
const formula* parse_string(const std::string& eltl_string,
|
const formula* parse_string(const std::string& eltl_string,
|
||||||
parse_error_list& error_list,
|
parse_error_list& error_list,
|
||||||
environment& env =
|
environment& env =
|
||||||
|
|
@ -82,6 +84,7 @@ namespace spot
|
||||||
/// \param error_list The error list filled by spot::eltl::parse while
|
/// \param error_list The error list filled by spot::eltl::parse while
|
||||||
/// parsing \a eltl_string.
|
/// parsing \a eltl_string.
|
||||||
/// \return \c true iff any diagnostic was output.
|
/// \return \c true iff any diagnostic was output.
|
||||||
|
SPOT_API
|
||||||
bool
|
bool
|
||||||
format_parse_errors(std::ostream& os,
|
format_parse_errors(std::ostream& os,
|
||||||
parse_error_list& error_list);
|
parse_error_list& error_list);
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
AM_CPPFLAGS = -I$(srcdir)/.. $(BUDDY_CPPFLAGS) -DYY_NO_INPUT
|
AM_CPPFLAGS = -I$(srcdir)/.. $(BUDDY_CPPFLAGS) -DYY_NO_INPUT
|
||||||
# Disable -Werror because too many versions of flex yield warnings.
|
# Disable -Werror because too many versions of flex yield warnings.
|
||||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS:-Werror=)
|
AM_CXXFLAGS = $(WARNING_CXXFLAGS:-Werror=) $(VISIBILITY_CXXFLAGS)
|
||||||
|
|
||||||
kripkeparsedir = $(pkgincludedir)/kripkeparse
|
kripkeparsedir = $(pkgincludedir)/kripkeparse
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ namespace spot
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
kripke_explicit*
|
SPOT_API kripke_explicit*
|
||||||
kripke_parse(const std::string& name,
|
kripke_parse(const std::string& name,
|
||||||
kripke_parse_error_list& error_list,
|
kripke_parse_error_list& error_list,
|
||||||
bdd_dict* dict,
|
bdd_dict* dict,
|
||||||
|
|
@ -53,6 +53,7 @@ namespace spot
|
||||||
/// \param error_list The error list filled by spot::ltl::parse while
|
/// \param error_list The error list filled by spot::ltl::parse while
|
||||||
/// parsing \a ltl_string.
|
/// parsing \a ltl_string.
|
||||||
/// \return \c true if any diagnostic was output.
|
/// \return \c true if any diagnostic was output.
|
||||||
|
SPOT_API
|
||||||
bool format_kripke_parse_errors(std::ostream& os,
|
bool format_kripke_parse_errors(std::ostream& os,
|
||||||
const std::string& filename,
|
const std::string& filename,
|
||||||
kripke_parse_error_list& error_list);
|
kripke_parse_error_list& error_list);
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
AM_CPPFLAGS = -I$(top_srcdir) -I$(srcdir)/.. -I.. -DYY_NO_INPUT
|
AM_CPPFLAGS = -I$(top_srcdir) -I$(srcdir)/.. -I.. -DYY_NO_INPUT
|
||||||
# Disable -Werror because too many versions of flex yield warnings.
|
# Disable -Werror because too many versions of flex yield warnings.
|
||||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS:-Werror=)
|
AM_CXXFLAGS = $(WARNING_CXXFLAGS:-Werror=) $(VISIBILITY_CXXFLAGS)
|
||||||
|
|
||||||
ltlparsedir = $(pkgincludedir)/ltlparse
|
ltlparsedir = $(pkgincludedir)/ltlparse
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
// Copyright (C) 2010, 2012 Laboratoire de Recherche et Développement
|
// -*- coding: utf-8 -*-
|
||||||
// de l'Epita (LRDE).
|
// Copyright (C) 2010, 2012, 2013 Laboratoire de Recherche et
|
||||||
|
// Développement de l'Epita (LRDE).
|
||||||
//
|
//
|
||||||
// This file is part of Spot, a model checking library.
|
// This file is part of Spot, a model checking library.
|
||||||
//
|
//
|
||||||
|
|
@ -29,7 +30,7 @@ namespace spot
|
||||||
|
|
||||||
/// \ingroup ltl_io
|
/// \ingroup ltl_io
|
||||||
/// \brief Read LTL formulae from a file, one by one
|
/// \brief Read LTL formulae from a file, one by one
|
||||||
class ltl_file
|
class SPOT_API ltl_file
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ltl_file(const std::string& filename);
|
ltl_file(const std::string& filename);
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,7 @@ namespace spot
|
||||||
/// was parsed succesfully, check \a error_list for emptiness.
|
/// was parsed succesfully, check \a error_list for emptiness.
|
||||||
///
|
///
|
||||||
/// \warning This function is not reentrant.
|
/// \warning This function is not reentrant.
|
||||||
|
SPOT_API
|
||||||
const formula* parse(const std::string& ltl_string,
|
const formula* parse(const std::string& ltl_string,
|
||||||
parse_error_list& error_list,
|
parse_error_list& error_list,
|
||||||
environment& env = default_environment::instance(),
|
environment& env = default_environment::instance(),
|
||||||
|
|
@ -90,6 +91,7 @@ namespace spot
|
||||||
/// was parsed succesfully, check \a error_list for emptiness.
|
/// was parsed succesfully, check \a error_list for emptiness.
|
||||||
///
|
///
|
||||||
/// \warning This function is not reentrant.
|
/// \warning This function is not reentrant.
|
||||||
|
SPOT_API
|
||||||
const formula* parse_boolean(const std::string& ltl_string,
|
const formula* parse_boolean(const std::string& ltl_string,
|
||||||
parse_error_list& error_list,
|
parse_error_list& error_list,
|
||||||
environment& env =
|
environment& env =
|
||||||
|
|
@ -116,6 +118,7 @@ namespace spot
|
||||||
/// double-quoted atomic propositions that do not start with 'p'.
|
/// double-quoted atomic propositions that do not start with 'p'.
|
||||||
///
|
///
|
||||||
/// \warning This function is not reentrant.
|
/// \warning This function is not reentrant.
|
||||||
|
SPOT_API
|
||||||
const formula* parse_lbt(const std::string& ltl_string,
|
const formula* parse_lbt(const std::string& ltl_string,
|
||||||
parse_error_list& error_list,
|
parse_error_list& error_list,
|
||||||
environment& env = default_environment::instance(),
|
environment& env = default_environment::instance(),
|
||||||
|
|
@ -139,6 +142,7 @@ namespace spot
|
||||||
/// was parsed succesfully, check \a error_list for emptiness.
|
/// was parsed succesfully, check \a error_list for emptiness.
|
||||||
///
|
///
|
||||||
/// \warning This function is not reentrant.
|
/// \warning This function is not reentrant.
|
||||||
|
SPOT_API
|
||||||
const formula* parse_sere(const std::string& sere_string,
|
const formula* parse_sere(const std::string& sere_string,
|
||||||
parse_error_list& error_list,
|
parse_error_list& error_list,
|
||||||
environment& env =
|
environment& env =
|
||||||
|
|
@ -159,6 +163,7 @@ namespace spot
|
||||||
/// \param error_list The error list filled by spot::ltl::parse
|
/// \param error_list The error list filled by spot::ltl::parse
|
||||||
/// or spot::ltl::parse_sere while parsing \a input_string.
|
/// or spot::ltl::parse_sere while parsing \a input_string.
|
||||||
/// \return \c true iff any diagnostic was output.
|
/// \return \c true iff any diagnostic was output.
|
||||||
|
SPOT_API
|
||||||
bool format_parse_errors(std::ostream& os,
|
bool format_parse_errors(std::ostream& os,
|
||||||
const std::string& input_string,
|
const std::string& input_string,
|
||||||
const parse_error_list& error_list);
|
const parse_error_list& error_list);
|
||||||
|
|
@ -186,6 +191,7 @@ namespace spot
|
||||||
/// \param input_string The string that were parsed.
|
/// \param input_string The string that were parsed.
|
||||||
/// \param error_list The error list filled by spot::ltl::parse
|
/// \param error_list The error list filled by spot::ltl::parse
|
||||||
/// or spot::ltl::parse_sere while parsing \a input_string.
|
/// or spot::ltl::parse_sere while parsing \a input_string.
|
||||||
|
SPOT_API
|
||||||
void
|
void
|
||||||
fix_utf8_locations(const std::string& input_string,
|
fix_utf8_locations(const std::string& input_string,
|
||||||
parse_error_list& error_list);
|
parse_error_list& error_list);
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
AM_CPPFLAGS = -I$(srcdir)/.. -I.. $(BUDDY_CPPFLAGS) -DYY_NO_INPUT
|
AM_CPPFLAGS = -I$(srcdir)/.. -I.. $(BUDDY_CPPFLAGS) -DYY_NO_INPUT
|
||||||
# Disable -Werror because too many versions of flex yield warnings.
|
# Disable -Werror because too many versions of flex yield warnings.
|
||||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS:-Werror=)
|
AM_CXXFLAGS = $(WARNING_CXXFLAGS:-Werror=) $(VISIBILITY_CXXFLAGS)
|
||||||
|
|
||||||
neverparsedir = $(pkgincludedir)/neverparse
|
neverparsedir = $(pkgincludedir)/neverparse
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,13 +55,12 @@ namespace spot
|
||||||
/// was parsed succesfully, check \a error_list for emptiness.
|
/// was parsed succesfully, check \a error_list for emptiness.
|
||||||
///
|
///
|
||||||
/// \warning This function is not reentrant.
|
/// \warning This function is not reentrant.
|
||||||
tgba_explicit_string* neverclaim_parse(
|
SPOT_API tgba_explicit_string*
|
||||||
const std::string& filename,
|
neverclaim_parse(const std::string& filename,
|
||||||
neverclaim_parse_error_list&
|
neverclaim_parse_error_list&
|
||||||
error_list,
|
error_list,
|
||||||
bdd_dict* dict,
|
bdd_dict* dict,
|
||||||
ltl::environment& env
|
ltl::environment& env = ltl::default_environment::instance(),
|
||||||
= ltl::default_environment::instance(),
|
|
||||||
bool debug = false);
|
bool debug = false);
|
||||||
|
|
||||||
/// \brief Format diagnostics produced by spot::neverclaim_parse.
|
/// \brief Format diagnostics produced by spot::neverclaim_parse.
|
||||||
|
|
@ -70,7 +69,8 @@ namespace spot
|
||||||
/// \param error_list The error list filled by spot::ltl::parse while
|
/// \param error_list The error list filled by spot::ltl::parse while
|
||||||
/// parsing \a ltl_string.
|
/// parsing \a ltl_string.
|
||||||
/// \return \c true iff any diagnostic was output.
|
/// \return \c true iff any diagnostic was output.
|
||||||
bool format_neverclaim_parse_errors(std::ostream& os,
|
SPOT_API bool
|
||||||
|
format_neverclaim_parse_errors(std::ostream& os,
|
||||||
const std::string& filename,
|
const std::string& filename,
|
||||||
neverclaim_parse_error_list& error_list);
|
neverclaim_parse_error_list& error_list);
|
||||||
/// @}
|
/// @}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
AM_CPPFLAGS = -I$(srcdir)/.. -I.. $(BUDDY_CPPFLAGS) -DYY_NO_INPUT
|
AM_CPPFLAGS = -I$(srcdir)/.. -I.. $(BUDDY_CPPFLAGS) -DYY_NO_INPUT
|
||||||
# Disable -Werror because too many versions of flex yield warnings.
|
# Disable -Werror because too many versions of flex yield warnings.
|
||||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS:-Werror=)
|
AM_CXXFLAGS = $(WARNING_CXXFLAGS:-Werror=) $(VISIBILITY_CXXFLAGS)
|
||||||
|
|
||||||
tgbaparsedir = $(pkgincludedir)/tgbaparse
|
tgbaparsedir = $(pkgincludedir)/tgbaparse
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ namespace spot
|
||||||
/// was parsed succesfully, check \a error_list for emptiness.
|
/// was parsed succesfully, check \a error_list for emptiness.
|
||||||
///
|
///
|
||||||
/// \warning This function is not reentrant.
|
/// \warning This function is not reentrant.
|
||||||
|
SPOT_API
|
||||||
tgba_explicit_string* tgba_parse(const std::string& filename,
|
tgba_explicit_string* tgba_parse(const std::string& filename,
|
||||||
tgba_parse_error_list& error_list,
|
tgba_parse_error_list& error_list,
|
||||||
bdd_dict* dict,
|
bdd_dict* dict,
|
||||||
|
|
@ -80,6 +81,7 @@ namespace spot
|
||||||
/// \param error_list The error list filled by spot::ltl::parse while
|
/// \param error_list The error list filled by spot::ltl::parse while
|
||||||
/// parsing \a ltl_string.
|
/// parsing \a ltl_string.
|
||||||
/// \return \c true iff any diagnostic was output.
|
/// \return \c true iff any diagnostic was output.
|
||||||
|
SPOT_API
|
||||||
bool format_tgba_parse_errors(std::ostream& os,
|
bool format_tgba_parse_errors(std::ostream& os,
|
||||||
const std::string& filename,
|
const std::string& filename,
|
||||||
tgba_parse_error_list& error_list);
|
tgba_parse_error_list& error_list);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue