repeated.c
changeset 6 bc41369f4587
parent 5 c87681fff7d3
--- a/repeated.c	Mon Aug 13 16:27:41 2007 +0200
+++ b/repeated.c	Mon Aug 13 23:45:27 2007 +0200
@@ -71,6 +71,9 @@
     el->def = ptr;
     el->next = 0;
     el->index = index;
+    /*
+    printf("New index: %i\n", index);
+    */
 
     /* Let the last point to the new element */
     if (ndhash[hash] != 0)
@@ -99,7 +102,14 @@
         if (hdef->length == ptr->length
                 && (strncmp(hdef->d, ptr->d, ptr->length) == 0))
             /* Repeated found !*/
+        {
+            /*
+            printf("Found: l1: %i l2: %i => %i\n", ptr->length, hdef->length,
+                    h->index);
+                    */
             return h->index;
+        }
+        h = h->next;
     }
 
     /* Not found */