Mercurial > repos > rhope
comparison 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 |
comparison
equal
deleted
inserted
replaced
48:a24eb366195c | 49:3e20ed8959c4 |
---|---|
1 #ifndef _ARRAY_H_ | 1 #ifndef _ARRAY_H_ |
2 #define _ARRAH_H_ | 2 #define _ARRAH_H_ |
3 | 3 |
4 #include "object.h" | 4 #include "object.h" |
5 #include "func.h" | 5 #include "func.h" |
6 #include "builtin.h" | 6 #include "builtin.h" |
7 | 7 |
8 MOBegin | 8 void _internal_array_copyout(object * array, int32_t index, object * dest); |
9 blueprint *contents_type; | 9 void _internal_array_copyin(object * array, int32_t index, object * val); |
10 int32 numels; | 10 object * _internal_array_getboxed(object * array, int32_t index); |
11 Object(Array) | 11 void _internal_array_setboxed(object *, int32_t index, object * val); |
12 object *_internal_array_allocboxed(int32_t size); | |
13 object * _internal_array_allocnaked(int32_t size , object * type); | |
12 | 14 |
13 | 15 |
14 #endif //_ARRAY_H_ | 16 #endif //_ARRAY_H_ |