Mercurial > hg > octave-kai > gnulib-hg
changeset 13481:24ed6e62c681
unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 28 Jul 2010 23:00:52 +0200 |
parents | 16763f53b1d3 |
children | 6c8c77b19012 |
files | 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 |
diffstat | 12 files changed, 27 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/lib/unistr/u8-chr.c +++ b/lib/unistr/u8-chr.c @@ -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) {
--- a/modules/unistr/u16-chr-tests +++ b/modules/unistr/u16-chr-tests @@ -9,6 +9,7 @@ extensions getpagesize unistr/u16-set +unistr/u32-set unistr/u32-to-u16 configure.ac:
--- a/modules/unistr/u16-strchr-tests +++ b/modules/unistr/u16-strchr-tests @@ -9,6 +9,7 @@ extensions getpagesize unistr/u16-set +unistr/u32-set configure.ac: gl_FUNC_MMAP_ANON
--- a/modules/unistr/u8-chr-tests +++ b/modules/unistr/u8-chr-tests @@ -9,6 +9,7 @@ extensions getpagesize unistr/u8-set +unistr/u32-set unistr/u32-to-u8 configure.ac:
--- a/modules/unistr/u8-strchr-tests +++ b/modules/unistr/u8-strchr-tests @@ -9,6 +9,7 @@ extensions getpagesize unistr/u8-set +unistr/u32-set configure.ac: gl_FUNC_MMAP_ANON
--- a/tests/unistr/test-u16-chr.c +++ b/tests/unistr/test-u16-chr.c @@ -21,6 +21,7 @@ #include "unistr.h" #include <stdlib.h> +#include <string.h> #include "zerosize-ptr.h" #include "macros.h"
--- a/tests/unistr/test-u16-strchr.c +++ b/tests/unistr/test-u16-strchr.c @@ -21,6 +21,7 @@ #include "unistr.h" #include <stdlib.h> +#include <string.h> #include "zerosize-ptr.h" #include "macros.h"
--- a/tests/unistr/test-u32-chr.c +++ b/tests/unistr/test-u32-chr.c @@ -21,6 +21,7 @@ #include "unistr.h" #include <stdlib.h> +#include <string.h> #include "zerosize-ptr.h" #include "macros.h"
--- a/tests/unistr/test-u32-strchr.c +++ b/tests/unistr/test-u32-strchr.c @@ -21,6 +21,7 @@ #include "unistr.h" #include <stdlib.h> +#include <string.h> #include "zerosize-ptr.h" #include "macros.h"