Print this page
11506 smatch resync


 217         cur_rl = rl_union(cur_rl, rl);
 218 
 219         return 0;
 220 }
 221 
 222 static void match_end_file(struct symbol_list *sym_list)
 223 {
 224         mem_sql(save_final_values, NULL,
 225                 "select distinct variable, symbol, value from local_values order by variable;");
 226         if (cur_name)
 227                 add_current_local();
 228 }
 229 
 230 void register_local_values(int id)
 231 {
 232         my_id = id;
 233 
 234         if (!option_info)
 235                 return;
 236 

 237         add_extra_mod_hook(&extra_mod_hook);
 238         add_unmatched_state_hook(my_id, &unmatched_state);
 239         add_merge_hook(my_id, &merge_estates);
 240         all_return_states_hook(&process_states);
 241         add_hook(match_end_file, END_FILE_HOOK);
 242         mem_sql(NULL, NULL, "alter table local_values add column symbol integer;");
 243 }


 217         cur_rl = rl_union(cur_rl, rl);
 218 
 219         return 0;
 220 }
 221 
 222 static void match_end_file(struct symbol_list *sym_list)
 223 {
 224         mem_sql(save_final_values, NULL,
 225                 "select distinct variable, symbol, value from local_values order by variable;");
 226         if (cur_name)
 227                 add_current_local();
 228 }
 229 
 230 void register_local_values(int id)
 231 {
 232         my_id = id;
 233 
 234         if (!option_info)
 235                 return;
 236 
 237         set_dynamic_states(my_id);
 238         add_extra_mod_hook(&extra_mod_hook);
 239         add_unmatched_state_hook(my_id, &unmatched_state);
 240         add_merge_hook(my_id, &merge_estates);
 241         all_return_states_hook(&process_states);
 242         add_hook(match_end_file, END_FILE_HOOK);
 243         mem_sql(NULL, NULL, "alter table local_values add column symbol integer;");
 244 }