gv_fsm 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 687c6994a931d95a7cc4f190dbe26dd1c392e960f9ef1c41f544f53408f1ad70
4
- data.tar.gz: 880237c706a106208808ae00a9c42be507dfd5dd5c43d09671f32e419d715b4d
3
+ metadata.gz: 7d5cf386d941c15a1f9c6efb216b87d53e1d2836db174974f29290873c53a86b
4
+ data.tar.gz: 9d1bcf0cd2d1bf32ca797d76f4e776a6462dbedc565399da20ef1c581b66fa47
5
5
  SHA512:
6
- metadata.gz: b690e25215ce7e994c96e5231759315fcf8804f13e6357c7b36f5a6cd6a925e1f7f6c761cbe494c76d592d967e981cb91b180de094f758919bd676e616376b74
7
- data.tar.gz: 641de18537305498dafa1afc161f2d3bcb0d05a2c30835289eb4afbb1eb8cd965950f94a19691951d50f038daa5520de766bce5dade4d6db477018341d522022
6
+ metadata.gz: 22269db6b746cba79aace36079d7857850f67d2f484b4661b738ce10b9f15f659f6e6fa1092c8a67d02d8b392ccdce12f2a78dfa41c9d8980e5fae91aaea59bb
7
+ data.tar.gz: f0408ea83e6cd16a94b8b82916185eec48d779600c93d4f79555edd2ff8268f232c20310abc0c5606014a502ac8ce33b98727815663ffdaf61888109a88c039e
data/bin/gv_fsm CHANGED
@@ -28,7 +28,7 @@ op = OptionParser.new do |parser|
28
28
  sm.cname = f
29
29
  end
30
30
 
31
- parser.on("-h", "--header-only", "Only generate header file") do
31
+ parser.on("-e", "--header-only", "Only generate header file") do
32
32
  options[:source] = false
33
33
  end
34
34
 
@@ -226,6 +226,7 @@ module GV_FSM
226
226
 
227
227
  <%= @prefix %>state_t <%= @prefix %>run_state(<%= @prefix %>state_t cur_state, <%= @prefix %>state_data_t *data) {
228
228
  <%= @prefix %>state_t new_state = <%= @prefix %>state_table[cur_state](data);
229
+ if (new_state == <%= @prefix.upcase %>NO_CHANGE) new_state = cur_state;
229
230
  <% if transition_functions_list.count > 0 then %>
230
231
  transition_func_t *transition = <%= @prefix %>transition_table[cur_state][new_state];
231
232
  if (transition)
@@ -1,3 +1,3 @@
1
1
  module GV_FSM
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gv_fsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paolo Bosetti