A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[trace] dumping comment and comment_file to trace files when requested
[simgrid.git]
/
include
/
xbt
/
automaton.h
diff --git
a/include/xbt/automaton.h
b/include/xbt/automaton.h
index
33acf99
..
49df463
100644
(file)
--- a/
include/xbt/automaton.h
+++ b/
include/xbt/automaton.h
@@
-28,9
+28,7
@@
typedef struct xbt_automaton {
typedef struct xbt_automaton* xbt_automaton_t;
typedef struct xbt_exp_label{
typedef struct xbt_automaton* xbt_automaton_t;
typedef struct xbt_exp_label{
- /* fixme: "or", "and", and "not" are reserved keywords in C++ */
- /* enum{or=0, and=1, not=2, predicat=3, one=4} type; */
- int type;
+ enum{or=0, and=1, not=2, predicat=3, one=4} type;
union{
struct{
struct xbt_exp_label* left_exp;
union{
struct{
struct xbt_exp_label* left_exp;
@@
-61,7
+59,8
@@
typedef struct xbt_propositional_symbol{
typedef struct xbt_propositional_symbol* xbt_propositional_symbol_t;
typedef struct xbt_propositional_symbol* xbt_propositional_symbol_t;
-XBT_PUBLIC(xbt_automaton_t) xbt_automaton_new_automaton(void);
+XBT_PUBLIC(xbt_automaton_t) xbt_automaton_new(void);
+XBT_PUBLIC(void) xbt_automaton_load(xbt_automaton_t automaton, const char *file);
XBT_PUBLIC(xbt_state_t) xbt_automaton_new_state(xbt_automaton_t a, int type, char* id);
XBT_PUBLIC(xbt_state_t) xbt_automaton_new_state(xbt_automaton_t a, int type, char* id);