diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-05-26 04:35:58 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-05-26 04:35:58 +1000 |
commit | 2b4468a62a55d9f8520582f9aa2e420ab89ed7bd (patch) | |
tree | 6a112a0f3db36b622a71bccf9a2b7dc0130e6e2e /src/fltk_binding/fltk-widgets-boxes.adb | |
parent | 524edbb4463b66d61e92c92a7020d9d09b82e744 (diff) |
In the interests of readability and consistent style...
Diffstat (limited to 'src/fltk_binding/fltk-widgets-boxes.adb')
-rw-r--r-- | src/fltk_binding/fltk-widgets-boxes.adb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fltk_binding/fltk-widgets-boxes.adb b/src/fltk_binding/fltk-widgets-boxes.adb index a176c30..8f1f759 100644 --- a/src/fltk_binding/fltk-widgets-boxes.adb +++ b/src/fltk_binding/fltk-widgets-boxes.adb @@ -10,17 +10,19 @@ package body FLTK.Widgets.Boxes is function new_fl_box (X, Y, W, H : in Interfaces.C.int; - L : in Interfaces.C.char_array) + Label : in Interfaces.C.char_array) return System.Address; pragma Import (C, new_fl_box, "new_fl_box"); - procedure free_fl_box (B : in System.Address); + procedure free_fl_box + (B : in System.Address); pragma Import (C, free_fl_box, "free_fl_box"); - procedure Finalize (This : in out Box) is + procedure Finalize + (This : in out Box) is begin if (This.Void_Ptr /= System.Null_Address) then free_fl_box (This.Void_Ptr); @@ -31,14 +33,13 @@ package body FLTK.Widgets.Boxes is function Create - (X, Y, W, H : Integer; - Label : String) + (X, Y, W, H : in Integer; + Label : in String) return Box is VP : System.Address; begin - VP := new_fl_box (Interfaces.C.int (X), Interfaces.C.int (Y), @@ -46,7 +47,6 @@ package body FLTK.Widgets.Boxes is Interfaces.C.int (H), Interfaces.C.To_C (Label)); return (Ada.Finalization.Limited_Controlled with Void_Ptr => VP); - end Create; |