comparison runtime/object.c @ 37:640f541e9116

Added support for type declarations on user defined workers and added a few more methods to Int32 in the runtime for the C backend
author Mike Pavone <pavone@retrodev.com>
date Mon, 05 Oct 2009 23:12:43 -0400
parents 495dddadd058
children 789a146a48e1 d2f9b0a9403d
comparison
equal deleted inserted replaced
36:495dddadd058 37:640f541e9116
158 { 158 {
159 ret->bprint = bp; 159 ret->bprint = bp;
160 rh_atomic_set(ret, refcount, 1); 160 rh_atomic_set(ret, refcount, 1);
161 memset(((char *)ret) + sizeof(object), '\0', bp->size); 161 memset(((char *)ret) + sizeof(object), '\0', bp->size);
162 bp->init(ret); 162 bp->init(ret);
163 } else {
164 fprintf(stderr, "Could not allocate new object with size %d\n", bp->boxed_size);
163 } 165 }
164 return ret; 166 return ret;
165 } 167 }
166 168
167 multisize * new_multisize(uint32_t type, uint32_t size) 169 multisize * new_multisize(uint32_t type, uint32_t size)