mollusk 0e4acfb8f2 fix incorrect folder name for julia-0.6.x
Former-commit-id: ef2c7401e0876f22d2f7762d182cfbcd5a7d9c70
2018-06-11 03:28:36 -07:00

31 lines
563 B
C

// This file is a part of Julia. License is MIT: https://julialang.org/license
#ifndef ARRAYLIST_H
#define ARRAYLIST_H
#define AL_N_INLINE 29
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
size_t len;
size_t max;
void **items;
void *_space[AL_N_INLINE];
} arraylist_t;
arraylist_t *arraylist_new(arraylist_t *a, size_t size);
void arraylist_free(arraylist_t *a);
void arraylist_push(arraylist_t *a, void *elt);
void *arraylist_pop(arraylist_t *a);
void arraylist_grow(arraylist_t *a, size_t n);
#ifdef __cplusplus
}
#endif
#endif