From 87671a2f2423efacd0b0c4ad0c34c244680ef565 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 13 Oct 2024 02:00:32 +1300 Subject: Changed System.Address to Integer_Address --- src/fltk-images-bitmaps-xbm.adb | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/fltk-images-bitmaps-xbm.adb') diff --git a/src/fltk-images-bitmaps-xbm.adb b/src/fltk-images-bitmaps-xbm.adb index d8059ff..a7f632c 100644 --- a/src/fltk-images-bitmaps-xbm.adb +++ b/src/fltk-images-bitmaps-xbm.adb @@ -2,12 +2,7 @@ with - Interfaces.C, - System; - -use type - - System.Address; + Interfaces.C; package body FLTK.Images.Bitmaps.XBM is @@ -15,12 +10,12 @@ package body FLTK.Images.Bitmaps.XBM is function new_fl_xbm_image (F : in Interfaces.C.char_array) - return System.Address; + return Storage.Integer_Address; pragma Import (C, new_fl_xbm_image, "new_fl_xbm_image"); pragma Inline (new_fl_xbm_image); procedure free_fl_xbm_image - (P : in System.Address); + (P : in Storage.Integer_Address); pragma Import (C, free_fl_xbm_image, "free_fl_xbm_image"); pragma Inline (free_fl_xbm_image); @@ -30,11 +25,11 @@ package body FLTK.Images.Bitmaps.XBM is overriding procedure Finalize (This : in out XBM_Image) is begin - if This.Void_Ptr /= System.Null_Address and then + if This.Void_Ptr /= Null_Pointer and then This in XBM_Image'Class then free_fl_xbm_image (This.Void_Ptr); - This.Void_Ptr := System.Null_Address; + This.Void_Ptr := Null_Pointer; end if; Finalize (Bitmap (This)); end Finalize; -- cgit