unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
authorBruno Haible <bruno@clisp.org>
Wed, 28 Jul 2010 21:00:52 +0000 (23:00 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 28 Jul 2010 21:00:52 +0000 (23:00 +0200)
12 files changed:
ChangeLog
lib/unistr/u8-chr.c
modules/unistr/u16-chr-tests
modules/unistr/u16-strchr-tests
modules/unistr/u8-chr-tests
modules/unistr/u8-strchr-tests
tests/unistr/test-u16-chr.c
tests/unistr/test-u16-strchr.c
tests/unistr/test-u32-chr.c
tests/unistr/test-u32-strchr.c
tests/unistr/test-u8-chr.c
tests/unistr/test-u8-strchr.c

index 15e2a32a8a926dbbb7ed39bc5b353eed24cb81d4..f0e71ac8ac65eae9d669c67c91d5db613b4dd688 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2010-07-28  Bruno Haible  <bruno@clisp.org>
+
+       unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
+       * lib/unistr/u8-chr.c: Include <string.h>.
+       * tests/unistr/test-u8-chr.c: Likewise.
+       * tests/unistr/test-u16-chr.c: Likewise.
+       * tests/unistr/test-u32-chr.c: Likewise.
+       * tests/unistr/test-u8-strchr.c: Likewise.
+       * tests/unistr/test-u16-strchr.c: Likewise.
+       * tests/unistr/test-u32-strchr.c: Likewise.
+       * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
+       * modules/unistr/u16-chr-tests (Depends-on): Likewise.
+       * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
+       * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
+
 2010-07-28  Bruno Haible  <bruno@clisp.org>
 
        Use spaces for indentation, not tabs.
index 25b7a3ebebd19554cbfa86d8f95227aa910710b9..c266fef25ee56954864145e823f574af1190590f 100644 (file)
@@ -21,6 +21,8 @@
 /* Specification.  */
 #include "unistr.h"
 
+#include <string.h>
+
 uint8_t *
 u8_chr (const uint8_t *s, size_t n, ucs4_t uc)
 {
index 41692e2124eb0da39725c793475d27633c726194..cd274d69c660c66ea08cf8e71fc7ee01baa8319f 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 extensions
 getpagesize
 unistr/u16-set
+unistr/u32-set
 unistr/u32-to-u16
 
 configure.ac:
index 8ac007856fd93d6f0088d8d675e1025754cd51fd..d99ca31f7ad9a3ad2237b4f31b24b44c3ffd50e7 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 extensions
 getpagesize
 unistr/u16-set
+unistr/u32-set
 
 configure.ac:
 gl_FUNC_MMAP_ANON
index 8bbba243397cbc4e133931fd174b4b6803d0b470..9b015a3dcd7c12b87ebdbe13bda3cb8f5e4e5878 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 extensions
 getpagesize
 unistr/u8-set
+unistr/u32-set
 unistr/u32-to-u8
 
 configure.ac:
index 103671f97f7817b12a42a0fbe63e1e8fc1d417b0..899bed5de05fbb957849c1175956119f58b37737 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 extensions
 getpagesize
 unistr/u8-set
+unistr/u32-set
 
 configure.ac:
 gl_FUNC_MMAP_ANON
index 10a0ccb03076c82dd862a730f13b4557e3ccfb9f..b8594a01948c405d23245c03e5dfe37cb377e266 100644 (file)
@@ -21,6 +21,7 @@
 #include "unistr.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "zerosize-ptr.h"
 #include "macros.h"
index c3d5111d86fa2567dbf92effb720fbaa3584a0a8..24cab3a060725b30fa153e46a8bb11c40477df65 100644 (file)
@@ -21,6 +21,7 @@
 #include "unistr.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "zerosize-ptr.h"
 #include "macros.h"
index da58e95945fbf921ebcf25481d963cfafb051d48..aec9613892739153124d1a8a955dd5c0f78fba61 100644 (file)
@@ -21,6 +21,7 @@
 #include "unistr.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "zerosize-ptr.h"
 #include "macros.h"
index f2b3a1644b4283dc87b7ec182d04905c60a778cf..fdbdc0dbcafbd8e87d61a28c328265b16a5ae7d8 100644 (file)
@@ -21,6 +21,7 @@
 #include "unistr.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "zerosize-ptr.h"
 #include "macros.h"
index 6162c9063815c4b9d9f6ed88cfc86eaeda5abe77..08496bfbd06c71289c63dd043790bda8a4a0f026 100644 (file)
@@ -21,6 +21,7 @@
 #include "unistr.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "zerosize-ptr.h"
 #include "macros.h"
index 5491a71cdfab606ac1e0f861d7066305bbc76b1e..ee8b9f2b3218f61ac19a66b415e9ae78008baee9 100644 (file)
@@ -21,6 +21,7 @@
 #include "unistr.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "zerosize-ptr.h"
 #include "macros.h"