summaryrefslogtreecommitdiff
path: root/lib/gl_array_map.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2018-12-14 23:07:43 +0100
committerBruno Haible <bruno@clisp.org>2018-12-14 23:07:43 +0100
commit970abeef0c233ecfba105f37971c77c4d0743682 (patch)
tree7e05335f783831534642d418843a1702a30ac932 /lib/gl_array_map.h
parenta0a1bcd0d9bc9b50e9bff3002d4b8d1d0fdeafdf (diff)
downloadgnulib-970abeef0c233ecfba105f37971c77c4d0743682.tar.gz
array-map: New module.
* lib/gl_array_map.h: New file. * lib/gl_array_map.c: New file. * modules/array-map: New file.
Diffstat (limited to 'lib/gl_array_map.h')
-rw-r--r--lib/gl_array_map.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/gl_array_map.h b/lib/gl_array_map.h
new file mode 100644
index 0000000000..e9ff41278b
--- /dev/null
+++ b/lib/gl_array_map.h
@@ -0,0 +1,34 @@
+/* Map data type implemented by an array.
+ 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_ARRAY_MAP_H
+#define _GL_ARRAY_MAP_H
+
+#include "gl_map.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern const struct gl_map_implementation gl_array_map_implementation;
+#define GL_ARRAY_MAP &gl_array_map_implementation
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _GL_ARRAY_MAP_H */