Sfoglia il codice sorgente

Use unsigned int rather than int.

woollybah 9 anni fa
parent
commit
872e56b0dc

+ 2 - 2
appstub.mod/debugger.stdio.glue.c

@@ -7,7 +7,7 @@ BBString * bmx_debugger_DebugScopeName(struct BBDebugScope * scope) {
 	return bbStringFromCString(scope->name);
 }
 
-int bmx_debugger_DebugScopeKind(struct BBDebugScope * scope) {
+unsigned int bmx_debugger_DebugScopeKind(struct BBDebugScope * scope) {
 	return scope->kind;
 }
 
@@ -25,7 +25,7 @@ BBString * bmx_debugger_DebugDeclType(struct BBDebugDecl * decl) {
 	return bbStringFromCString(decl->type_tag);
 }
 
-int bmx_debugger_DebugDeclKind(struct BBDebugDecl * decl) {
+unsigned int bmx_debugger_DebugDeclKind(struct BBDebugDecl * decl) {
 	return decl->kind;
 }
 

+ 2 - 2
appstub.mod/debugger_mt.stdio.bmx

@@ -29,12 +29,12 @@ Extern
 	Function bbGCValidate:Int( mem:Byte Ptr ) = "bbGCValidate"
 
 	Function DebugScopeName:String( scope:Int Ptr )="bmx_debugger_DebugScopeName"
-	Function bmx_debugger_DebugScopeKind:Int( scope:Int Ptr )
+	Function bmx_debugger_DebugScopeKind:UInt( scope:Int Ptr )
 	Function bmx_debugger_DebugScopeDecl:Byte Ptr( scope:Int Ptr )
 
 	Function DebugDeclName:String( decl:Int Ptr )="bmx_debugger_DebugDeclName"
 	Function bmx_debugger_DebugDeclType:String( decl:Int Ptr )
-	Function bmx_debugger_DebugDeclKind:Int( decl:Int Ptr )
+	Function bmx_debugger_DebugDeclKind:UInt( decl:Int Ptr )
 	Function bmx_debugger_DebugDeclNext:Byte Ptr( decl:Int Ptr )
 	Function bmx_debugger_DebugDecl_VarAddress:Byte Ptr( decl:Int Ptr )
 	Function bmx_debugger_DebugDecl_ConstValue:String( decl:Int Ptr )

+ 6 - 6
blitz.mod/blitz_debug.h

@@ -31,12 +31,12 @@ enum{
 };
 
 struct BBDebugDecl{
-	int 			kind;
-	const char		*name,*type_tag;
+	unsigned int     kind;
+	const char       *name,*type_tag;
 	union{
-		BBString*	const_value;
-		int			field_offset;
-		void*		var_address;
+		BBString*    const_value;
+		unsigned int field_offset;
+		void*        var_address;
 	};
 };
 
@@ -48,7 +48,7 @@ enum{
 };
 
 struct BBDebugScope{
-	int				kind;
+	unsigned int	kind;
 	const char		*name;
 	BBDebugDecl		decls[1];
 };