projects
/
platform
/
upstream
/
libxkbcommon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compose: add iterator API
[platform/upstream/libxkbcommon.git]
/
src
/
darray.h
diff --git
a/src/darray.h
b/src/darray.h
index
de659cc
..
b75d85f
100644
(file)
--- a/
src/darray.h
+++ b/
src/darray.h
@@
-114,6
+114,11
@@
typedef darray (unsigned long) darray_ulong;
#define darray_concat(arr_to, arr_from) \
darray_append_items((arr_to), (arr_from).item, (arr_from).size)
#define darray_concat(arr_to, arr_from) \
darray_append_items((arr_to), (arr_from).item, (arr_from).size)
+/*** Removal ***/
+
+/* Warning: Do not call darray_remove_last on an empty darray. */
+#define darray_remove_last(arr) (--(arr).size)
+
/*** String buffer ***/
#define darray_append_string(arr, str) do { \
/*** String buffer ***/
#define darray_append_string(arr, str) do { \