Commit 83cb6f3a authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* src/ltltest/readltl.cc, src/ltltest/equals.cc: Cosmetics.

parent 2a0f8837
2003-04-17 Alexandre DURET-LUTZ <aduret@src.lip6.fr>
* src/ltltest/readltl.cc, src/ltltest/equals.cc: Cosmetics.
* src/ltlenv/environment.hh (require): Return a formula, not
an atomic_prop.
* src/ltlast/atomic_prop.hh (atomic_prop): New argument env.
......
......@@ -7,27 +7,27 @@
#include "ltlvisit/nenoform.hh"
void
syntax(char *prog)
syntax(char* prog)
{
std::cerr << prog << " formula1 formula2" << std::endl;
exit(2);
}
int
main(int argc, char **argv)
main(int argc, char** argv)
{
if (argc != 3)
syntax(argv[0]);
spot::ltl::parse_error_list p1;
spot::ltl::formula *f1 = spot::ltl::parse(argv[1], p1);
spot::ltl::formula* f1 = spot::ltl::parse(argv[1], p1);
if (spot::ltl::format_parse_errors(std::cerr, argv[1], p1))
return 2;
spot::ltl::parse_error_list p2;
spot::ltl::formula *f2 = spot::ltl::parse(argv[2], p2);
spot::ltl::formula* f2 = spot::ltl::parse(argv[2], p2);
if (spot::ltl::format_parse_errors(std::cerr, argv[2], p2))
return 2;
......
......@@ -4,14 +4,14 @@
#include "ltlvisit/dotty.hh"
void
syntax(char *prog)
syntax(char* prog)
{
std::cerr << prog << " [-d] formula" << std::endl;
exit(2);
}
int
main(int argc, char **argv)
main(int argc, char** argv)
{
int exit_code = 0;
......@@ -31,7 +31,7 @@ main(int argc, char **argv)
spot::ltl::environment& env(spot::ltl::default_environment::instance());
spot::ltl::parse_error_list pel;
spot::ltl::formula *f = spot::ltl::parse(argv[formula_index],
spot::ltl::formula* f = spot::ltl::parse(argv[formula_index],
pel, env, debug);
spot::ltl::parse_error_list::iterator it;
......
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