Mercurial > repos > rhope
diff runtime/array.h @ 49:3e20ed8959c4
Added initial FFI implementation, Array type and 64-bit integers
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 08 Apr 2010 01:02:18 -0400 |
parents | d61550e2c001 |
children | 5a08705f7610 |
line wrap: on
line diff
--- a/runtime/array.h Tue Mar 02 00:18:49 2010 -0500 +++ b/runtime/array.h Thu Apr 08 01:02:18 2010 -0400 @@ -3,12 +3,14 @@ #include "object.h" #include "func.h" -#include "builtin.h" +#include "builtin.h" -MOBegin - blueprint *contents_type; - int32 numels; -Object(Array) +void _internal_array_copyout(object * array, int32_t index, object * dest); +void _internal_array_copyin(object * array, int32_t index, object * val); +object * _internal_array_getboxed(object * array, int32_t index); +void _internal_array_setboxed(object *, int32_t index, object * val); +object *_internal_array_allocboxed(int32_t size); +object * _internal_array_allocnaked(int32_t size , object * type); -#endif //_ARRAY_H_ \ No newline at end of file +#endif //_ARRAY_H_