goat3d

diff libs/anim/dynarr.h @ 27:4deb0b12fe14

wtf... corrupted heap?
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 29 Sep 2013 08:20:19 +0300
parents
children 0ecb788a87f7
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/anim/dynarr.h	Sun Sep 29 08:20:19 2013 +0300
     1.3 @@ -0,0 +1,18 @@
     1.4 +#ifndef DYNARR_H_
     1.5 +#define DYNARR_H_
     1.6 +
     1.7 +#include "config.h"
     1.8 +
     1.9 +void *dynarr_alloc(int elem, int szelem);
    1.10 +void dynarr_free(void *da);
    1.11 +void *dynarr_resize(void *da, int elem);
    1.12 +
    1.13 +int dynarr_empty(void *da);
    1.14 +int dynarr_size(void *da);
    1.15 +
    1.16 +/* stack semantics */
    1.17 +void *dynarr_push(void *da, void *item);
    1.18 +void *dynarr_pop(void *da);
    1.19 +
    1.20 +
    1.21 +#endif	/* DYNARR_H_ */