|
@@ -4,7 +4,7 @@
|
|
|
#define REG_GROW 256
|
|
|
|
|
|
static BBClass **reg_base,**reg_put,**reg_end;
|
|
|
-static BBClass **ireg_base,**ireg_put,**ireg_end;
|
|
|
+static BBInterface **ireg_base,**ireg_put,**ireg_end;
|
|
|
|
|
|
static BBDebugScope debugScope={
|
|
|
BBDEBUGSCOPE_USERTYPE,
|
|
@@ -108,7 +108,7 @@ BBObject *bbObjectStringcast( BBObject *o ){
|
|
|
if (o->clas == &bbStringClass) {
|
|
|
return o;
|
|
|
} else {
|
|
|
- return &bbEmptyString;
|
|
|
+ return (BBObject *)&bbEmptyString;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -116,14 +116,14 @@ BBObject *bbObjectArraycast( BBObject *o ){
|
|
|
if (o->clas == &bbArrayClass) {
|
|
|
return o;
|
|
|
} else {
|
|
|
- return &bbEmptyArray;
|
|
|
+ return (BBObject *)&bbEmptyArray;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
BBObject *bbObjectDowncast( BBObject *o,BBClass *t ){
|
|
|
BBClass *p=o->clas;
|
|
|
while( p && p!=t ) p=p->super;
|
|
|
- return p ? o : (t==&bbStringClass) ? &bbEmptyString : (t==&bbArrayClass) ? &bbEmptyArray : &bbNullObject;
|
|
|
+ return p ? o : (t==&bbStringClass) ? (BBObject *)&bbEmptyString : (t==&bbArrayClass) ? (BBObject *)&bbEmptyArray : &bbNullObject;
|
|
|
}
|
|
|
|
|
|
void bbObjectRegisterType( BBClass *clas ){
|
|
@@ -234,7 +234,7 @@ BBDebugScope * bbObjectStructInfo( char * name ) {
|
|
|
scope.name = name;
|
|
|
node.scope = &scope;
|
|
|
|
|
|
- struct struct_node * found = (struct struct_node *)tree_search(&node, struct_node_compare, struct_root);
|
|
|
+ struct struct_node * found = (struct struct_node *)tree_search((struct tree_root_np *)&node, struct_node_compare, (struct tree_root_np *)struct_root);
|
|
|
|
|
|
if (found) {
|
|
|
return found->scope;
|
|
@@ -278,7 +278,7 @@ BBDebugScope * bbObjectEnumInfo( char * name ) {
|
|
|
scope.name = name;
|
|
|
node.scope = &scope;
|
|
|
|
|
|
- struct enum_node * found = (struct enum_node *)tree_search(&node, enum_node_compare, enum_root);
|
|
|
+ struct enum_node * found = (struct enum_node *)tree_search((struct tree_root_np *)&node, enum_node_compare, (struct tree_root_np *)enum_root);
|
|
|
|
|
|
if (found) {
|
|
|
return found->scope;
|