summaryrefslogtreecommitdiff
path: root/lib/gl_avltree_omap.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2018-12-11 20:56:25 +0100
committerBruno Haible <bruno@clisp.org>2018-12-11 20:56:25 +0100
commiteaf9a78f20bdb8e805ae7501bba020272b1f91cf (patch)
treefa5eebbed9b64de48cecc455166125617dc8d94a /lib/gl_avltree_omap.h
parent83ac717e2c236cb1734b8f9eeab6d70b5fb7e6dd (diff)
downloadgnulib-eaf9a78f20bdb8e805ae7501bba020272b1f91cf.tar.gz
avltree-omap: New module.
* lib/gl_avltree_omap.h: New file. * lib/gl_avltree_omap.c: New file. * lib/gl_avltree_ordered.h: Code moved to here from lib/gl_avltree_oset.c. Parameterize. * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h. * lib/gl_anytree_omap.h: New file. * modules/avltree-omap: New file. * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h. (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
Diffstat (limited to 'lib/gl_avltree_omap.h')
-rw-r--r--lib/gl_avltree_omap.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/gl_avltree_omap.h b/lib/gl_avltree_omap.h
new file mode 100644
index 0000000000..02db892191
--- /dev/null
+++ b/lib/gl_avltree_omap.h
@@ -0,0 +1,34 @@
+/* Ordered map data type implemented by a binary tree.
+ Copyright (C) 2006, 2009-2018 Free Software Foundation, Inc.
+ Written by Bruno Haible <bruno@clisp.org>, 2018.
+
+ 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 <https://www.gnu.org/licenses/>. */
+
+#ifndef _GL_AVLTREE_OMAP_H
+#define _GL_AVLTREE_OMAP_H
+
+#include "gl_omap.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern const struct gl_omap_implementation gl_avltree_omap_implementation;
+#define GL_AVLTREE_OMAP &gl_avltree_omap_implementation
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _GL_AVLTREE_OMAP_H */