Browse Source

Added obj_size object attribute.

woollybah 9 years ago
parent
commit
b11349f1b2
3 changed files with 4 additions and 4 deletions
  1. 1 1
      blitz.mod/blitz_array.c
  2. 1 1
      blitz.mod/blitz_object.c
  3. 2 2
      blitz.mod/blitz_object.h

+ 1 - 1
blitz.mod/blitz_array.c

@@ -24,7 +24,7 @@ BBClass bbArrayClass={
 	bbObjectSendMessage,
 	bbObjectSendMessage,
 	0,          //interface
 	0,          //interface
 	0,          //extra
 	0,          //extra
-	0,
+	0,          //obj_size
 	
 	
 	bbArraySort,
 	bbArraySort,
 	bbArrayDimensions
 	bbArrayDimensions

+ 1 - 1
blitz.mod/blitz_object.c

@@ -25,7 +25,7 @@ BBClass bbObjectClass={
 	bbObjectSendMessage,
 	bbObjectSendMessage,
 	0,             //interface
 	0,             //interface
 	0,             //extra
 	0,             //extra
-	0,             //reserved
+	0,             //obj_size
 };
 };
 
 
 BBObject bbNullObject={
 BBObject bbNullObject={

+ 2 - 2
blitz.mod/blitz_object.h

@@ -19,7 +19,7 @@ struct BBClass{
 	
 	
 	BBDebugScope*debug_scope;
 	BBDebugScope*debug_scope;
 
 
-	int		instance_size;
+	unsigned int instance_size;
 
 
 	void		(*ctor)( BBObject *o );
 	void		(*ctor)( BBObject *o );
 	void		(*dtor)( BBObject *o );
 	void		(*dtor)( BBObject *o );
@@ -30,7 +30,7 @@ struct BBClass{
 
 
 	BBINTERFACETABLE itable;
 	BBINTERFACETABLE itable;
 	void*   extra;
 	void*   extra;
-	void*   reserved;
+	unsigned int obj_size;
 
 
 	void*	vfns[32];
 	void*	vfns[32];
 };
 };