From 7a64ae7c519b666be092768c4d65080e006a4408 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 17 Mar 2007 18:35:49 +0000 Subject: [PATCH] Include , for malloc(). --- ChangeLog | 6 ++++++ lib/unistr/u16-cpy-alloc.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 lib/unistr/u16-cpy-alloc.c diff --git a/ChangeLog b/ChangeLog index cc7c266ab4..117c58f502 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-03-17 Bruno Haible + + * lib/unistr/u8-cpy-alloc.c: Include . + * lib/unistr/u16-cpy-alloc.c: Include . + * lib/unistr/u32-cpy-alloc.c: Include . + 2007-03-17 Bruno Haible * gnulib-tool (func_import): Update .cvsignore and .gitignore files diff --git a/lib/unistr/u16-cpy-alloc.c b/lib/unistr/u16-cpy-alloc.c new file mode 100644 index 0000000000..605fc89cde --- /dev/null +++ b/lib/unistr/u16-cpy-alloc.c @@ -0,0 +1,29 @@ +/* Copy piece of UTF-16 string. + Copyright (C) 1999, 2002, 2006-2007 Free Software Foundation, Inc. + Written by Bruno Haible , 2002. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#include + +/* Specification. */ +#include "unistr.h" + +#include + +#define FUNC u16_cpy_alloc +#define UNIT uint16_t +#include "u-cpy-alloc.h" -- 2.30.2