Sha256: 4981eec48679b6a93cdcee7baf68d76848efe1004e385e3eb941afd664ff14d4
Contents?: true
Size: 579 Bytes
Versions: 27
Compression:
Stored size: 579 Bytes
Contents
/* circarray.h * Copyright (c) 2012, Peter Ohler * All rights reserved. */ #ifndef OJ_CIRCARRAY_H #define OJ_CIRCARRAY_H #include "ruby.h" typedef struct _circArray { VALUE obj_array[1024]; VALUE *objs; unsigned long size; // allocated size or initial array size unsigned long cnt; } *CircArray; extern CircArray oj_circ_array_new(void); extern void oj_circ_array_free(CircArray ca); extern void oj_circ_array_set(CircArray ca, VALUE obj, unsigned long id); extern VALUE oj_circ_array_get(CircArray ca, unsigned long id); #endif /* OJ_CIRCARRAY_H */
Version data entries
27 entries across 27 versions & 2 rubygems