File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ struct automaton_wip {
27
27
bool final_states [state_max_wip ];
28
28
};
29
29
30
- static struct automaton_wip automaton_wip = {
30
+ static const struct automaton_wip automaton_wip = {
31
31
.state_names = {
32
32
"preemptive" ,
33
33
"non_preemptive"
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ struct automaton_wwnr {
27
27
bool final_states [state_max_wwnr ];
28
28
};
29
29
30
- static struct automaton_wwnr automaton_wwnr = {
30
+ static const struct automaton_wwnr automaton_wwnr = {
31
31
.state_names = {
32
32
"not_running" ,
33
33
"running"
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def format_automaton_definition(self):
111
111
112
112
def format_aut_init_header (self ):
113
113
buff = []
114
- buff .append ("static struct %s %s = {" % (self .struct_automaton_def , self .var_automaton_def ))
114
+ buff .append ("static const struct %s %s = {" % (self .struct_automaton_def , self .var_automaton_def ))
115
115
return buff
116
116
117
117
def __get_string_vector_per_line_content (self , buff ):
You can’t perform that action at this time.
0 commit comments