Mercurial > repos > rhope
comparison runtime/object.c @ 139:a68e6828d896
Global stores and transactions are working. Definately leaks memory on retries. Probably a fair number of bugs to work out. However, a basic test program works.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 19 Nov 2010 04:04:14 -0500 |
parents | 04baa003de5a |
children | ba35ab624ec2 |
comparison
equal
deleted
inserted
replaced
138:1411de6050e1 | 139:a68e6828d896 |
---|---|
336 if(type >= max_registered_type) | 336 if(type >= max_registered_type) |
337 max_registered_type = type + 1; | 337 max_registered_type = type + 1; |
338 return registered_types[type]; | 338 return registered_types[type]; |
339 } | 339 } |
340 | 340 |
341 blueprint * register_type(int32_t size, special_func init, special_func copy, special_func cleanup) | |
342 { | |
343 return register_type_byid(max_registered_type, size, init, copy, cleanup); | |
344 } | |
345 | |
341 void add_method(blueprint * bp, uint32_t methodid, rhope_func impl) | 346 void add_method(blueprint * bp, uint32_t methodid, rhope_func impl) |
342 { | 347 { |
343 rhope_func * temp; | 348 rhope_func * temp; |
344 if(methodid < 1) { | 349 if(methodid < 1) { |
345 fputs("Attempt to add a method with an ID < 1\n", stderr); | 350 fputs("Attempt to add a method with an ID < 1\n", stderr); |