Code formating only.
authorMario de Sousa <msousa@fe.up.pt>
Fri, 26 Oct 2012 10:25:38 +0100
changeset 695 5760f1043ba4
parent 694 a010763dd4cb
child 696 7530eae6786d
Code formating only.
absyntax_utils/get_datatype_info.cc
--- a/absyntax_utils/get_datatype_info.cc	Sat Oct 06 14:21:04 2012 +0200
+++ b/absyntax_utils/get_datatype_info.cc	Fri Oct 26 10:25:38 2012 +0100
@@ -61,30 +61,21 @@
 
 
 bool get_datatype_info_c::is_type_equal(symbol_c *first_type, symbol_c *second_type) {
-  if ((NULL == first_type) || (NULL == second_type))
-      return false;
-  if (typeid(* first_type) == typeid(invalid_type_name_c))
-      return false;
-  if (typeid(*second_type) == typeid(invalid_type_name_c))
-      return false;
+  if ((NULL == first_type) || (NULL == second_type))                 {return false;}
+  if (typeid(* first_type) == typeid(invalid_type_name_c))           {return false;}
+  if (typeid(*second_type) == typeid(invalid_type_name_c))           {return false;}
     
-  if (get_datatype_info_c::is_ANY_ELEMENTARY(first_type)) {
-      if (typeid(*first_type) == typeid(*second_type))
-          return true;
-  } else   /* ANY_DERIVED */
-      return (first_type == second_type);
-
-  return false;
+  if ((get_datatype_info_c::is_ANY_ELEMENTARY(first_type)) &&
+      (typeid(*first_type) == typeid(*second_type)))                 {return true;}
+  /* ANY_DERIVED */
+  return (first_type == second_type);
 }
 
 
 
 bool get_datatype_info_c::is_type_valid(symbol_c *type) {
-  if (NULL == type)
-      return false;
-  if (typeid(*type) == typeid(invalid_type_name_c))
-      return false;
-
+  if (NULL == type)                                                  {return false;}
+  if (typeid(*type) == typeid(invalid_type_name_c))                  {return false;}
   return true;
 }