smatch_links.c (1f5207b7) | smatch_links.c (efe51d0c) |
---|---|
1/* 2 * Copyright (C) 2014 Oracle. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * --- 88 unchanged lines hidden (view full) --- 97 set_state(sm->owner, sm->name, sm->sym, &undefined); 98} 99 100void set_up_link_functions(int id, int link_id) 101{ 102 if (id + 1 != link_id) 103 sm_fatal("FATAL ERROR: links need to be registered directly after the check"); 104 | 1/* 2 * Copyright (C) 2014 Oracle. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * --- 88 unchanged lines hidden (view full) --- 97 set_state(sm->owner, sm->name, sm->sym, &undefined); 98} 99 100void set_up_link_functions(int id, int link_id) 101{ 102 if (id + 1 != link_id) 103 sm_fatal("FATAL ERROR: links need to be registered directly after the check"); 104 |
105 set_dynamic_states(link_id); |
|
105 add_merge_hook(link_id, &merge_link_states); 106 add_modification_hook(link_id, &match_link_modify); 107 // free link at the end of function 108} 109 | 106 add_merge_hook(link_id, &merge_link_states); 107 add_modification_hook(link_id, &match_link_modify); 108 // free link at the end of function 109} 110 |