this shouldn't have been in cvs
[fw/sdcc] / src / SDCCsymt.c
index 8f3d8df450bbb681edbb13eba488793b551562ba..2a2000d5fb6e62c8ccccd0e2f4471a6ee36f14cd 100644 (file)
@@ -318,9 +318,19 @@ pointerTypes (sym_link * ptr, sym_link * type)
     ptr = ptr->next;
 
   /* could not find it */
+#if 0
   if (!ptr || IS_SPEC (ptr) ||
-      DCL_TYPE (ptr) != UPOINTER)
+      DCL_TYPE(ptr)!=UPOINTER)
+    return;
+#else
+  if (!ptr || IS_SPEC (ptr))
     return;
+  
+  if (IS_PTR(ptr) && DCL_TYPE(ptr)!=UPOINTER) {
+    pointerTypes (ptr->next, type);
+    return;
+  }
+#endif
 
   /* change the pointer type depending on the
      storage class of the type */