aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynarray.h
diff options
context:
space:
mode:
authorPaul Eggert2021-01-22 11:45:38 -0800
committerPaul Eggert2021-01-22 12:02:55 -0800
commita900e641fa1fd765799f12a7f699f768ebfccfe8 (patch)
treea874eba952d3e51190a2bfe26cfe6c1635e9fda1 /lib/dynarray.h
parent9143eba0c6861f467c18bc52d66e6f5c573be56b (diff)
downloademacs-a900e641fa1fd765799f12a7f699f768ebfccfe8.tar.gz
emacs-a900e641fa1fd765799f12a7f699f768ebfccfe8.zip
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/dynarray.h')
-rw-r--r--lib/dynarray.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/dynarray.h b/lib/dynarray.h
new file mode 100644
index 00000000000..6da3e87e55f
--- /dev/null
+++ b/lib/dynarray.h
@@ -0,0 +1,31 @@
1/* Type-safe arrays which grow dynamically.
2 Copyright 2021 Free Software Foundation, Inc.
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
16
17/* Written by Paul Eggert, 2021. */
18
19#ifndef _GL_DYNARRAY_H
20#define _GL_DYNARRAY_H
21
22#include <libc-config.h>
23
24#define __libc_dynarray_at_failure gl_dynarray_at_failure
25#define __libc_dynarray_emplace_enlarge gl_dynarray_emplace_enlarge
26#define __libc_dynarray_finalize gl_dynarray_finalize
27#define __libc_dynarray_resize_clear gl_dynarray_resize_clear
28#define __libc_dynarray_resize gl_dynarray_resize
29#include <malloc/dynarray.h>
30
31#endif /* _GL_DYNARRAY_H */