Sha256: 80be528e823b450e237b6559f70840862e6d87c32201ba5d75a444dd33675f36
Contents?: true
Size: 679 Bytes
Versions: 37
Compression:
Stored size: 679 Bytes
Contents
// Copyright (c) 2012 Peter Ohler. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for // license details. #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
37 entries across 37 versions & 2 rubygems