equal
deleted
inserted
replaced
140 /* Search for a datatype inside a candidate_datatypes list. |
140 /* Search for a datatype inside a candidate_datatypes list. |
141 * Returns: position of datatype in the list, or -1 if not found. |
141 * Returns: position of datatype in the list, or -1 if not found. |
142 */ |
142 */ |
143 int search_in_candidate_datatype_list(symbol_c *datatype, std::vector <symbol_c *> candidate_datatypes); |
143 int search_in_candidate_datatype_list(symbol_c *datatype, std::vector <symbol_c *> candidate_datatypes); |
144 |
144 |
145 /* Copy the elements in the candidate_datatype_list in one symbol (from) |
|
146 * into the candidate_datatype_list of another symbol (to) |
|
147 */ |
|
148 void copy_candidate_datatype_list(symbol_c *from, symbol_c *to); |
|
149 |
|
150 /* Intersect two candidate_datatype_lists. |
145 /* Intersect two candidate_datatype_lists. |
151 * Remove from list1 (origin, dest.) all elements that are not found in list2 (with). |
146 * Remove from list1 (origin, dest.) all elements that are not found in list2 (with). |
152 * In essence, list1 will contain the result of the intersection of list1 with list2. |
147 * In essence, list1 will contain the result of the intersection of list1 with list2. |
153 * In other words, modify list1 so it only contains the elelements that are simultaneously in list1 and list2! |
148 * In other words, modify list1 so it only contains the elelements that are simultaneously in list1 and list2! |
154 */ |
149 */ |