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 15e2a32..f0e71ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 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.
        * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
 
index 25b7a3e..c266fef 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 41692e2..cd274d6 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 extensions
 getpagesize
 unistr/u16-set
+unistr/u32-set
 unistr/u32-to-u16
 
 configure.ac:
index 8ac0078..d99ca31 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 extensions
 getpagesize
 unistr/u16-set
+unistr/u32-set
 
 configure.ac:
 gl_FUNC_MMAP_ANON
index 8bbba24..9b015a3 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 extensions
 getpagesize
 unistr/u8-set
+unistr/u32-set
 unistr/u32-to-u8
 
 configure.ac:
index 103671f..899bed5 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 extensions
 getpagesize
 unistr/u8-set
+unistr/u32-set
 
 configure.ac:
 gl_FUNC_MMAP_ANON
index 10a0ccb..b8594a0 100644 (file)
@@ -21,6 +21,7 @@
 #include "unistr.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "zerosize-ptr.h"
 #include "macros.h"
index c3d5111..24cab3a 100644 (file)
@@ -21,6 +21,7 @@
 #include "unistr.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "zerosize-ptr.h"
 #include "macros.h"
index da58e95..aec9613 100644 (file)
@@ -21,6 +21,7 @@
 #include "unistr.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "zerosize-ptr.h"
 #include "macros.h"
index f2b3a16..fdbdc0d 100644 (file)
@@ -21,6 +21,7 @@
 #include "unistr.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "zerosize-ptr.h"
 #include "macros.h"
index 6162c90..08496bf 100644 (file)
@@ -21,6 +21,7 @@
 #include "unistr.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "zerosize-ptr.h"
 #include "macros.h"
index 5491a71..ee8b9f2 100644 (file)
@@ -21,6 +21,7 @@
 #include "unistr.h"
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "zerosize-ptr.h"
 #include "macros.h"