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

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.
parent 8c2d7fcb
......@@ -19,7 +19,7 @@
AM_CPPFLAGS = -I$(srcdir)/.. -I.. -DYY_NO_INPUT
# 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
......
......@@ -55,6 +55,7 @@ namespace spot
/// 0 if the file could not be opened.
///
/// \warning This function is not reentrant.
SPOT_API
const formula* parse_file(const std::string& filename,
parse_error_list& error_list,
environment& env =
......@@ -71,6 +72,7 @@ namespace spot
/// 0 if the input was unparsable.
///
/// \warning This function is not reentrant.
SPOT_API
const formula* parse_string(const std::string& eltl_string,
parse_error_list& error_list,
environment& env =
......@@ -82,6 +84,7 @@ namespace spot
/// \param error_list The error list filled by spot::eltl::parse while
/// parsing \a eltl_string.
/// \return \c true iff any diagnostic was output.
SPOT_API
bool
format_parse_errors(std::ostream& os,
parse_error_list& error_list);
......
......@@ -18,7 +18,7 @@
AM_CPPFLAGS = -I$(srcdir)/.. $(BUDDY_CPPFLAGS) -DYY_NO_INPUT
# 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
......
......@@ -38,7 +38,7 @@ namespace spot
kripke_explicit*
SPOT_API kripke_explicit*
kripke_parse(const std::string& name,
kripke_parse_error_list& error_list,
bdd_dict* dict,
......@@ -53,6 +53,7 @@ namespace spot
/// \param error_list The error list filled by spot::ltl::parse while
/// parsing \a ltl_string.
/// \return \c true if any diagnostic was output.
SPOT_API
bool format_kripke_parse_errors(std::ostream& os,
const std::string& filename,
kripke_parse_error_list& error_list);
......
......@@ -21,7 +21,7 @@
AM_CPPFLAGS = -I$(top_srcdir) -I$(srcdir)/.. -I.. -DYY_NO_INPUT
# 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
......
// Copyright (C) 2010, 2012 Laboratoire de Recherche et Dveloppement
// de l'Epita (LRDE).
// -*- coding: utf-8 -*-
// 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.
//
......@@ -29,7 +30,7 @@ namespace spot
/// \ingroup ltl_io
/// \brief Read LTL formulae from a file, one by one
class ltl_file
class SPOT_API ltl_file
{
public:
ltl_file(const std::string& filename);
......
......@@ -66,6 +66,7 @@ namespace spot
/// was parsed succesfully, check \a error_list for emptiness.
///
/// \warning This function is not reentrant.
SPOT_API
const formula* parse(const std::string& ltl_string,
parse_error_list& error_list,
environment& env = default_environment::instance(),
......@@ -90,6 +91,7 @@ namespace spot
/// was parsed succesfully, check \a error_list for emptiness.
///
/// \warning This function is not reentrant.
SPOT_API
const formula* parse_boolean(const std::string& ltl_string,
parse_error_list& error_list,
environment& env =
......@@ -116,6 +118,7 @@ namespace spot
/// double-quoted atomic propositions that do not start with 'p'.
///
/// \warning This function is not reentrant.
SPOT_API
const formula* parse_lbt(const std::string& ltl_string,
parse_error_list& error_list,
environment& env = default_environment::instance(),
......@@ -139,6 +142,7 @@ namespace spot
/// was parsed succesfully, check \a error_list for emptiness.
///
/// \warning This function is not reentrant.
SPOT_API
const formula* parse_sere(const std::string& sere_string,
parse_error_list& error_list,
environment& env =
......@@ -159,6 +163,7 @@ namespace spot
/// \param error_list The error list filled by spot::ltl::parse
/// or spot::ltl::parse_sere while parsing \a input_string.
/// \return \c true iff any diagnostic was output.
SPOT_API
bool format_parse_errors(std::ostream& os,
const std::string& input_string,
const parse_error_list& error_list);
......@@ -186,6 +191,7 @@ namespace spot
/// \param input_string The string that were parsed.
/// \param error_list The error list filled by spot::ltl::parse
/// or spot::ltl::parse_sere while parsing \a input_string.
SPOT_API
void
fix_utf8_locations(const std::string& input_string,
parse_error_list& error_list);
......
......@@ -19,7 +19,7 @@
AM_CPPFLAGS = -I$(srcdir)/.. -I.. $(BUDDY_CPPFLAGS) -DYY_NO_INPUT
# 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
......
......@@ -55,14 +55,13 @@ namespace spot
/// was parsed succesfully, check \a error_list for emptiness.
///
/// \warning This function is not reentrant.
tgba_explicit_string* neverclaim_parse(
const std::string& filename,
neverclaim_parse_error_list&
error_list,
bdd_dict* dict,
ltl::environment& env
= ltl::default_environment::instance(),
bool debug = false);
SPOT_API tgba_explicit_string*
neverclaim_parse(const std::string& filename,
neverclaim_parse_error_list&
error_list,
bdd_dict* dict,
ltl::environment& env = ltl::default_environment::instance(),
bool debug = false);
/// \brief Format diagnostics produced by spot::neverclaim_parse.
/// \param os Where diagnostics should be output.
......@@ -70,9 +69,10 @@ namespace spot
/// \param error_list The error list filled by spot::ltl::parse while
/// parsing \a ltl_string.
/// \return \c true iff any diagnostic was output.
bool format_neverclaim_parse_errors(std::ostream& os,
const std::string& filename,
neverclaim_parse_error_list& error_list);
SPOT_API bool
format_neverclaim_parse_errors(std::ostream& os,
const std::string& filename,
neverclaim_parse_error_list& error_list);
/// @}
}
......
......@@ -22,7 +22,7 @@
AM_CPPFLAGS = -I$(srcdir)/.. -I.. $(BUDDY_CPPFLAGS) -DYY_NO_INPUT
# 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
......
......@@ -65,6 +65,7 @@ namespace spot
/// was parsed succesfully, check \a error_list for emptiness.
///
/// \warning This function is not reentrant.
SPOT_API
tgba_explicit_string* tgba_parse(const std::string& filename,
tgba_parse_error_list& error_list,
bdd_dict* dict,
......@@ -80,6 +81,7 @@ namespace spot
/// \param error_list The error list filled by spot::ltl::parse while
/// parsing \a ltl_string.
/// \return \c true iff any diagnostic was output.
SPOT_API
bool format_tgba_parse_errors(std::ostream& os,
const std::string& filename,
tgba_parse_error_list& error_list);
......
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