Replace guards by pragma once.

* iface/ltsmin/ltsmin.hh, src/bin/common_aoutput.hh,
src/bin/common_conv.hh, src/bin/common_cout.hh,
src/bin/common_file.hh, src/bin/common_finput.hh,
src/bin/common_output.hh, src/bin/common_post.hh,
src/bin/common_r.hh, src/bin/common_range.hh,
src/bin/common_setup.hh, src/bin/common_sys.hh,
src/bin/common_trans.hh, src/dstarparse/parsedecl.hh,
src/dstarparse/public.hh, src/graph/graph.hh,
src/graph/ngraph.hh, src/hoaparse/parsedecl.hh,
src/hoaparse/public.hh, src/kripke/fairkripke.hh,
src/kripke/fwd.hh, src/kripke/kripke.hh,
src/kripke/kripkeexplicit.hh, src/kripke/kripkeprint.hh,
src/kripkeparse/parsedecl.hh, src/kripkeparse/public.hh,
src/ltlast/allnodes.hh, src/ltlast/atomic_prop.hh,
src/ltlast/binop.hh, src/ltlast/bunop.hh,
src/ltlast/constant.hh, src/ltlast/formula.hh,
src/ltlast/multop.hh, src/ltlast/predecl.hh,
src/ltlast/unop.hh, src/ltlast/visitor.hh,
src/ltlenv/declenv.hh, src/ltlenv/defaultenv.hh,
src/ltlenv/environment.hh, src/ltlparse/parsedecl.hh,
src/ltlparse/public.hh, src/ltlvisit/apcollect.hh,
src/ltlvisit/clone.hh, src/ltlvisit/contain.hh,
src/ltlvisit/dotty.hh, src/ltlvisit/dump.hh,
src/ltlvisit/lbt.hh, src/ltlvisit/length.hh,
src/ltlvisit/lunabbrev.hh, src/ltlvisit/mark.hh,
src/ltlvisit/mutation.hh, src/ltlvisit/nenoform.hh,
src/ltlvisit/postfix.hh, src/ltlvisit/randomltl.hh,
src/ltlvisit/relabel.hh, src/ltlvisit/remove_x.hh,
src/ltlvisit/simpfg.hh, src/ltlvisit/simplify.hh,
src/ltlvisit/snf.hh, src/ltlvisit/tostring.hh,
src/ltlvisit/tunabbrev.hh, src/ltlvisit/wmunabbrev.hh,
src/misc/bareword.hh, src/misc/bddlt.hh, src/misc/bitvect.hh,
src/misc/casts.hh, src/misc/common.hh, src/misc/escape.hh,
src/misc/fixpool.hh, src/misc/formater.hh, src/misc/hash.hh,
src/misc/hashfunc.hh, src/misc/intvcmp2.hh,
src/misc/intvcomp.hh, src/misc/location.hh, src/misc/ltstr.hh,
src/misc/memusage.hh, src/misc/minato.hh, src/misc/mspool.hh,
src/misc/optionmap.hh, src/misc/position.hh, src/misc/random.hh,
src/misc/satsolver.hh, src/misc/timer.hh, src/misc/tmpfile.hh,
src/misc/version.hh, src/priv/accmap.hh, src/priv/bddalloc.hh,
src/priv/freelist.hh, src/ta/ta.hh, src/ta/taexplicit.hh,
src/ta/taproduct.hh, src/ta/tgta.hh, src/ta/tgtaexplicit.hh,
src/ta/tgtaproduct.hh, src/taalgos/dotty.hh,
src/taalgos/emptinessta.hh, src/taalgos/minimize.hh,
src/taalgos/reachiter.hh, src/taalgos/statessetbuilder.hh,
src/taalgos/stats.hh, src/taalgos/tgba2ta.hh,
src/tgba/acc.hh, src/tgba/bdddict.hh,
src/tgba/bddprint.hh, src/tgba/formula2bdd.hh, src/tgba/fwd.hh,
src/tgba/taatgba.hh, src/tgba/tgba.hh, src/tgba/tgbagraph.hh,
src/tgba/tgbamask.hh, src/tgba/tgbaproduct.hh, src/tgba/tgbaproxy.hh,
src/tgba/tgbasafracomplement.hh, src/tgbaalgos/are_isomorphic.hh,
src/tgbaalgos/bfssteps.hh, src/tgbaalgos/canonicalize.hh,
src/tgbaalgos/cleanacc.hh, src/tgbaalgos/complete.hh,
src/tgbaalgos/compsusp.hh, src/tgbaalgos/cycles.hh,
src/tgbaalgos/degen.hh, src/tgbaalgos/dotty.hh,
src/tgbaalgos/dtbasat.hh, src/tgbaalgos/dtgbacomp.hh,
src/tgbaalgos/dtgbasat.hh, src/tgbaalgos/dupexp.hh,
src/tgbaalgos/emptiness.hh, src/tgbaalgos/emptiness_stats.hh,
src/tgbaalgos/gtec/ce.hh, src/tgbaalgos/gtec/gtec.hh,
src/tgbaalgos/gtec/sccstack.hh, src/tgbaalgos/gtec/status.hh,
src/tgbaalgos/gv04.hh, src/tgbaalgos/hoa.hh, src/tgbaalgos/isdet.hh,
src/tgbaalgos/isweakscc.hh, src/tgbaalgos/lbtt.hh,
src/tgbaalgos/ltl2taa.hh, src/tgbaalgos/ltl2tgba_fm.hh,
src/tgbaalgos/magic.hh, src/tgbaalgos/mask.hh,
src/tgbaalgos/minimize.hh, src/tgbaalgos/neverclaim.hh,
src/tgbaalgos/postproc.hh, src/tgbaalgos/powerset.hh,
src/tgbaalgos/product.hh, src/tgbaalgos/projrun.hh,
src/tgbaalgos/randomgraph.hh, src/tgbaalgos/randomize.hh,
src/tgbaalgos/reachiter.hh, src/tgbaalgos/reducerun.hh,
src/tgbaalgos/relabel.hh, src/tgbaalgos/remfin.hh,
src/tgbaalgos/replayrun.hh, src/tgbaalgos/safety.hh,
src/tgbaalgos/sbacc.hh, src/tgbaalgos/scc.hh,
src/tgbaalgos/sccfilter.hh, src/tgbaalgos/sccinfo.hh,
src/tgbaalgos/se05.hh, src/tgbaalgos/simulation.hh,
src/tgbaalgos/stats.hh, src/tgbaalgos/stripacc.hh,
src/tgbaalgos/stutter.hh, src/tgbaalgos/tau03.hh,
src/tgbaalgos/tau03opt.hh, src/tgbaalgos/translate.hh,
src/tgbaalgos/weight.hh, src/tgbaalgos/word.hh,
src/sanity/includes.test, src/tgbaalgos/ndfs_result.hxx: here.
This commit is contained in:
Etienne Renault 2015-03-20 15:15:37 +01:00
parent b8bc619ddf
commit 57cd9f2d2c
172 changed files with 352 additions and 946 deletions

View file

@ -17,14 +17,12 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_IFACE_LTSMIN_LTSMIN_HH #pragma once
# define SPOT_IFACE_LTSMIN_LTSMIN_HH
#include "kripke/kripke.hh" #include "kripke/kripke.hh"
#include "ltlvisit/apcollect.hh" #include "ltlvisit/apcollect.hh"
#include "ltlast/constant.hh" #include "ltlast/constant.hh"
namespace spot namespace spot
{ {
@ -64,5 +62,3 @@ namespace spot
const ltl::formula* dead = ltl::constant::true_instance(), const ltl::formula* dead = ltl::constant::true_instance(),
int compress = 0, bool verbose = true); int compress = 0, bool verbose = true);
} }
#endif // SPOT_IFACE_LTSMIN_LTSMIN_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_BIN_COMMON_AOUTPUT_HH #pragma once
#define SPOT_BIN_COMMON_AOUTPUT_HH
#include "common_sys.hh" #include "common_sys.hh"
@ -237,7 +236,3 @@ public:
void add_stat(char c, const spot::printable* p); void add_stat(char c, const spot::printable* p);
}; };
#endif // SPOT_BIN_COMMON_AOUTPUT_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_BIN_COMMON_CONV_HH #pragma once
#define SPOT_BIN_COMMON_CONV_HH
#include "common_sys.hh" #include "common_sys.hh"
#include "tgba/tgbagraph.hh" #include "tgba/tgbagraph.hh"
@ -34,6 +33,3 @@ std::vector<long> to_longs(const char* s);
spot::tgba_digraph_ptr spot::tgba_digraph_ptr
read_automaton(const char* filename, spot::bdd_dict_ptr& dict); read_automaton(const char* filename, spot::bdd_dict_ptr& dict);
#endif // SPOT_BIN_COMMON_CONV_HH

View file

@ -17,10 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_BIN_COMMON_COUT_HH #pragma once
#define SPOT_BIN_COMMON_COUT_HH
void check_cout(); void check_cout();
void flush_cout(); void flush_cout();
#endif // SPOT_BIN_COMMON_COUT_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_BIN_COMMON_FILE_HH #pragma once
#define SPOT_BIN_COMMON_FILE_HH
#include "common_sys.hh" #include "common_sys.hh"
#include <iosfwd> #include <iosfwd>
@ -50,5 +49,3 @@ public:
return *os_; return *os_;
} }
}; };
#endif // SPOT_BIN_COMMON_FILE_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_BIN_COMMON_FINPUT_HH #pragma once
#define SPOT_BIN_COMMON_FINPUT_HH
#include "common_sys.hh" #include "common_sys.hh"
@ -79,7 +78,3 @@ public:
char* prefix; char* prefix;
char* suffix; char* suffix;
}; };
#endif // SPOT_BIN_COMMON_FINPUT_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_BIN_COMMON_OUTPUT_HH #pragma once
#define SPOT_BIN_COMMON_OUTPUT_HH
#include "common_sys.hh" #include "common_sys.hh"
@ -83,5 +82,3 @@ public:
printable_formula formula_; printable_formula formula_;
}; };
#endif // SPOT_BIN_COMMON_OUTPUT_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_BIN_COMMON_POST_HH #pragma once
#define SPOT_BIN_COMMON_POST_HH
#include "common_sys.hh" #include "common_sys.hh"
#include "tgbaalgos/postproc.hh" #include "tgbaalgos/postproc.hh"
@ -31,7 +30,3 @@ extern spot::postprocessor::output_type type;
extern spot::postprocessor::output_pref pref; extern spot::postprocessor::output_pref pref;
extern spot::postprocessor::output_pref comp; extern spot::postprocessor::output_pref comp;
extern spot::postprocessor::optimization_level level; extern spot::postprocessor::optimization_level level;
#endif // SPOT_BIN_COMMON_FINPUT_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_BIN_COMMON_R_HH #pragma once
#define SPOT_BIN_COMMON_R_HH
#include "common_sys.hh" #include "common_sys.hh"
#include "ltlvisit/simplify.hh" #include "ltlvisit/simplify.hh"
@ -45,5 +44,3 @@ extern int simplification_level;
void parse_r(const char* arg); void parse_r(const char* arg);
spot::ltl::ltl_simplifier_options simplifier_options(); spot::ltl::ltl_simplifier_options simplifier_options();
#endif // SPOT_BIN_COMMON_RANGE_HH

View file

@ -17,9 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_BIN_COMMON_RANGE_HH #pragma once
#define SPOT_BIN_COMMON_RANGE_HH
#define RANGE_DOC \ #define RANGE_DOC \
{ 0, 0, 0, 0, "RANGE may have one of the following forms: 'INT', " \ { 0, 0, 0, 0, "RANGE may have one of the following forms: 'INT', " \
@ -48,5 +46,3 @@ struct range
// is disallowed. // is disallowed.
range parse_range(const char* str, range parse_range(const char* str,
int missing_left = 1, int missing_right = 0); int missing_left = 1, int missing_right = 0);
#endif // SPOT_BIN_COMMON_RANGE_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_BIN_COMMON_SETUP_HH #pragma once
#define SPOT_BIN_COMMON_SETUP_HH
#include "common_sys.hh" #include "common_sys.hh"
#include "progname.h" #include "progname.h"
@ -27,5 +26,3 @@ void setup(char** progname);
extern const struct argp misc_argp; extern const struct argp misc_argp;
extern const struct argp misc_argp_hidden; extern const struct argp misc_argp_hidden;
#endif // SPOT_BIN_COMMON_SETUP_HH

View file

@ -17,11 +17,8 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_BIN_COMMON_SYS_HH #pragma once
#define SPOT_BIN_COMMON_SYS_HH
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#endif // SPOT_BIN_COMMON_SYS_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_BIN_COMMON_TRANS_HH #pragma once
#define SPOT_BIN_COMMON_TRANS_HH
#include "common_sys.hh" #include "common_sys.hh"
#include <vector> #include <vector>
@ -118,6 +117,3 @@ int exec_with_timeout(const char* cmd);
#define exec_with_timeout(cmd) system(cmd) #define exec_with_timeout(cmd) system(cmd)
#define setup_sig_handler() while (0); #define setup_sig_handler() while (0);
#endif // !ENABLE_TIMEOUT #endif // !ENABLE_TIMEOUT
#endif // SPOT_BIN_COMMON_TRANS_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_DSTARPARSE_PARSEDECL_HH #pragma once
# define SPOT_DSTARPARSE_PARSEDECL_HH
#include <string> #include <string>
#include "dstarparse.hh" #include "dstarparse.hh"
@ -35,5 +34,3 @@ namespace spot
int dstaryyopen(const std::string& name); int dstaryyopen(const std::string& name);
void dstaryyclose(); void dstaryyclose();
} }
#endif // SPOT_DSTARPARSE_PARSEDECL_HH

View file

@ -17,17 +17,16 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_DSTARPARSE_PUBLIC_HH #pragma once
# define SPOT_DSTARPARSE_PUBLIC_HH
# include "tgba/tgbagraph.hh" #include "tgba/tgbagraph.hh"
# include "misc/location.hh" #include "misc/location.hh"
# include "ltlenv/defaultenv.hh" #include "ltlenv/defaultenv.hh"
# include <string> #include <string>
# include <list> #include <list>
# include <utility> #include <utility>
# include <iosfwd> #include <iosfwd>
# include <misc/bitvect.hh> #include <misc/bitvect.hh>
namespace spot namespace spot
{ {
@ -147,8 +146,5 @@ namespace spot
SPOT_API tgba_digraph_ptr SPOT_API tgba_digraph_ptr
dstar_to_tgba(const const_dstar_aut_ptr& dstar); dstar_to_tgba(const const_dstar_aut_ptr& dstar);
/// @} /// @}
} }
#endif // SPOT_DSTARPARSE_PUBLIC_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_GRAPH_GRAPH_HH #pragma once
# define SPOT_GRAPH_GRAPH_HH
#include "misc/common.hh" #include "misc/common.hh"
#include <vector> #include <vector>
@ -959,9 +958,5 @@ namespace spot
//std::cerr << "\nafter defrag\n"; //std::cerr << "\nafter defrag\n";
//dump_storage(std::cerr); //dump_storage(std::cerr);
} }
}; };
} }
#endif // SPOT_GRAPH_GRAPH_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_GRAPH_NGRAPH_HH #pragma once
# define SPOT_GRAPH_NGRAPH_HH
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
@ -162,7 +161,4 @@ namespace spot
return g_.new_transition(get_state(src), d, std::forward<Args>(args)...); return g_.new_transition(get_state(src), d, std::forward<Args>(args)...);
} }
}; };
} }
#endif // SPOT_GRAPH_NGRAPH_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_HOAPARSE_PARSEDECL_HH #pragma once
# define SPOT_HOAPARSE_PARSEDECL_HH
#include <string> #include <string>
#include "hoaparse.hh" #include "hoaparse.hh"
@ -42,5 +41,3 @@ namespace spot
spot::location pos; spot::location pos;
}; };
} }
#endif // SPOT_HOAPARSE_PARSEDECL_HH

View file

@ -17,17 +17,16 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_HOAPARSE_PUBLIC_HH #pragma once
# define SPOT_HOAPARSE_PUBLIC_HH
# include "tgba/tgbagraph.hh" #include "tgba/tgbagraph.hh"
# include "misc/location.hh" #include "misc/location.hh"
# include "ltlenv/defaultenv.hh" #include "ltlenv/defaultenv.hh"
# include <string> #include <string>
# include <list> #include <list>
# include <utility> #include <utility>
# include <iosfwd> #include <iosfwd>
# include <misc/bitvect.hh> #include <misc/bitvect.hh>
namespace spot namespace spot
{ {
@ -130,5 +129,3 @@ namespace spot
/// @} /// @}
} }
#endif // SPOT_HOAPARSE_PUBLIC_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_KRIPKE_FAIRKRIPKE_HH #pragma once
# define SPOT_KRIPKE_FAIRKRIPKE_HH
#include "tgba/tgba.hh" #include "tgba/tgba.hh"
#include "fwd.hh" #include "fwd.hh"
@ -106,8 +105,4 @@ namespace spot
protected: protected:
virtual bdd compute_support_conditions(const state* s) const; virtual bdd compute_support_conditions(const state* s) const;
}; };
} }
#endif // SPOT_KRIPKE_FAIRKRIPKE_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_KRIPKE_FWD_HH #pragma once
# define SPOT_KRIPKE_FWD_HH
#include <memory> #include <memory>
@ -36,5 +35,3 @@ namespace spot
typedef std::shared_ptr<const kripke_explicit> const_kripke_explicit_ptr; typedef std::shared_ptr<const kripke_explicit> const_kripke_explicit_ptr;
typedef std::shared_ptr<kripke_explicit> kripke_explicit_ptr; typedef std::shared_ptr<kripke_explicit> kripke_explicit_ptr;
} }
#endif // SPOT_KRIPKE_FWD_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_KRIPKE_KRIPKE_HH #pragma once
# define SPOT_KRIPKE_KRIPKE_HH
#include "fairkripke.hh" #include "fairkripke.hh"
@ -97,15 +96,11 @@ namespace spot
{ {
} }
virtual ~kripke(); virtual ~kripke();
virtual acc_cond::mark_t state_acceptance_conditions(const state*) const; virtual acc_cond::mark_t state_acceptance_conditions(const state*) const;
}; };
typedef std::shared_ptr<kripke> kripke_ptr; typedef std::shared_ptr<kripke> kripke_ptr;
typedef std::shared_ptr<const kripke> const_kripke_ptr; typedef std::shared_ptr<const kripke> const_kripke_ptr;
} }
#endif // SPOT_KRIPKE_KRIPKE_HH

View file

@ -17,14 +17,12 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#ifndef SPOT_KRIPKE_KRIPKEEXPLICIT_HH #include <iosfwd>
# define SPOT_KRIPKE_KRIPKEEXPLICIT_HH #include "kripke.hh"
#include "ltlast/formula.hh"
# include <iosfwd> #include "kripkeprint.hh"
# include "kripke.hh"
# include "ltlast/formula.hh"
# include "kripkeprint.hh"
namespace spot namespace spot
{ {
@ -185,4 +183,3 @@ namespace spot
return std::make_shared<kripke_explicit>(d, init); return std::make_shared<kripke_explicit>(d, init);
} }
} }
#endif // SPOT_KRIPKE_KRIPKEEXPLICIT_HH

View file

@ -17,13 +17,11 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#ifndef SPOT_KRIPKE_KRIPKEPRINT_HH #include "misc/common.hh"
# define SPOT_KRIPKE_KRIPKEPRINT_HH #include <iosfwd>
#include "kripke.hh"
# include "misc/common.hh"
# include <iosfwd>
# include "kripke.hh"
namespace spot namespace spot
{ {
@ -52,5 +50,3 @@ namespace spot
kripke_save_reachable_renumbered(std::ostream& os, const const_kripke_ptr& k); kripke_save_reachable_renumbered(std::ostream& os, const const_kripke_ptr& k);
} // End namespace spot } // End namespace spot
#endif // SPOT_KRIPKE_KRIPKEPRINT_HH

View file

@ -18,12 +18,11 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_KRIPKEPARSE_PARSEDECL_HH #pragma once
# define SPOT_KRIPKEPARSE_PARSEDECL_HH
# include <string> #include <string>
# include "kripkeparse.hh" #include "kripkeparse.hh"
# include "misc/location.hh" #include "misc/location.hh"
# define YY_DECL \ # define YY_DECL \
int kripkeyylex (kripkeyy::parser::semantic_type *yylval, \ int kripkeyylex (kripkeyy::parser::semantic_type *yylval, \
@ -36,5 +35,3 @@ namespace spot
int kripkeyyopen(const std::string& name); int kripkeyyopen(const std::string& name);
void kripkeyyclose(); void kripkeyyclose();
} }
#endif /* !PARSEDECL_HH_ */

View file

@ -17,17 +17,15 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#ifndef SPOT_KRIPKEPARSE_PUBLIC_HH #include "kripke/kripkeexplicit.hh"
# define SPOT_KRIPKEPARSE_PUBLIC_HH #include "misc/location.hh"
#include "ltlenv/defaultenv.hh"
# include "kripke/kripkeexplicit.hh" #include <string>
# include "misc/location.hh" #include <list>
# include "ltlenv/defaultenv.hh" #include <utility>
# include <string> #include <iosfwd>
# include <list>
# include <utility>
# include <iosfwd>
namespace spot namespace spot
{ {
@ -58,8 +56,4 @@ namespace spot
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);
} }
#endif /* !SPOT_KRIPKEPARSE_PUBLIC_HH_ */

View file

@ -26,14 +26,11 @@
/// This file is usually needed when \b defining a visitor. /// This file is usually needed when \b defining a visitor.
/// Prefer ltlast/predecl.hh when only \b declaring methods and functions /// Prefer ltlast/predecl.hh when only \b declaring methods and functions
/// over LTL nodes. /// over LTL nodes.
#ifndef SPOT_LTLAST_ALLNODES_HH #pragma once
# define SPOT_LTLAST_ALLNODES_HH
# include "binop.hh" #include "binop.hh"
# include "unop.hh" #include "unop.hh"
# include "multop.hh" #include "multop.hh"
# include "atomic_prop.hh" #include "atomic_prop.hh"
# include "constant.hh" #include "constant.hh"
# include "bunop.hh" #include "bunop.hh"
#endif // SPOT_LTLAST_ALLNODES_HH

View file

@ -22,8 +22,7 @@
/// \file ltlast/atomic_prop.hh /// \file ltlast/atomic_prop.hh
/// \brief LTL atomic propositions /// \brief LTL atomic propositions
#ifndef SPOT_LTLAST_ATOMIC_PROP_HH #pragma once
# define SPOT_LTLAST_ATOMIC_PROP_HH
#include "formula.hh" #include "formula.hh"
#include <string> #include <string>
@ -91,5 +90,3 @@ namespace spot
} }
} }
} }
#endif // SPOT_LTLAST_ATOMICPROP_HH

View file

@ -25,8 +25,7 @@
/// ///
/// This does not include \c AND and \c OR operators. These are /// This does not include \c AND and \c OR operators. These are
/// considered to be multi-operand operators (see spot::ltl::multop). /// considered to be multi-operand operators (see spot::ltl::multop).
#ifndef SPOT_LTLAST_BINOP_HH #pragma once
# define SPOT_LTLAST_BINOP_HH
#include "formula.hh" #include "formula.hh"
#include <map> #include <map>
@ -238,5 +237,3 @@ namespace spot
} }
} }
} }
#endif // SPOT_LTLAST_BINOP_HH

View file

@ -19,8 +19,7 @@
/// \file ltlast/bunop.hh /// \file ltlast/bunop.hh
/// \brief Bounded Unary operators /// \brief Bounded Unary operators
#ifndef SPOT_LTLAST_BUNOP_HH #pragma once
# define SPOT_LTLAST_BUNOP_HH
#include "formula.hh" #include "formula.hh"
#include <map> #include <map>
@ -215,4 +214,3 @@ namespace spot
} }
} }
#endif // SPOT_LTLAST_BUNOP_HH

View file

@ -20,8 +20,7 @@
/// \file ltlast/constant.hh /// \file ltlast/constant.hh
/// \brief LTL constants /// \brief LTL constants
#ifndef SPOT_LTLAST_CONSTANT_HH #pragma once
# define SPOT_LTLAST_CONSTANT_HH
#include "formula.hh" #include "formula.hh"
@ -85,5 +84,3 @@ namespace spot
} }
} }
} }
#endif // SPOT_LTLAST_CONSTANT_HH

View file

@ -20,8 +20,7 @@
/// \file ltlast/formula.hh /// \file ltlast/formula.hh
/// \brief LTL formula interface /// \brief LTL formula interface
#ifndef SPOT_LTLAST_FORMULA_HH #pragma once
# define SPOT_LTLAST_FORMULA_HH
#include "misc/common.hh" #include "misc/common.hh"
#include <string> #include <string>
@ -533,5 +532,3 @@ namespace std
}; };
} }
#endif #endif
#endif // SPOT_LTLAST_FORMULA_HH

View file

@ -22,8 +22,7 @@
/// \file ltlast/multop.hh /// \file ltlast/multop.hh
/// \brief LTL multi-operand operators /// \brief LTL multi-operand operators
#ifndef SPOT_LTLAST_MULTOP_HH #pragma once
# define SPOT_LTLAST_MULTOP_HH
#include "formula.hh" #include "formula.hh"
#include <vector> #include <vector>
@ -317,5 +316,3 @@ namespace spot
} }
} }
} }
#endif // SPOT_LTLAST_MULTOP_HH

View file

@ -27,8 +27,7 @@
/// over LTL nodes. /// over LTL nodes.
/// Use ltlast/allnodes.hh or an individual header when the definition of /// Use ltlast/allnodes.hh or an individual header when the definition of
/// the node is actually needed. /// the node is actually needed.
#ifndef SPOT_LTLAST_PREDECL_HH #pragma once
# define SPOT_LTLAST_PREDECL_HH
namespace spot namespace spot
{ {
@ -45,5 +44,3 @@ namespace spot
class unop; class unop;
} }
} }
#endif // SPOT_LTLAST_PREDECL_HH

View file

@ -22,8 +22,7 @@
/// \file ltlast/unop.hh /// \file ltlast/unop.hh
/// \brief LTL unary operators /// \brief LTL unary operators
#ifndef SPOT_LTLAST_UNOP_HH #pragma once
# define SPOT_LTLAST_UNOP_HH
#include <map> #include <map>
#include <iosfwd> #include <iosfwd>
@ -217,5 +216,3 @@ namespace spot
} }
} }
} }
#endif // SPOT_LTLAST_UNOP_HH

View file

@ -22,11 +22,10 @@
/// \file ltlast/visitor.hh /// \file ltlast/visitor.hh
/// \brief LTL visitor interface /// \brief LTL visitor interface
#ifndef SPOT_LTLAST_VISITOR_HH #pragma once
# define SPOT_LTLAST_VISITOR_HH
# include "misc/common.hh" #include "misc/common.hh"
# include "predecl.hh" #include "predecl.hh"
namespace spot namespace spot
{ {
@ -50,5 +49,3 @@ namespace spot
}; };
} }
} }
#endif // SPOT_LTLAST_VISITOR_HH

View file

@ -20,13 +20,12 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLENV_DECLENV_HH #pragma once
# define SPOT_LTLENV_DECLENV_HH
# include "environment.hh" #include "environment.hh"
# include <string> #include <string>
# include <map> #include <map>
# include "ltlast/atomic_prop.hh" #include "ltlast/atomic_prop.hh"
namespace spot namespace spot
{ {
@ -63,5 +62,3 @@ namespace spot
}; };
} }
} }
#endif // SPOT_LTLENV_DECLENV_HH

View file

@ -20,11 +20,10 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLENV_DEFAULTENV_HH #pragma once
# define SPOT_LTLENV_DEFAULTENV_HH
# include "environment.hh" #include "environment.hh"
# include "ltlast/atomic_prop.hh" #include "ltlast/atomic_prop.hh"
namespace spot namespace spot
{ {
@ -50,8 +49,5 @@ namespace spot
protected: protected:
default_environment(); default_environment();
}; };
} }
} }
#endif // SPOT_LTLENV_DEFAULTENV_HH

View file

@ -20,11 +20,10 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLENV_ENVIRONMENT_HH #pragma once
# define SPOT_LTLENV_ENVIRONMENT_HH
# include "ltlast/formula.hh" #include "ltlast/formula.hh"
# include <string> #include <string>
namespace spot namespace spot
{ {
@ -65,5 +64,3 @@ namespace spot
} }
} }
#endif // SPOT_LTLENV_ENVIRONMENT_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLPARSE_PARSEDECL_HH #pragma once
# define SPOT_LTLPARSE_PARSEDECL_HH
#include "ltlparse.hh" #include "ltlparse.hh"
#include "misc/location.hh" #include "misc/location.hh"
@ -34,5 +33,3 @@ YY_DECL;
void flex_set_buffer(const std::string& buf, int start_tok, bool lenient); void flex_set_buffer(const std::string& buf, int start_tok, bool lenient);
void flex_unset_buffer(); void flex_unset_buffer();
#endif // SPOT_LTLPARSE_PARSEDECL_HH

View file

@ -20,16 +20,15 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLPARSE_PUBLIC_HH #pragma once
# define SPOT_LTLPARSE_PUBLIC_HH
# include "ltlast/formula.hh" #include "ltlast/formula.hh"
# include "misc/location.hh" #include "misc/location.hh"
# include "ltlenv/defaultenv.hh" #include "ltlenv/defaultenv.hh"
# include <string> #include <string>
# include <list> #include <list>
# include <utility> #include <utility>
# include <iosfwd> #include <iosfwd>
namespace spot namespace spot
{ {
@ -217,5 +216,3 @@ namespace spot
/// @} /// @}
} }
} }
#endif // SPOT_LTLPARSE_PUBLIC_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_APCOLLECT_HH #pragma once
# define SPOT_LTLVISIT_APCOLLECT_HH
#include "ltlast/atomic_prop.hh" #include "ltlast/atomic_prop.hh"
#include <set> #include <set>
@ -74,4 +73,3 @@ namespace spot
/// @} /// @}
} }
} }
#endif

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_CLONE_HH #pragma once
# define SPOT_LTLVISIT_CLONE_HH
#include "ltlast/formula.hh" #include "ltlast/formula.hh"
#include "ltlast/visitor.hh" #include "ltlast/visitor.hh"
@ -59,5 +58,3 @@ namespace spot
}; };
} }
} }
#endif // SPOT_LTLVISIT_LUNABBREV_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_CONTAIN_HH #pragma once
# define SPOT_LTLVISIT_CONTAIN_HH
#include "ltlast/formula.hh" #include "ltlast/formula.hh"
#include "tgbaalgos/ltl2tgba_fm.hh" #include "tgbaalgos/ltl2tgba_fm.hh"
@ -81,5 +80,3 @@ namespace spot
}; };
} }
} }
#endif // SPOT_LTLVISIT_CONTAIN_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_DOTTY_HH #pragma once
# define SPOT_LTLVISIT_DOTTY_HH
#include <ltlast/formula.hh> #include <ltlast/formula.hh>
#include <iosfwd> #include <iosfwd>
@ -41,5 +40,3 @@ namespace spot
std::ostream& dotty(std::ostream& os, const formula* f); std::ostream& dotty(std::ostream& os, const formula* f);
} }
} }
#endif // SPOT_LTLVISIT_DOTTY_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_DUMP_HH #pragma once
# define SPOT_LTLVISIT_DUMP_HH
#include "ltlast/formula.hh" #include "ltlast/formula.hh"
#include <iosfwd> #include <iosfwd>
@ -40,5 +39,3 @@ namespace spot
std::ostream& dump(std::ostream& os, const formula* f); std::ostream& dump(std::ostream& os, const formula* f);
} }
} }
#endif // SPOT_LTLVISIT_DUMP_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_LBT_HH #pragma once
# define SPOT_LTLVISIT_LBT_HH
#include <ltlast/formula.hh> #include <ltlast/formula.hh>
#include <iosfwd> #include <iosfwd>
@ -58,5 +57,3 @@ namespace spot
/// @} /// @}
} }
} }
#endif // SPOT_LTLVISIT_TOSTRING_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_LENGTH_HH #pragma once
# define SPOT_LTLVISIT_LENGTH_HH
#include "ltlast/formula.hh" #include "ltlast/formula.hh"
@ -53,5 +52,3 @@ namespace spot
int length_boolone(const formula* f); int length_boolone(const formula* f);
} }
} }
#endif // SPOT_LTLVISIT_LENGTH_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_LUNABBREV_HH #pragma once
# define SPOT_LTLVISIT_LUNABBREV_HH
#include "clone.hh" #include "clone.hh"
@ -65,5 +64,3 @@ namespace spot
} }
} }
#endif // SPOT_LTLVISIT_LUNABBREV_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_MARK_HH #pragma once
# define SPOT_LTLVISIT_MARK_HH
#include "ltlast/formula.hh" #include "ltlast/formula.hh"
#include "ltlast/visitor.hh" #include "ltlast/visitor.hh"
@ -53,5 +52,3 @@ namespace spot
} }
} }
#endif // SPOT_LTLVISIT_MARK_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_MUTATION_HH #pragma once
# define SPOT_LTLVISIT_MUTATION_HH
#include "ltlast/formula.hh" #include "ltlast/formula.hh"
#include <set> #include <set>
@ -48,4 +47,3 @@ namespace spot
bool sort = true); bool sort = true);
} }
} }
#endif

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_NENOFORM_HH #pragma once
# define SPOT_LTLVISIT_NENOFORM_HH
#include "ltlast/formula.hh" #include "ltlast/formula.hh"
@ -48,5 +47,3 @@ namespace spot
negative_normal_form(const formula* f, bool negated = false); negative_normal_form(const formula* f, bool negated = false);
} }
} }
#endif // SPOT_LTLVISIT_NENOFORM_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_POSTFIX_HH #pragma once
# define SPOT_LTLVISIT_POSTFIX_HH
#include "ltlast/formula.hh" #include "ltlast/formula.hh"
#include "ltlast/visitor.hh" #include "ltlast/visitor.hh"
@ -59,5 +58,3 @@ namespace spot
}; };
} }
} }
#endif // SPOT_LTLVISIT_POSTFIX_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_RANDOMLTL_HH #pragma once
# define SPOT_LTLVISIT_RANDOMLTL_HH
#include "apcollect.hh" #include "apcollect.hh"
#include <iosfwd> #include <iosfwd>
@ -354,4 +353,3 @@ namespace spot
}; };
} }
} }
#endif // SPOT_LTLVIST_RANDOMLTL_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_RELABEL_HH #pragma once
# define SPOT_LTLVISIT_RELABEL_HH
#include "ltlast/formula.hh" #include "ltlast/formula.hh"
#include "misc/hash.hh" #include "misc/hash.hh"
@ -60,10 +59,5 @@ namespace spot
SPOT_API SPOT_API
const formula* relabel_bse(const formula* f, relabeling_style style, const formula* relabel_bse(const formula* f, relabeling_style style,
relabeling_map* m = 0); relabeling_map* m = 0);
} }
} }
#endif // SPOT_LTLVISIT_RELABEL_HH

View file

@ -17,10 +17,9 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_REMOVE_X_HH #pragma once
# define SPOT_LTLVISIT_REMOVE_X_HH
# include "misc/common.hh" #include "misc/common.hh"
namespace spot namespace spot
{ {
@ -50,5 +49,3 @@ namespace spot
const formula* remove_x(const formula* f); const formula* remove_x(const formula* f);
} }
} }
#endif // SPOT_LTLVISIT_ETESSAMI00_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_SIMPFG_HH #pragma once
# define SPOT_LTLVISIT_SIMPFG_HH
#include "clone.hh" #include "clone.hh"
@ -67,5 +66,3 @@ namespace spot
SPOT_API const formula* simplify_f_g(const formula* f); SPOT_API const formula* simplify_f_g(const formula* f);
} }
} }
#endif // SPOT_LTLVISIT_LUNABBREV_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_SIMPLIFY_HH #pragma once
# define SPOT_LTLVISIT_SIMPLIFY_HH
#include "ltlast/formula.hh" #include "ltlast/formula.hh"
#include <bddx.h> #include <bddx.h>
@ -202,7 +201,4 @@ namespace spot
void operator=(const ltl_simplifier&) SPOT_DELETED; void operator=(const ltl_simplifier&) SPOT_DELETED;
}; };
} }
} }
#endif // SPOT_LTLVISIT_SIMPLIFY_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_SNF_HH #pragma once
#define SPOT_LTLVISIT_SNF_HH
#include "ltlast/formula.hh" #include "ltlast/formula.hh"
#include "misc/hash.hh" #include "misc/hash.hh"
@ -58,5 +57,3 @@ namespace spot
star_normal_form_bounded(const formula* sere, snf_cache* cache = 0); star_normal_form_bounded(const formula* sere, snf_cache* cache = 0);
} }
} }
#endif // SPOT_LTLVISIT_SNF_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_TOSTRING_HH #pragma once
# define SPOT_LTLVISIT_TOSTRING_HH
#include <ltlast/formula.hh> #include <ltlast/formula.hh>
#include <iosfwd> #include <iosfwd>
@ -147,5 +146,3 @@ namespace spot
/// @} /// @}
} }
} }
#endif // SPOT_LTLVISIT_TOSTRING_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_TUNABBREV_HH #pragma once
# define SPOT_LTLVISIT_TUNABBREV_HH
#include "ltlast/formula.hh" #include "ltlast/formula.hh"
#include "ltlvisit/lunabbrev.hh" #include "ltlvisit/lunabbrev.hh"
@ -68,5 +67,3 @@ namespace spot
SPOT_API const formula* unabbreviate_ltl(const formula* f); SPOT_API const formula* unabbreviate_ltl(const formula* f);
} }
} }
#endif // SPOT_LTLVISIT_TUNABBREV_HH

View file

@ -17,10 +17,9 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_LTLVISIT_WMUNABBREV_HH #pragma once
# define SPOT_LTLVISIT_WMUNABBREV_HH
# include "misc/common.hh" #include "misc/common.hh"
namespace spot namespace spot
{ {
@ -40,5 +39,3 @@ namespace spot
SPOT_API const formula* unabbreviate_wm(const formula* f); SPOT_API const formula* unabbreviate_wm(const formula* f);
} }
} }
#endif // SPOT_LTLVISIT_WMUNABBREV_HH

View file

@ -20,11 +20,10 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_BAREWORD_HH #pragma once
# define SPOT_MISC_BAREWORD_HH
# include "common.hh" #include "common.hh"
# include <string> #include <string>
namespace spot namespace spot
{ {
@ -49,5 +48,3 @@ namespace spot
SPOT_API bool is_spin_ap(const char* str); SPOT_API bool is_spin_ap(const char* str);
/// @} /// @}
} }
#endif // SPOT_MISC_BAREWORD_HH

View file

@ -20,11 +20,10 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_BDDLT_HH #pragma once
# define SPOT_MISC_BDDLT_HH
# include <bddx.h> #include <bddx.h>
# include <functional> #include <functional>
namespace spot namespace spot
{ {
@ -51,7 +50,4 @@ namespace spot
return b.id(); return b.id();
} }
}; };
} }
#endif // SPOT_MISC_BDDLT_HH

View file

@ -17,16 +17,15 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_BITVECT_HH #pragma once
# define SPOT_MISC_BITVECT_HH
# include "common.hh" #include "common.hh"
# include <cstddef> #include <cstddef>
# include <cstdlib> #include <cstdlib>
# include <cassert> #include <cassert>
# include <iosfwd> #include <iosfwd>
# include <iostream> #include <iostream>
# include <algorithm> #include <algorithm>
namespace spot namespace spot
{ {
@ -533,6 +532,3 @@ namespace spot
/// @} /// @}
} }
#endif // SPOT_MISC_BITVECT_HH

View file

@ -17,9 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_CASTS_HH #pragma once
# define SPOT_MISC_CASTS_HH
// We usually write code like // We usually write code like
// subclass* i = down_cast<subclass*>(m); // subclass* i = down_cast<subclass*>(m);
@ -35,5 +33,3 @@
#else #else
# define down_cast dynamic_cast # define down_cast dynamic_cast
#endif #endif
#endif // SPOT_MISC_CASTS_HH

View file

@ -20,8 +20,7 @@
#include <cstdlib> #include <cstdlib>
#include <stdexcept> #include <stdexcept>
#ifndef SPOT_MISC_COMMON_HH #pragma once
# define SPOT_MISC_COMMON_HH
#ifdef __GNUC__ #ifdef __GNUC__
#define SPOT_LIKELY(expr) __builtin_expect(!!(expr), 1) #define SPOT_LIKELY(expr) __builtin_expect(!!(expr), 1)
@ -110,5 +109,3 @@
// Useful when forwarding methods such as: // Useful when forwarding methods such as:
// auto func(int param) SPOT_RETURN(implem_.func(param)); // auto func(int param) SPOT_RETURN(implem_.func(param));
#define SPOT_RETURN(code) -> decltype(code) { return code; } #define SPOT_RETURN(code) -> decltype(code) { return code; }
#endif // SPOT_MISC_COMMON_HH

View file

@ -20,12 +20,11 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_ESCAPE_HH #pragma once
# define SPOT_MISC_ESCAPE_HH
# include "common.hh" #include "common.hh"
# include <iosfwd> #include <iosfwd>
# include <string> #include <string>
namespace spot namespace spot
{ {
@ -68,5 +67,3 @@ namespace spot
trim(std::string& str); trim(std::string& str);
/// @} /// @}
} }
#endif // SPOT_MISC_ESCAPE_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_FIXPOOL_HH #pragma once
# define SPOT_MISC_FIXPOOL_HH
#include <new> #include <new>
#include <cstddef> #include <cstddef>
@ -109,7 +108,4 @@ namespace spot
// chunk = several agglomerated blocks // chunk = several agglomerated blocks
union chunk_ { chunk_* prev; char data_[1]; }* chunklist_; union chunk_ { chunk_* prev; char data_[1]; }* chunklist_;
}; };
} }
#endif // SPOT_MISC_FIXPOOL_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_FORMATER_HH #pragma once
#define SPOT_MISC_FORMATER_HH
#include "common.hh" #include "common.hh"
#include <iostream> #include <iostream>
@ -198,7 +197,4 @@ namespace spot
protected: protected:
std::ostream* output_; std::ostream* output_;
}; };
} }
#endif // SPOT_MISC_FORMATER_HH

View file

@ -20,16 +20,15 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_HASH_HH #pragma once
# define SPOT_MISC_HASH_HH
# include <string> #include <string>
# include <functional> #include <functional>
# include "misc/hashfunc.hh" #include "misc/hashfunc.hh"
# include "misc/_config.h" #include "misc/_config.h"
# include <unordered_map> #include <unordered_map>
# include <unordered_set> #include <unordered_set>
namespace spot namespace spot
{ {
@ -89,7 +88,4 @@ namespace spot
static_cast<size_t>(uh(p.second))); static_cast<size_t>(uh(p.second)));
} }
}; };
} }
#endif // SPOT_MISC_HASH_HH

View file

@ -20,9 +20,9 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_HASHFUNC_HH #pragma once
# define SPOT_MISC_HASHFUNC_HH
# include <cstddef> #include <cstddef>
namespace spot namespace spot
{ {
@ -62,5 +62,3 @@ namespace spot
} }
/// @} /// @}
} }
#endif // SPOT_MISC_HASHFUNC_HH

View file

@ -17,12 +17,11 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_INTVCMP2_HH #pragma once
# define SPOT_MISC_INTVCMP2_HH
# include "common.hh" #include "common.hh"
# include <vector> #include <vector>
# include <stddef.h> #include <stddef.h>
namespace spot namespace spot
{ {
@ -49,5 +48,3 @@ namespace spot
/// @} /// @}
} }
#endif // SPOT_MISC_INTVCMP2_HH

View file

@ -17,12 +17,11 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_INTVCOMP_HH #pragma once
# define SPOT_MISC_INTVCOMP_HH
# include "common.hh" #include "common.hh"
# include <vector> #include <vector>
# include <stddef.h> #include <stddef.h>
namespace spot namespace spot
{ {
@ -74,5 +73,3 @@ namespace spot
/// @} /// @}
} }
#endif // SPOT_MISC_INTVCOMP_HH

View file

@ -33,10 +33,9 @@
This special exception was added by the Free Software Foundation in This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */ version 2.2 of Bison. */
#ifndef SPOT_MISC_LOCATION_HH #pragma once
# define SPOT_MISC_LOCATION_HH
# include "position.hh" #include "position.hh"
namespace spot namespace spot
{ {
@ -168,5 +167,3 @@ namespace spot
return ostr; return ostr;
} }
} }
#endif // SPOT_MISC_LOCATION_HH

View file

@ -20,11 +20,10 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_LTSTR_HH #pragma once
# define SPOT_MISC_LTSTR_HH
# include <cstring> #include <cstring>
# include <functional> #include <functional>
namespace spot namespace spot
{ {
@ -50,5 +49,3 @@ namespace spot
} }
}; };
} }
#endif // SPOT_MISC_LTSTR_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_MEMUSAGE_HH #pragma once
# define SPOT_MISC_MEMUSAGE_HH
#include "common.hh" #include "common.hh"
@ -33,5 +32,3 @@ namespace spot
/// -1 otherwise. /// -1 otherwise.
SPOT_API int memusage(); SPOT_API int memusage();
} }
#endif // SPOT_MISC_MEMUSAGE_HH

View file

@ -20,12 +20,11 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_MINATO_HH #pragma once
# define SPOT_MISC_MINATO_HH
# include "common.hh" #include "common.hh"
# include <bddx.h> #include <bddx.h>
# include <stack> #include <stack>
namespace spot namespace spot
{ {
@ -92,5 +91,3 @@ namespace spot
bdd ret_; bdd ret_;
}; };
} }
#endif // SPOT_MISC_MINATO_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_MSPOOL_HH #pragma once
# define SPOT_MISC_MSPOOL_HH
#include <new> #include <new>
#include <cstddef> #include <cstddef>
@ -124,7 +123,4 @@ namespace spot
// chunk = several agglomerated blocks // chunk = several agglomerated blocks
union chunk_ { chunk_* prev; char data_[1]; }* chunklist_; union chunk_ { chunk_* prev; char data_[1]; }* chunklist_;
}; };
} }
#endif // SPOT_MISC_INTVPOOL_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_OPTIONMAP_HH #pragma once
# define SPOT_MISC_OPTIONMAP_HH
#include "common.hh" #include "common.hh"
#include <string> #include <string>
@ -87,5 +86,3 @@ namespace spot
std::map<std::string, int> options_; std::map<std::string, int> options_;
}; };
} }
#endif // SPOT_MISC_OPTIONMAP_HH

View file

@ -33,20 +33,19 @@
This special exception was added by the Free Software Foundation in This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */ version 2.2 of Bison. */
#ifndef SPOT_MISC_POSITION_HH #pragma once
# define SPOT_MISC_POSITION_HH
# include <algorithm> // std::max #include <algorithm> // std::max
# include <iostream> #include <iostream>
# include <string> #include <string>
# ifndef YY_NULL #ifndef YY_NULL
# if defined __cplusplus && 201103L <= __cplusplus # if defined __cplusplus && 201103L <= __cplusplus
# define YY_NULL nullptr # define YY_NULL nullptr
# else # else
# define YY_NULL 0 # define YY_NULL 0
# endif
# endif # endif
#endif
namespace spot namespace spot
@ -162,8 +161,4 @@ namespace spot
ostr << *pos.filename << ':'; ostr << *pos.filename << ':';
return ostr << pos.line << '.' << pos.column; return ostr << pos.line << '.' << pos.column;
} }
} }
#endif // SPOT_MISC_POSITION_HH

View file

@ -20,12 +20,11 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_RANDOM_HH #pragma once
# define SPOT_MISC_RANDOM_HH
# include "common.hh" #include "common.hh"
# include <cmath> #include <cmath>
# include <vector> #include <vector>
namespace spot namespace spot
{ {
@ -137,5 +136,3 @@ namespace spot
} }
/// @} /// @}
} }
#endif // SPOT_MISC_RANDOM_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_SATSOLVER_HH #pragma once
#define SPOT_MISC_SATSOLVER_HH
#include "common.hh" #include "common.hh"
#include "tmpfile.hh" #include "tmpfile.hh"
@ -99,5 +98,3 @@ namespace spot
SPOT_API satsolver::solution SPOT_API satsolver::solution
satsolver_get_solution(const char* filename); satsolver_get_solution(const char* filename);
} }
#endif // SPOT_MISC_SATSOLVER_HH

View file

@ -20,20 +20,19 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_TIMER_HH #pragma once
# define SPOT_MISC_TIMER_HH
# include "common.hh" #include "common.hh"
# include "misc/_config.h" #include "misc/_config.h"
# include <cassert> #include <cassert>
# include <iosfwd> #include <iosfwd>
# include <string> #include <string>
# include <map> #include <map>
# include <chrono> #include <chrono>
# if SPOT_HAVE_SYS_TIMES_H #if SPOT_HAVE_SYS_TIMES_H
# include <sys/times.h> # include <sys/times.h>
# endif #endif
# include <ctime> #include <ctime>
namespace spot namespace spot
@ -247,5 +246,3 @@ namespace spot
/// @} /// @}
} }
#endif // SPOT_MISC_TIMER_HH

View file

@ -17,15 +17,14 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_TMPFILE_HH #pragma once
# define SPOT_MISC_TMPFILE_HH
# include "common.hh" #include "common.hh"
# include <new> #include <new>
# include <stdexcept> #include <stdexcept>
# include <iostream> #include <iostream>
# include <list> #include <list>
# include "formater.hh" #include "formater.hh"
namespace spot namespace spot
{ {
@ -138,6 +137,3 @@ namespace spot
/// @} /// @}
} }
#endif // SPOT_MISC_TMPFILE_HH

View file

@ -20,10 +20,9 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_VERSION_HH #pragma once
# define SPOT_MISC_VERSION_HH
# include "common.hh" #include "common.hh"
namespace spot namespace spot
{ {
@ -31,5 +30,3 @@ namespace spot
/// \brief Return Spot's version. /// \brief Return Spot's version.
SPOT_API const char* version(); SPOT_API const char* version();
} }
#endif // SPOT_MISC_VERSION_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_PRIV_ACCMAP_HH #pragma once
# define SPOT_PRIV_ACCMAP_HH
#include <bddx.h> #include <bddx.h>
#include "misc/hash.hh" #include "misc/hash.hh"
@ -118,5 +117,3 @@ namespace spot
} }
}; };
} }
#endif // SPOT_PRIV_ACCCONV_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_PRIV_BDDALLOC_HH #pragma once
# define SPOT_PRIV_BDDALLOC_HH
#include "freelist.hh" #include "freelist.hh"
#include <list> #include <list>
@ -52,7 +51,4 @@ namespace spot
void extvarnum(int more); void extvarnum(int more);
virtual int extend(int n); virtual int extend(int n);
}; };
} }
#endif // SPOT_PRIV_BDDALLOC_HH

View file

@ -20,9 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#ifndef SPOT_PRIV_FREELIST_HH
# define SPOT_PRIV_FREELIST_HH
#include <list> #include <list>
#include <utility> #include <utility>
@ -79,7 +77,4 @@ namespace spot
/// Remove \a n consecutive entries from the list, starting at \a base. /// Remove \a n consecutive entries from the list, starting at \a base.
void remove(free_list_type::iterator i, int base, int n); void remove(free_list_type::iterator i, int base, int n);
}; };
} }
#endif // SPOT_PRIV_FREELIST_HH

View file

@ -34,14 +34,13 @@ for file in `find "$INCDIR" \( -name "${1-*}.hh" \
-o -name "${1-*}.hxx" \) \ -o -name "${1-*}.hxx" \) \
-a -type f -a -print | sed "s,$INCDIR/,,g"`; do -a -type f -a -print | sed "s,$INCDIR/,,g"`; do
b=`echo "$file" | tr '[/.a-z]' '[__A-Z]'` if head -n 100 "$INCDIR/$file" | grep -q "[ ]*#.*pragma.* once\$"; then
if grep "[ ]*#.*def.* SPOT_$b\$" "$INCDIR/$file" >/dev/null; then
: :
elif grep 'GNU Bison 2\.6' "$INCDIR/$file" >/dev/null; then elif grep -q 'GNU Bison 2\.6' "$INCDIR/$file"; then
# Bison 2.6, 2.6.1, 2.6.2 have a bug where position.hh # Bison 2.6, 2.6.1, 2.6.2 have a bug where position.hh
# include <iosfwd> instead of <iostream>. # include <iosfwd> instead of <iostream>.
continue continue
elif grep 'GNU Bison' "$INCDIR/$file" >/dev/null; then elif grep -q 'GNU Bison' "$INCDIR/$file"; then
: :
else else
echo "Missing, or incorrect include guard." >&2 echo "Missing, or incorrect include guard." >&2
@ -49,24 +48,7 @@ for file in `find "$INCDIR" \( -name "${1-*}.hh" \
echo " $file" >> failures echo " $file" >> failures
continue continue
fi fi
echo "PASS: $file"
cat >incltest.cc <<EOF
// Include the file twice, so we detect missing inclusion guards.
#include <$file>
#include <$file>
EOF
case $file in
*bin/*) MOREFLAGS="-I $TOPBUILD/lib/ -I $INCDIR/../lib/ -I $TOPBUILD";;
*) MOREFLAGS=;;
esac
if $CXX $MOREFLAGS $CPPFLAGS -DSKIP_DEPRECATED_WARNING $CXXFLAGS -c incltest.cc; then
echo "PASS: $file"
else
echo "FAIL: $file"
echo " $file" >> failures
fi
done done
if test -f failures; then if test -f failures; then

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_TA_TA_HH #pragma once
# define SPOT_TA_TA_HH
#include <set> #include <set>
@ -296,8 +295,4 @@ namespace spot
/// \addtogroup ta_misc Miscellaneous algorithms on TA /// \addtogroup ta_misc Miscellaneous algorithms on TA
/// \ingroup ta_algorithms /// \ingroup ta_algorithms
} }
#endif // SPOT_TA_TA_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_TA_TAEXPLICIT_HH #pragma once
# define SPOT_TA_TAEXPLICIT_HH
#include "misc/hash.hh" #include "misc/hash.hh"
#include <list> #include <list>
@ -260,7 +259,4 @@ namespace spot
{ {
return std::make_shared<ta_explicit>(tgba, n_acc, artificial_initial_state); return std::make_shared<ta_explicit>(tgba, n_acc, artificial_initial_state);
} }
} }
#endif // SPOT_TA_TAEXPLICIT_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_TA_TAPRODUCT_HH #pragma once
# define SPOT_TA_TAPRODUCT_HH
#include "ta.hh" #include "ta.hh"
#include "kripke/kripke.hh" #include "kripke/kripke.hh"
@ -219,7 +218,4 @@ namespace spot
/// \brief Move to the next successor in the Kripke structure /// \brief Move to the next successor in the Kripke structure
void next_kripke_dest(); void next_kripke_dest();
}; };
} }
#endif // SPOT_TA_TAPRODUCT_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_TA_TGTA_HH #pragma once
# define SPOT_TA_TGTA_HH
#include "tgba/tgba.hh" #include "tgba/tgba.hh"
@ -57,7 +56,6 @@ namespace spot
/// obtained by querying the iterator over the successors of /// obtained by querying the iterator over the successors of
/// a state. /// a state.
class SPOT_API tgta : public tgba class SPOT_API tgta : public tgba
{ {
@ -83,5 +81,3 @@ namespace spot
typedef std::shared_ptr<tgta> tgta_ptr; typedef std::shared_ptr<tgta> tgta_ptr;
typedef std::shared_ptr<const tgta> const_tgta_ptr; typedef std::shared_ptr<const tgta> const_tgta_ptr;
} }
#endif // SPOT_TA_TGTA_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_TA_TGTAEXPLICIT_HH #pragma once
# define SPOT_TA_TGTAEXPLICIT_HH
#include "misc/hash.hh" #include "misc/hash.hh"
#include <list> #include <list>
@ -76,5 +75,3 @@ namespace spot
artificial_initial_state); artificial_initial_state);
} }
} }
#endif // SPOT_TA_TGTAEXPLICIT_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_TA_TGTAPRODUCT_HH #pragma once
# define SPOT_TA_TGTAPRODUCT_HH
#include "tgba/tgba.hh" #include "tgba/tgba.hh"
#include "tgba/tgbaproduct.hh" #include "tgba/tgbaproduct.hh"
@ -100,7 +99,4 @@ namespace spot
bdd kripke_source_condition; bdd kripke_source_condition;
state* kripke_current_dest_state; state* kripke_current_dest_state;
}; };
} }
#endif // SPOT_TA_TGTAPRODUCT_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_TAALGOS_DOTTY_HH #pragma once
# define SPOT_TAALGOS_DOTTY_HH
#include "ta/ta.hh" #include "ta/ta.hh"
#include <iosfwd> #include <iosfwd>
@ -28,5 +27,3 @@ namespace spot
SPOT_API std::ostream& SPOT_API std::ostream&
dotty_reachable(std::ostream& os, const const_ta_ptr& a); dotty_reachable(std::ostream& os, const const_ta_ptr& a);
} }
#endif // SPOT_TAALGOS_DOTTY_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_TAALGOS_EMPTINESSTA_HH #pragma once
# define SPOT_TAALGOS_EMPTINESSTA_HH
#include "ta/taproduct.hh" #include "ta/taproduct.hh"
#include "misc/optionmap.hh" #include "misc/optionmap.hh"
@ -160,5 +159,3 @@ namespace spot
/// \addtogroup ta_emptiness_check_algorithms Emptiness-check algorithms /// \addtogroup ta_emptiness_check_algorithms Emptiness-check algorithms
/// \ingroup ta_emptiness_check /// \ingroup ta_emptiness_check
} }
#endif // SPOT_TAALGOS_EMPTINESSTA_HH

View file

@ -17,12 +17,11 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_TAALGOS_MINIMIZE_HH #pragma once
# define SPOT_TAALGOS_MINIMIZE_HH
# include "ta/ta.hh" #include "ta/ta.hh"
# include "ta/tgta.hh" #include "ta/tgta.hh"
# include "ta/tgtaexplicit.hh" #include "ta/tgtaexplicit.hh"
namespace spot namespace spot
{ {
@ -75,5 +74,3 @@ namespace spot
/// @} /// @}
} }
#endif /* !SPOT_TAALGOS_MINIMIZE_HH */

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_TAALGOS_REACHITER_HH #pragma once
# define SPOT_TAALGOS_REACHITER_HH
#include "misc/hash.hh" #include "misc/hash.hh"
#include "ta/ta.hh" #include "ta/ta.hh"
@ -129,7 +128,4 @@ namespace spot
protected: protected:
std::deque<const state*> todo; ///< A queue of states yet to explore. std::deque<const state*> todo; ///< A queue of states yet to explore.
}; };
} }
#endif // SPOT_TAALGOS_REACHITER_HH

Some files were not shown because too many files have changed in this diff Show more