projects
/
ncurses.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ncurses 6.2 - patch 20200627
[ncurses.git]
/
Ada95
/
src
/
terminal_interface-curses-forms-field_user_data.adb
diff --git
a/Ada95/src/terminal_interface-curses-forms-field_user_data.adb
b/Ada95/src/terminal_interface-curses-forms-field_user_data.adb
index 96178d8a9349598cb5cf334d910dcef1b40ee16a..8b947d514037db45c3a5624e12e9a86ba413054a 100644
(file)
--- a/
Ada95/src/terminal_interface-curses-forms-field_user_data.adb
+++ b/
Ada95/src/terminal_interface-curses-forms-field_user_data.adb
@@
-7,7
+7,8
@@
-- B O D Y --
-- --
------------------------------------------------------------------------------
-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright (c) 1998-2003,2009 Free Software Foundation, Inc. --
+-- Copyright 2018,2020 Thomas E. Dickey --
+-- Copyright 1999-2009,2014 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
-- copy of this software and associated documentation files (the --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
-- copy of this software and associated documentation files (the --
@@
-35,7
+36,7
@@
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control:
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control:
--- $Revision: 1.1
3
$
+-- $Revision: 1.1
7
$
-- Binding Version 01.00
------------------------------------------------------------------------------
with Terminal_Interface.Curses.Aux; use Terminal_Interface.Curses.Aux;
-- Binding Version 01.00
------------------------------------------------------------------------------
with Terminal_Interface.Curses.Aux; use Terminal_Interface.Curses.Aux;
@@
-49,20
+50,15
@@
package body Terminal_Interface.Curses.Forms.Field_User_Data is
-- |
-- |
-- |
-- |
-- |
-- |
- use type Interfaces.C.int;
-
procedure Set_User_Data (Fld : Field;
Data : User_Access)
is
function Set_Field_Userptr (Fld : Field;
procedure Set_User_Data (Fld : Field;
Data : User_Access)
is
function Set_Field_Userptr (Fld : Field;
- Usr : User_Access) return
C_Int
;
+ Usr : User_Access) return
Eti_Error
;
pragma Import (C, Set_Field_Userptr, "set_field_userptr");
pragma Import (C, Set_Field_Userptr, "set_field_userptr");
- Res : constant Eti_Error := Set_Field_Userptr (Fld, Data);
begin
begin
- if Res /= E_Ok then
- Eti_Exception (Res);
- end if;
+ Eti_Exception (Set_Field_Userptr (Fld, Data));
end Set_User_Data;
-- |
-- |
end Set_User_Data;
-- |
-- |