Commit 95eb4c7f authored by Elwin Pater's avatar Elwin Pater Committed by Michael Weber
Browse files

Consistent naming in guard interface

parent c5804869
...@@ -2129,7 +2129,7 @@ void dve_compiler::gen_transition_info() ...@@ -2129,7 +2129,7 @@ void dve_compiler::gen_transition_info()
line(); line();
// export the number of guards // export the number of guards
line ("extern \"C\" const int get_guards_count() " ); line ("extern \"C\" const int get_guard_count() " );
block_begin(); block_begin();
sprintf(buf, "return %zu;", guard.size()); sprintf(buf, "return %zu;", guard.size());
line(buf); line(buf);
...@@ -2229,7 +2229,7 @@ void dve_compiler::gen_transition_info() ...@@ -2229,7 +2229,7 @@ void dve_compiler::gen_transition_info()
line(); line();
// export the guard matrix // export the guard matrix
line ("extern \"C\" const int* get_guards_matrix(int g) " ); line ("extern \"C\" const int* get_guard_matrix(int g) " );
block_begin(); block_begin();
sprintf(buf, "if (g>=0 && g < %zu) return guard[g];", guard.size()); sprintf(buf, "if (g>=0 && g < %zu) return guard[g];", guard.size());
line(buf); line(buf);
...@@ -2267,7 +2267,7 @@ void dve_compiler::gen_transition_info() ...@@ -2267,7 +2267,7 @@ void dve_compiler::gen_transition_info()
// may be co-enabled function // may be co-enabled function
line ("extern \"C\" const int* get_guards_may_be_coenabled_matrix(int g) " ); line ("extern \"C\" const int* get_guard_may_be_coenabled_matrix(int g) " );
block_begin(); block_begin();
sprintf(buf, "if (g>=0 && g < %zu) return guardmaybecoenabled[g];", guard.size()); sprintf(buf, "if (g>=0 && g < %zu) return guardmaybecoenabled[g];", guard.size());
line(buf); line(buf);
......
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