summaryrefslogtreecommitdiff
path: root/gnulib-local
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-04-10 17:25:47 +0200
committerBruno Haible <bruno@clisp.org>2009-04-10 22:28:44 +0200
commit0ddf471de31d50df52d6ec01a9406f73086c6cb0 (patch)
tree0649226f0f47e368ec824af62f332c1561611080 /gnulib-local
parent2247ec07cae76d7ea6f002d9fa8cd917fd03e1cd (diff)
downloadlibunistring-0ddf471de31d50df52d6ec01a9406f73086c6cb0.tar.gz
Provide installable <stdbool.h>, <stdint.h> replacements.
Diffstat (limited to 'gnulib-local')
-rw-r--r--gnulib-local/Makefile.am25
-rw-r--r--gnulib-local/lib/unicase.h.diff19
-rw-r--r--gnulib-local/lib/unictype.h.diff19
-rw-r--r--gnulib-local/lib/unistr.h.diff19
-rw-r--r--gnulib-local/lib/unitypes.h.diff19
5 files changed, 101 insertions, 0 deletions
diff --git a/gnulib-local/Makefile.am b/gnulib-local/Makefile.am
new file mode 100644
index 0000000..b6a02c1
--- /dev/null
+++ b/gnulib-local/Makefile.am
@@ -0,0 +1,25 @@
+## Makefile for the gnulib-local directory of GNU libunistring
+## Copyright (C) 2006-2009 Free Software Foundation, Inc.
+##
+## This program is free software: you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 3 of the License, 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 General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+## Process this file with automake to produce Makefile.in.
+
+# Generate this list with
+# find . '(' -name Makefile.am ')' -prune -o -type f '!' '(' -name '*.orig' -or -name '*~' ')' -printf '%P\n' | sort | tr '\012' @ | sed 's/@$/%/;s/@/ \\@/g' | tr @% '\012\012'
+EXTRA_DIST = \
+lib/unicase.h.diff \
+lib/unictype.h.diff \
+lib/unistr.h.diff \
+lib/unitypes.h.diff
diff --git a/gnulib-local/lib/unicase.h.diff b/gnulib-local/lib/unicase.h.diff
new file mode 100644
index 0000000..1cf9eb3
--- /dev/null
+++ b/gnulib-local/lib/unicase.h.diff
@@ -0,0 +1,19 @@
+*** unicase.h.orig 2009-04-05 19:30:26.000000000 +0200
+--- unicase.h 2009-04-10 16:21:23.000000000 +0200
+***************
+*** 20,26 ****
+ #include "unitypes.h"
+
+ /* Get bool. */
+! #include <stdbool.h>
+
+ /* Get size_t. */
+ #include <stddef.h>
+--- 20,26 ----
+ #include "unitypes.h"
+
+ /* Get bool. */
+! #include <unistring-stdbool.h>
+
+ /* Get size_t. */
+ #include <stddef.h>
diff --git a/gnulib-local/lib/unictype.h.diff b/gnulib-local/lib/unictype.h.diff
new file mode 100644
index 0000000..65d5d53
--- /dev/null
+++ b/gnulib-local/lib/unictype.h.diff
@@ -0,0 +1,19 @@
+*** unictype.h.orig 2009-04-05 19:30:27.000000000 +0200
+--- unictype.h 2009-04-10 16:21:33.000000000 +0200
+***************
+*** 20,26 ****
+ #include "unitypes.h"
+
+ /* Get bool. */
+! #include <stdbool.h>
+
+ /* Get size_t. */
+ #include <stddef.h>
+--- 20,26 ----
+ #include "unitypes.h"
+
+ /* Get bool. */
+! #include <unistring-stdbool.h>
+
+ /* Get size_t. */
+ #include <stddef.h>
diff --git a/gnulib-local/lib/unistr.h.diff b/gnulib-local/lib/unistr.h.diff
new file mode 100644
index 0000000..24c2e94
--- /dev/null
+++ b/gnulib-local/lib/unistr.h.diff
@@ -0,0 +1,19 @@
+*** unistr.h.orig 2009-04-05 19:30:34.000000000 +0200
+--- unistr.h 2009-04-10 16:21:37.000000000 +0200
+***************
+*** 20,26 ****
+ #include "unitypes.h"
+
+ /* Get bool. */
+! #include <stdbool.h>
+
+ /* Get size_t. */
+ #include <stddef.h>
+--- 20,26 ----
+ #include "unitypes.h"
+
+ /* Get bool. */
+! #include <unistring-stdbool.h>
+
+ /* Get size_t. */
+ #include <stddef.h>
diff --git a/gnulib-local/lib/unitypes.h.diff b/gnulib-local/lib/unitypes.h.diff
new file mode 100644
index 0000000..f0544dd
--- /dev/null
+++ b/gnulib-local/lib/unitypes.h.diff
@@ -0,0 +1,19 @@
+*** unitypes.h.orig 2009-04-05 19:30:36.000000000 +0200
+--- unitypes.h 2009-04-10 16:22:07.000000000 +0200
+***************
+*** 18,24 ****
+ #define _UNITYPES_H
+
+ /* Get uint8_t, uint16_t, uint32_t. */
+! #include <stdint.h>
+
+ /* Type representing a Unicode character. */
+ typedef uint32_t ucs4_t;
+--- 18,24 ----
+ #define _UNITYPES_H
+
+ /* Get uint8_t, uint16_t, uint32_t. */
+! #include <unistring-stdint.h>
+
+ /* Type representing a Unicode character. */
+ typedef uint32_t ucs4_t;