Commit dab51a9d authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

Use -fvisibility=hidden in src/kripke/, src/saba/, and src/sabaalgos/

* src/kripke/Makefile.am, src/saba/Makefile.am,
src/sabaalgos/Makefile.am: Use $(VISIBILITY_CXXFLAGS).
* src/kripke/fairkripke.hh, src/kripke/kripke.hh,
src/kripke/kripkeexplicit.hh, src/kripke/kripkeprint.hh,
src/saba/explicitstateconjunction.hh, src/saba/saba.hh,
src/saba/sabacomplementtgba.hh, src/saba/sabastate.hh,
src/saba/sabasucciter.hh, src/sabaalgos/sabadotty.hh,
src/sabaalgos/sabareachiter.hh: Mark exported symbols
with SPOT_API.
parent a12922b3
## Copyright (C) 2009, 2011 Laboratoire de Recherche et Developpement
## de l'Epita (LRDE).
## -*- coding: utf-8 -*-
## Copyright (C) 2009, 2011, 2013 Laboratoire de Recherche et
## Developpement de l'Epita (LRDE).
##
## This file is part of Spot, a model checking library.
##
......@@ -17,7 +18,7 @@
## along with this program. If not, see <http://www.gnu.org/licenses/>.
AM_CPPFLAGS = -I$(srcdir)/.. -I.. $(BUDDY_CPPFLAGS)
AM_CXXFLAGS = $(WARNING_CXXFLAGS)
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(VISIBILITY_CXXFLAGS)
kripkedir = $(pkgincludedir)/kripke
......
// Copyright (C) 2009, 2010 Laboratoire de Recherche et Developpement de l'Epita
// -*- coding: utf-8 -*-
// Copyright (C) 2009, 2010, 2013 Laboratoire de Recherche et
// Developpement de l'Epita
//
// This file is part of Spot, a model checking library.
//
......@@ -44,7 +46,7 @@ namespace spot
///
/// This class implements fair_kripke_succ_iterator::current_condition(),
/// and fair_kripke_succ_iterator::current_acceptance_conditions().
class fair_kripke_succ_iterator : public tgba_succ_iterator
class SPOT_API fair_kripke_succ_iterator : public tgba_succ_iterator
{
public:
/// \brief Constructor
......@@ -86,7 +88,7 @@ namespace spot
/// class and need not be defined.
///
/// See also spot::fair_kripke_succ_iterator.
class fair_kripke : public tgba
class SPOT_API fair_kripke : public tgba
{
public:
/// \brief The condition that label the state \a s.
......
// Copyright (C) 2009, 2010 Laboratoire de Recherche et Developpement de l'Epita
// -*- coding: utf-8 -*-
// Copyright (C) 2009, 2010, 2013 Laboratoire de Recherche et
// Developpement de l'Epita
//
// This file is part of Spot, a model checking library.
//
......@@ -39,7 +41,7 @@ namespace spot
///
/// This class implements kripke_succ_iterator::current_condition(),
/// and kripke_succ_iterator::current_acceptance_conditions().
class kripke_succ_iterator : public tgba_succ_iterator
class SPOT_API kripke_succ_iterator : public tgba_succ_iterator
{
public:
/// \brief Constructor
......@@ -78,7 +80,7 @@ namespace spot
/// need not be defined.
///
/// See also spot::kripke_succ_iterator.
class kripke: public fair_kripke
class SPOT_API kripke: public fair_kripke
{
public:
virtual ~kripke();
......
// -*- coding: utf-8 -*-
// Copyright (C) 2011, 2012 Laboratoire de Recherche et Développement
// de l'Epita (LRDE)
// Copyright (C) 2011, 2012, 2013 Laboratoire de Recherche et
// Développement de l'Epita (LRDE)
//
// This file is part of Spot, a model checking library.
//
......@@ -29,7 +29,7 @@
namespace spot
{
/// \brief Concrete class for kripke states.
class state_kripke : public state
class SPOT_API state_kripke : public state
{
friend class kripke_explicit;
friend class kripke_explicit_succ_iterator;
......@@ -90,7 +90,7 @@ namespace spot
/// \class kripke_explicit_succ_iterator
/// \brief Implement iterator pattern on successor of a state_kripke.
class kripke_explicit_succ_iterator : public kripke_succ_iterator
class SPOT_API kripke_explicit_succ_iterator : public kripke_succ_iterator
{
public:
kripke_explicit_succ_iterator(const state_kripke*, bdd);
......@@ -111,7 +111,7 @@ namespace spot
/// \class kripke_explicit
/// \brief Kripke Structure.
class kripke_explicit : public kripke
class SPOT_API kripke_explicit : public kripke
{
public:
kripke_explicit(bdd_dict*);
......@@ -183,4 +183,4 @@ namespace spot
std::map<const state_kripke*, std::string> sn_nodes_;
};
}
#endif /* !SPOT_KRIPKEEXPLICIT_HH_ */
#endif // SPOT_KRIPKE_KRIPKEEXPLICIT_HH
// Copyright (C) 2011 Laboratoire de Recherche et Developpement
// -*- coding: utf-8 -*-
// Copyright (C) 2011, 2013 Laboratoire de Recherche et Developpement
// de l'Epita (LRDE)
//
// This file is part of Spot, a model checking library.
......@@ -20,7 +21,9 @@
#ifndef SPOT_KRIPKE_KRIPKEPRINT_HH
# define SPOT_KRIPKE_KRIPKEPRINT_HH
# include "misc/common.hh"
# include <iosfwd>
namespace spot
{
......@@ -35,7 +38,8 @@ namespace spot
/// function only for debugging. Use
/// kripke_save_reachable_renumbered() for large output.
///
std::ostream& kripke_save_reachable(std::ostream& os, const kripke* k);
SPOT_API std::ostream&
kripke_save_reachable(std::ostream& os, const kripke* k);
/// \ingroup tgba_io
/// \brief Save the reachable part of Kripke structure in text format.
......@@ -45,9 +49,9 @@ namespace spot
/// state names. The drawback is that any information carried by
/// the state name is lost.
///
std::ostream& kripke_save_reachable_renumbered(std::ostream& os,
const kripke* k);
SPOT_API std::ostream&
kripke_save_reachable_renumbered(std::ostream& os, const kripke* k);
} // End namespace spot
#endif /* !KRIPKEPRINT_HH_ */
#endif // SPOT_KRIPKE_KRIPKEPRINT_HH
## Copyright (C) 2009, 2011 Laboratoire de Recherche et Développement
## -*- coding: utf-8 -*-
## Copyright (C) 2009, 2011, 2013 Laboratoire de Recherche et Développement
## de l'Epita (LRDE).
##
## This file is part of Spot, a model checking library.
......@@ -17,7 +18,7 @@
## along with this program. If not, see <http://www.gnu.org/licenses/>.
AM_CPPFLAGS = -I$(srcdir)/.. -I.. $(BUDDY_CPPFLAGS)
AM_CXXFLAGS = $(WARNING_CXXFLAGS)
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(VISIBILITY_CXXFLAGS)
sabadir = $(pkgincludedir)/saba
......
// -*- coding: utf-8 -*-
// Copyright (C) 2009, 2012 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
// Copyright (C) 2009, 2012, 2013 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
......@@ -20,7 +20,8 @@
#ifndef SPOT_SABA_EXPLICITSTATECONJUNCTION_HH
# define SPOT_SABA_EXPLICITSTATECONJUNCTION_HH
#include <misc/hash.hh>
#include "misc/common.hh"
#include "misc/hash.hh"
#include "sabasucciter.hh"
namespace spot
......@@ -30,7 +31,7 @@ namespace spot
///
/// This class provides a basic implementation to
/// iterate over a conjunction of states of a saba.
class explicit_state_conjunction : public saba_state_conjunction
class SPOT_API explicit_state_conjunction : public saba_state_conjunction
{
public:
......
// Copyright (C) 2009, 2010 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
// -*- coding: utf-8 -*-
// Copyright (C) 2009, 2010, 2013 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
......@@ -25,7 +26,7 @@
namespace spot
{
/// \defgroup saba SABA (State-based Alternating Büchi Automata)
/// \defgroup saba SABA (State-based Alternating Büchi Automata)
///
/// Spot was centered around non-deterministic \ref tgba.
/// Alternating automata are an extension to non-deterministic
......@@ -37,7 +38,7 @@ namespace spot
/// \ingroup saba
/// \ingroup saba_essentials
/// \brief A State-based Alternating (Generalized) Büchi Automaton.
/// \brief A State-based Alternating (Generalized) Büchi Automaton.
///
/// Browsing such automaton can be achieved using two functions:
/// \c get_init_state, and \c succ_iter. The former returns
......@@ -48,7 +49,7 @@ namespace spot
/// we never represent transitions! Transition informations are
/// obtained by querying the iterator over the successors of
/// a state.
class saba
class SPOT_API saba
{
protected:
saba();
......
// Copyright (C) 2009, 2010 Laboratoire de Recherche et Développement
// Copyright (C) 2009, 2010, 2013 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
......@@ -51,7 +51,7 @@ namespace spot
/// The construction is done on-the-fly, by the
/// \c saba_complement_succ_iterator class.
/// \see saba_complement_succ_iterator
class saba_complement_tgba : public saba
class SPOT_API saba_complement_tgba : public saba
{
public:
saba_complement_tgba(const tgba* a);
......
// Copyright (C) 2009 Laboratoire de Recherche et Développement
// -*- coding: utf-8 -*-
// Copyright (C) 2009, 2013 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
......@@ -19,6 +20,7 @@
#ifndef SPOT_SABA_SABASTATE_HH
# define SPOT_SABA_SABASTATE_HH
#include "misc/common.hh"
#include <bdd.h>
#include <functional>
#include <boost/shared_ptr.hpp>
......@@ -28,7 +30,7 @@ namespace spot
/// \ingroup saba_essentials
/// \brief Abstract class for saba states.
class saba_state
class SPOT_API saba_state
{
public:
/// \brief Compares two states (that come from the same automaton).
......
// Copyright (C) 2009 Laboratoire de Recherche et Développement
// -*- coding: utf-8 -*-
// Copyright (C) 2009, 2013 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
......@@ -28,7 +29,7 @@ namespace spot
///
/// This class provides the basic functionalities required to
/// iterate over a conjunction of states of a saba.
class saba_state_conjunction
class SPOT_API saba_state_conjunction
{
public:
virtual
......@@ -95,7 +96,7 @@ namespace spot
/// transitions of an alternating automaton are defined as a
/// boolean function with conjunctions (universal) and
/// disjunctions (non-deterministic),
class saba_succ_iterator
class SPOT_API saba_succ_iterator
{
public:
virtual
......
## Copyright (C) 2009, 2011 Laboratoire de Recherche et Développement
## de l'Epita (LRDE).
## -*- coding: utf-8 -*-
## Copyright (C) 2009, 2011, 2013 Laboratoire de Recherche et
## Développement de l'Epita (LRDE).
##
## This file is part of Spot, a model checking library.
##
......@@ -17,7 +18,7 @@
## along with this program. If not, see <http://www.gnu.org/licenses/>.
AM_CPPFLAGS = -I$(srcdir)/.. -I.. $(BUDDY_CPPFLAGS)
AM_CXXFLAGS = $(WARNING_CXXFLAGS)
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(VISIBILITY_CXXFLAGS)
sabaalgosdir = $(pkgincludedir)/sabaalgos
......
// Copyright (C) 2009 Laboratoire de Recherche et Développement
// -*- coding: utf-8 -*-
// Copyright (C) 2009, 2013 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
......@@ -19,6 +20,7 @@
#ifndef SPOT_SABAALGOS_SABADOTTY_HH
# define SPOT_SABAALGOS_SABADOTTY_HH
#include "misc/common.hh"
#include <iosfwd>
namespace spot
......@@ -27,7 +29,7 @@ namespace spot
/// \ingroup saba_io
/// \brief Print reachable states in dot format.
std::ostream&
SPOT_API std::ostream&
saba_dotty_reachable(std::ostream& os,
const saba* g);
}
......
// Copyright (C) 2009, 2010 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
// -*- coding: utf-8 -*-
// Copyright (C) 2009, 2010, 2013 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
......@@ -28,7 +29,7 @@ namespace spot
{
/// \ingroup saba_generic
/// \brief Iterate over all reachable states of a spot::saba.
class saba_reachable_iterator
class SPOT_API saba_reachable_iterator
{
public:
saba_reachable_iterator(const saba* a);
......@@ -115,7 +116,8 @@ namespace spot
/// \ingroup saba_generic
/// \brief An implementation of spot::saba_reachable_iterator that browses
/// states depth first.
class saba_reachable_iterator_depth_first : public saba_reachable_iterator
class SPOT_API saba_reachable_iterator_depth_first:
public saba_reachable_iterator
{
public:
saba_reachable_iterator_depth_first(const saba* a);
......@@ -130,7 +132,8 @@ namespace spot
/// \ingroup saba_generic
/// \brief An implementation of spot::saba_reachable_iterator that browses
/// states breadth first.
class saba_reachable_iterator_breadth_first : public saba_reachable_iterator
class SPOT_API saba_reachable_iterator_breadth_first:
public saba_reachable_iterator
{
public:
saba_reachable_iterator_breadth_first(const saba* a);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment