diff runtime/object.c @ 56:d2f9b0a9403d

Initial experiment with goto and switch
author Mike Pavone <pavone@retrodev.com>
date Thu, 08 Oct 2009 01:52:38 -0400
parents 640f541e9116
children b218af069da7
line wrap: on
line diff
--- a/runtime/object.c	Tue Oct 06 23:13:47 2009 -0400
+++ b/runtime/object.c	Thu Oct 08 01:52:38 2009 -0400
@@ -8,6 +8,7 @@
 uint32_t max_registered_type = 0;
 uint32_t type_storage = 0;
 
+/*
 returntype call_method(uint32_t methodid, calldata * params)
 {
 	int i;
@@ -121,7 +122,7 @@
 		release_ref(params->params[i]);
 	params->params[0] = new_object(TYPE_WRONGTYPEEXCEPTION);
 	return EXCEPTION_RETURN;
-}
+}*/
 
 object * alloc_object(blueprint * bp)
 {
@@ -275,6 +276,7 @@
 		bp->size = size;
 		bp->boxed_size = size >= 0 ? size + sizeof(object) : size;
 		bp->method_lookup = bp->getter_lookup = bp->setter_lookup = bp->convert_to = bp->convert_from = NULL;
+		bp->type_id = type;
 		bp->init = init ? init : default_action;
 		bp->copy = copy ? copy : default_action;
 		bp->cleanup = cleanup ? cleanup : default_action;