equal
deleted
inserted
replaced
142 /* Search for a datatype inside a candidate_datatypes list. |
142 /* Search for a datatype inside a candidate_datatypes list. |
143 * Returns: position of datatype in the list, or -1 if not found. |
143 * Returns: position of datatype in the list, or -1 if not found. |
144 */ |
144 */ |
145 int search_in_candidate_datatype_list(symbol_c *datatype, std::vector <symbol_c *> candidate_datatypes); |
145 int search_in_candidate_datatype_list(symbol_c *datatype, std::vector <symbol_c *> candidate_datatypes); |
146 |
146 |
|
147 /* Remove a datatype inside a candidate_datatypes list. |
|
148 * Returns: If successful it returns true, false otherwise. |
|
149 */ |
|
150 bool remove_from_candidate_datatype_list(symbol_c *datatype, std::vector <symbol_c *> &candidate_datatypes); |
|
151 |
147 /* Intersect two candidate_datatype_lists. |
152 /* Intersect two candidate_datatype_lists. |
148 * Remove from list1 (origin, dest.) all elements that are not found in list2 (with). |
153 * Remove from list1 (origin, dest.) all elements that are not found in list2 (with). |
149 * In essence, list1 will contain the result of the intersection of list1 with list2. |
154 * In essence, list1 will contain the result of the intersection of list1 with list2. |
150 * In other words, modify list1 so it only contains the elelements that are simultaneously in list1 and list2! |
155 * In other words, modify list1 so it only contains the elelements that are simultaneously in list1 and list2! |
151 */ |
156 */ |