diff options
Diffstat (limited to 'src/ptrarray.h')
| -rw-r--r-- | src/ptrarray.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ptrarray.h b/src/ptrarray.h index 84f9ef0..e8a3c88 100644 --- a/src/ptrarray.h +++ b/src/ptrarray.h | |||
| @@ -21,7 +21,6 @@ | |||
| 21 | #ifndef PTRARRAY_H | 21 | #ifndef PTRARRAY_H |
| 22 | #define PTRARRAY_H | 22 | #define PTRARRAY_H |
| 23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
| 24 | #include "common.h" | ||
| 25 | 24 | ||
| 26 | typedef struct ptrarray_t { | 25 | typedef struct ptrarray_t { |
| 27 | void **pdata; | 26 | void **pdata; |
| @@ -30,8 +29,8 @@ typedef struct ptrarray_t { | |||
| 30 | size_t capacity_step; | 29 | size_t capacity_step; |
| 31 | } ptrarray_t; | 30 | } ptrarray_t; |
| 32 | 31 | ||
| 33 | _PLIST_INTERNAL ptrarray_t *ptr_array_new(int capacity); | 32 | ptrarray_t *ptr_array_new(int capacity); |
| 34 | _PLIST_INTERNAL void ptr_array_free(ptrarray_t *pa); | 33 | void ptr_array_free(ptrarray_t *pa); |
| 35 | _PLIST_INTERNAL void ptr_array_add(ptrarray_t *pa, void *data); | 34 | void ptr_array_add(ptrarray_t *pa, void *data); |
| 36 | _PLIST_INTERNAL void* ptr_array_index(ptrarray_t *pa, size_t index); | 35 | void* ptr_array_index(ptrarray_t *pa, size_t index); |
| 37 | #endif | 36 | #endif |
