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 | 2aac034b614d6de39f4aee9f41dba8f2bcc63d8d (patch) | |
tree | c3a06709e36cccb576dddf81614c8cddfefffb9f /fltk-widgets-inputs.adb | |
parent | 0f28695be695a0b2e8fbfff388c61cb69cdc03af (diff) |
In the interests of readability and consistent style...
Diffstat (limited to 'fltk-widgets-inputs.adb')
-rw-r--r-- | fltk-widgets-inputs.adb | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/fltk-widgets-inputs.adb b/fltk-widgets-inputs.adb index 436ef36..e378684 100644 --- a/fltk-widgets-inputs.adb +++ b/fltk-widgets-inputs.adb @@ -9,18 +9,20 @@ package body FLTK.Widgets.Inputs is function new_fl_input - (X, Y, W, H : Interfaces.C.int; - L : Interfaces.C.char_array) + (X, Y, W, H : in Interfaces.C.int; + Label : in Interfaces.C.char_array) return System.Address; pragma Import (C, new_fl_input, "new_fl_input"); - procedure free_fl_input (F : in System.Address); + procedure free_fl_input + (F : in System.Address); pragma Import (C, free_fl_input, "free_fl_input"); - procedure Finalize (This : in out Input) is + procedure Finalize + (This : in out Input) is begin if (This.Void_Ptr /= System.Null_Address) then free_fl_input (This.Void_Ptr); @@ -30,8 +32,13 @@ package body FLTK.Widgets.Inputs is - function Create (X, Y, W, H : Integer; Label : String) return Input is + function Create + (X, Y, W, H : in Integer; + Label : in String) + return Input is + VP : System.Address; + begin VP := new_fl_input (Interfaces.C.int (X), |