* gl_anylinked_list2.h [lint] (gl_linked_iterator)
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 22 Sep 2006 17:15:05 +0000 (17:15 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 22 Sep 2006 17:15:05 +0000 (17:15 +0000)
(gl_linked_iterator_from_to): Initialize struct completely.
* gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
(gl_tree_iterator_from_to): Likewise
* gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
* gl_array_list.c [lint] (gl_array_iterator)
(gl_array_iterator_from_to): Likewise.
* gl_array_oset.c [lint] (gl_array_iterator): Likewise.
* gl_carray_list.c [lint] (gl_carray_iterator)
(gl_carray_iterator_from_to): Likewise.

lib/ChangeLog
lib/gl_anylinked_list2.h
lib/gl_anytree_list2.h
lib/gl_anytree_oset.h
lib/gl_array_list.c
lib/gl_array_oset.c
lib/gl_carray_list.c

index c5c616adca229269219c3a6ad431e5cebfb09273..de057d38d61c17d2604434bc5a306a2b33f4ad58 100644 (file)
@@ -1,5 +1,16 @@
 2006-09-22  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
 
+       * gl_anylinked_list2.h [lint] (gl_linked_iterator)
+       (gl_linked_iterator_from_to): Initialize struct completely.
+       * gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
+       (gl_tree_iterator_from_to): Likewise
+       * gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
+       * gl_array_list.c [lint] (gl_array_iterator)
+       (gl_array_iterator_from_to): Likewise.
+       * gl_array_oset.c [lint] (gl_array_iterator): Likewise.
+       * gl_carray_list.c [lint] (gl_carray_iterator)
+       (gl_carray_iterator_from_to): Likewise.
+
        * gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
        * md4.c (md4_process_block): Remove unused variable.
        * rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
index 18d4a0ce28995c6c5d5a25d4a2dad0766b40b89e..aaf1569f638115034e3ee10c40218ff7f3ab4401 100644 (file)
@@ -697,6 +697,11 @@ gl_linked_iterator (gl_list_t list)
   result.list = list;
   result.p = list->root.next;
   result.q = &list->root;
+#ifdef lint
+  result.i = 0;
+  result.j = 0;
+  result.count = 0;
+#endif
 
   return result;
 }
@@ -763,6 +768,12 @@ gl_linked_iterator_from_to (gl_list_t list,
       result.q = node;
     }
 
+#ifdef lint
+  result.i = 0;
+  result.j = 0;
+  result.count = 0;
+#endif
+
   return result;
 }
 
index 19ecae5f706d2ee1aa1e5196b740dd00491cbc7b..a0154596d7957cbcc8c0ae6b6734c15b22d15b6b 100644 (file)
@@ -349,6 +349,11 @@ gl_tree_iterator (gl_list_t list)
   result.p = node;
   /* End point is past the rightmost node.  */
   result.q = NULL;
+#ifdef lint
+  result.i = 0;
+  result.j = 0;
+  result.count = 0;
+#endif
 
   return result;
 }
@@ -368,6 +373,11 @@ gl_tree_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index)
   result.p = (start_index < count ? node_at (list->root, start_index) : NULL);
   /* End point is the node at position end_index.  */
   result.q = (end_index < count ? node_at (list->root, end_index) : NULL);
+#ifdef lint
+  result.i = 0;
+  result.j = 0;
+  result.count = 0;
+#endif
 
   return result;
 }
index 84286bdd809eb1eda8012c5409d041e2161cd942..6ac07e4625055c6237fa26385fd6ef0b44dde904 100644 (file)
@@ -211,6 +211,11 @@ gl_tree_iterator (gl_oset_t set)
   result.p = node;
   /* End point is past the rightmost node.  */
   result.q = NULL;
+#ifdef lint
+  result.i = 0;
+  result.j = 0;
+  result.count = 0;
+#endif
 
   return result;
 }
index cb39fa0fc9fe9f8538d2aa8d96c20219497892de..811a30913b1e6677013f427e263e0ff97af6fbc2 100644 (file)
@@ -394,6 +394,10 @@ gl_array_iterator (gl_list_t list)
   result.count = list->count;
   result.p = list->elements + 0;
   result.q = list->elements + list->count;
+#ifdef lint
+  result.i = 0;
+  result.j = 0;
+#endif
 
   return result;
 }
@@ -411,6 +415,10 @@ gl_array_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index)
   result.count = list->count;
   result.p = list->elements + start_index;
   result.q = list->elements + end_index;
+#ifdef lint
+  result.i = 0;
+  result.j = 0;
+#endif
 
   return result;
 }
index 329357fbe845481c4a05a8646bf3e4bb8d8bb7a1..b73d69031fcb6331f7b23bb6be6ae5578f9289da 100644 (file)
@@ -229,6 +229,10 @@ gl_array_iterator (gl_oset_t set)
   result.count = set->count;
   result.p = set->elements + 0;
   result.q = set->elements + set->count;
+#ifdef lint
+  result.i = 0;
+  result.j = 0;
+#endif
 
   return result;
 }
index 5be0d070f33a8edfb8a724ab602dc08b2f078079..86fce07c1ab2d1f6dc06defa2319c8eea43d700a 100644 (file)
@@ -528,6 +528,10 @@ gl_carray_iterator (gl_list_t list)
   result.count = list->count;
   result.i = 0;
   result.j = list->count;
+#ifdef lint
+  result.p = 0;
+  result.q = 0;
+#endif
 
   return result;
 }
@@ -545,6 +549,10 @@ gl_carray_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index
   result.count = list->count;
   result.i = start_index;
   result.j = end_index;
+#ifdef lint
+  result.p = 0;
+  result.q = 0;
+#endif
 
   return result;
 }