stage3/datatype_functions.hh
changeset 606 d2122a32ec86
parent 603 a45a62dd6df9
child 666 8ba9ec4bae50
equal deleted inserted replaced
605:06caf4782e51 606:d2122a32ec86
   140 extern const struct widen_entry widen_CMP_table[];
   140 extern const struct widen_entry widen_CMP_table[];
   141 
   141 
   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, const std::vector <symbol_c *> &candidate_datatypes);
   146 
   146 
   147 /* Remove a datatype inside a candidate_datatypes list.
   147 /* Remove a datatype inside a candidate_datatypes list.
   148  * Returns: If successful it returns true, false otherwise.
   148  * Returns: If successful it returns true, false otherwise.
   149  */
   149  */
   150 bool remove_from_candidate_datatype_list(symbol_c *datatype, std::vector <symbol_c *> &candidate_datatypes);
   150 bool remove_from_candidate_datatype_list(symbol_c *datatype, std::vector <symbol_c *> &candidate_datatypes);