libanim
annotate src/dynarr.h @ 78:769ae86eee31
makefile modified to build on mingw
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 16 Sep 2015 04:24:12 +0300 |
parents | fad4701f484e |
children |
rev | line source |
---|---|
nuclear@28 | 1 /* |
nuclear@28 | 2 libanim - hierarchical keyframe animation library |
nuclear@28 | 3 Copyright (C) 2012-2014 John Tsiombikas <nuclear@member.fsf.org> |
nuclear@28 | 4 |
nuclear@28 | 5 This program is free software: you can redistribute it and/or modify |
nuclear@28 | 6 it under the terms of the GNU Lesser General Public License as published |
nuclear@28 | 7 by the Free Software Foundation, either version 3 of the License, or |
nuclear@28 | 8 (at your option) any later version. |
nuclear@28 | 9 |
nuclear@28 | 10 This program is distributed in the hope that it will be useful, |
nuclear@28 | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
nuclear@28 | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
nuclear@28 | 13 GNU Lesser General Public License for more details. |
nuclear@28 | 14 |
nuclear@28 | 15 You should have received a copy of the GNU Lesser General Public License |
nuclear@28 | 16 along with this program. If not, see <http://www.gnu.org/licenses/>. |
nuclear@28 | 17 */ |
nuclear@28 | 18 |
nuclear@0 | 19 #ifndef DYNARR_H_ |
nuclear@0 | 20 #define DYNARR_H_ |
nuclear@0 | 21 |
nuclear@0 | 22 void *dynarr_alloc(int elem, int szelem); |
nuclear@0 | 23 void dynarr_free(void *da); |
nuclear@0 | 24 void *dynarr_resize(void *da, int elem); |
nuclear@0 | 25 |
nuclear@0 | 26 int dynarr_empty(void *da); |
nuclear@0 | 27 int dynarr_size(void *da); |
nuclear@0 | 28 |
nuclear@0 | 29 /* stack semantics */ |
nuclear@0 | 30 void *dynarr_push(void *da, void *item); |
nuclear@0 | 31 void *dynarr_pop(void *da); |
nuclear@0 | 32 |
nuclear@0 | 33 |
nuclear@0 | 34 #endif /* DYNARR_H_ */ |