]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: array - Add helpers for dealing with some common array usecases
authorAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 2 Jan 2019 11:29:32 +0000 (13:29 +0200)
committerVille Savolainen <ville.savolainen@open-xchange.com>
Mon, 1 Apr 2019 10:48:51 +0000 (10:48 +0000)
commite063261c89b03842b8e083c99b3b1e65429ad297
tree11d78dfee69121ae934f6b1b9fc30d9c25a6d732
parent95dd160a6be5d5352918b22f3071748956388717
lib: array - Add helpers for dealing with some common array usecases

Adds macros for accessing first and last item, pushing and popping
and also adding/removing first item.

Note that pop and shift do not return item.
src/lib/array.h