bin: use enums instead of #define for option codes
* src/bin/autfilt.cc, src/bin/common_aoutput.cc, src/bin/common_finput.cc, src/bin/common_output.cc, src/bin/common_post.cc, src/bin/common_setup.cc, src/bin/common_trans.cc, src/bin/dstar2tgba.cc, src/bin/genltl.cc, src/bin/ltl2tgba.cc, src/bin/ltl2tgta.cc, src/bin/ltlcross.cc, src/bin/ltlfilt.cc, src/bin/ltlgrind.cc, src/bin/randaut.cc, src/bin/randltl.cc: Here.
This commit is contained in:
parent
a530498fbd
commit
8658441839
16 changed files with 182 additions and 149 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2012, 2013 Laboratoire de Recherche et Développement
|
||||
// Copyright (C) 2012, 2013, 2015 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -96,27 +96,29 @@ using namespace spot::ltl;
|
|||
const char argp_program_doc[] ="\
|
||||
Generate temporal logic formulas from predefined scalable patterns.";
|
||||
|
||||
#define OPT_AND_F 1
|
||||
#define OPT_AND_FG 2
|
||||
#define OPT_AND_GF 3
|
||||
#define OPT_CCJ_ALPHA 4
|
||||
#define OPT_CCJ_BETA 5
|
||||
#define OPT_CCJ_BETA_PRIME 6
|
||||
#define OPT_GH_Q 7
|
||||
#define OPT_GH_R 8
|
||||
#define OPT_GO_THETA 9
|
||||
#define OPT_OR_FG 10
|
||||
#define OPT_OR_G 11
|
||||
#define OPT_OR_GF 12
|
||||
#define OPT_R_LEFT 13
|
||||
#define OPT_R_RIGHT 14
|
||||
#define OPT_RV_COUNTER 15
|
||||
#define OPT_RV_COUNTER_CARRY 16
|
||||
#define OPT_RV_COUNTER_CARRY_LINEAR 17
|
||||
#define OPT_RV_COUNTER_LINEAR 18
|
||||
#define OPT_U_LEFT 19
|
||||
#define OPT_U_RIGHT 20
|
||||
#define LAST_CLASS 20
|
||||
enum {
|
||||
OPT_AND_F = 1,
|
||||
OPT_AND_FG,
|
||||
OPT_AND_GF,
|
||||
OPT_CCJ_ALPHA,
|
||||
OPT_CCJ_BETA,
|
||||
OPT_CCJ_BETA_PRIME,
|
||||
OPT_GH_Q,
|
||||
OPT_GH_R,
|
||||
OPT_GO_THETA,
|
||||
OPT_OR_FG,
|
||||
OPT_OR_G,
|
||||
OPT_OR_GF,
|
||||
OPT_R_LEFT,
|
||||
OPT_R_RIGHT,
|
||||
OPT_RV_COUNTER,
|
||||
OPT_RV_COUNTER_CARRY,
|
||||
OPT_RV_COUNTER_CARRY_LINEAR,
|
||||
OPT_RV_COUNTER_LINEAR,
|
||||
OPT_U_LEFT,
|
||||
OPT_U_RIGHT,
|
||||
LAST_CLASS,
|
||||
};
|
||||
|
||||
const char* const class_name[LAST_CLASS] =
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue