stage3/datatype_functions.hh
changeset 443 ff4d26b7e51d
parent 441 e8de43eefcc5
child 445 e6c34ee82954
equal deleted inserted replaced
442:bd5998ee8876 443:ff4d26b7e51d
   139 /* Search for a datatype inside a candidate_datatypes list.
   139 /* Search for a datatype inside a candidate_datatypes list.
   140  * Returns: position of datatype in the list, or -1 if not found.
   140  * Returns: position of datatype in the list, or -1 if not found.
   141  */
   141  */
   142 int search_in_datatype_list(symbol_c *datatype, std::vector <symbol_c *> candidate_datatypes);
   142 int search_in_datatype_list(symbol_c *datatype, std::vector <symbol_c *> candidate_datatypes);
   143 
   143 
       
   144 /* Copy the elements in the candidate_datatype_list in one symbol (from)
       
   145  * into the candidate_datatype_list of another symbol (to)
       
   146  */
       
   147 void copy_candidate_datatype_list(symbol_c *from, symbol_c *to);
       
   148 
       
   149 
   144 /* A helper function... */
   150 /* A helper function... */
   145 bool is_ANY_ELEMENTARY_type         (symbol_c *type_symbol);
   151 bool is_ANY_ELEMENTARY_type         (symbol_c *type_symbol);
   146 bool is_ANY_SAFEELEMENTARY_type     (symbol_c *type_symbol);
   152 bool is_ANY_SAFEELEMENTARY_type     (symbol_c *type_symbol);
   147 bool is_ANY_ELEMENTARY_compatible   (symbol_c *type_symbol);
   153 bool is_ANY_ELEMENTARY_compatible   (symbol_c *type_symbol);
   148 
   154