X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=doc%2Fhtml%2Fada%2Fterminal_interface-curses-aux__adb.htm;h=b2e86ce8021891e129ea4d460c0380663ebe864d;hb=29ee95cea37c4bbf2014a35677d9a0750c6b52a8;hp=f931ca618d1a3d8d610a0fdb4bd750fff5ed911c;hpb=b1f61d9f3aa244512045a6b02e759825d7049d34;p=ncurses.git
diff --git a/doc/html/ada/terminal_interface-curses-aux__adb.htm b/doc/html/ada/terminal_interface-curses-aux__adb.htm
index f931ca61..b2e86ce8 100644
--- a/doc/html/ada/terminal_interface-curses-aux__adb.htm
+++ b/doc/html/ada/terminal_interface-curses-aux__adb.htm
@@ -1,3 +1,4 @@
+
terminal_interface-curses-aux.adb
File : terminal_interface-curses-aux.adb
@@ -11,7 +12,7 @@
-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright (c) 1998 Free Software Foundation, Inc. --
+-- Copyright (c) 1998-2003,2009 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 --
@@ -37,85 +38,85 @@
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
------------------------------------------------------------------------------
--- Author: Jürgen Pfeifer <<juergen.pfeifer@gmx.net>> 1996
+-- Author: Juergen Pfeifer, 1996
-- Version Control:
--- @Revision: 1.8 @
+-- @Revision: 1.11 @
-- Binding Version 01.00
------------------------------------------------------------------------------
-package body Terminal_Interface.Curses.Aux is
+package body Terminal_Interface.Curses.Aux is
--
-- Some helpers
- procedure Fill_String (Cp : in chars_ptr;
- Str : out String)
+ procedure Fill_String (Cp : chars_ptr;
+ Str : out String)
is
-- Fill the string with the characters referenced by the
-- chars_ptr.
--
- Len : Natural;
+ Len : Natural;
begin
- if Cp /= Null_Ptr then
- Len := Natural (Strlen (Cp));
- if Str'Length < Len then
+ if Cp /= Null_Ptr then
+ Len := Natural (Strlen (Cp));
+ if Str'Length < Len then
raise Constraint_Error;
end if;
declare
- S : String (1 .. Len);
+ S : String (1 .. Len);
begin
- S := Value (Cp);
- Str (Str'First .. (Str'First + Len - 1)) := S (S'Range);
+ S := Value (Cp);
+ Str (Str'First .. (Str'First + Len - 1)) := S (S'Range);
end;
else
- Len := 0;
+ Len := 0;
end if;
- if Len < Str'Length then
- Str ((Str'First + Len) .. Str'Last) := (others => ' ');
+ if Len < Str'Length then
+ Str ((Str'First + Len) .. Str'Last) := (others => ' ');
end if;
- end Fill_String;
+ end Fill_String;
- function Fill_String (Cp : chars_ptr) return String
+ function Fill_String (Cp : chars_ptr) return String
is
- Len : Natural;
+ Len : Natural;
begin
- if Cp /= Null_Ptr then
- Len := Natural (Strlen (Cp));
- if Len = 0 then
+ if Cp /= Null_Ptr then
+ Len := Natural (Strlen (Cp));
+ if Len = 0 then
return "";
else
declare
- S : String (1 .. Len);
+ S : String (1 .. Len);
begin
- Fill_String (Cp, S);
- return S;
+ Fill_String (Cp, S);
+ return S;
end;
end if;
else
return "";
end if;
- end Fill_String;
+ end Fill_String;
- procedure Eti_Exception (Code : Eti_Error)
+ procedure Eti_Exception (Code : Eti_Error)
is
begin
- case Code is
- when E_Ok => null;
- when E_System_Error => raise Eti_System_Error;
- when E_Bad_Argument => raise Eti_Bad_Argument;
- when E_Posted => raise Eti_Posted;
- when E_Connected => raise Eti_Connected;
- when E_Bad_State => raise Eti_Bad_State;
- when E_No_Room => raise Eti_No_Room;
- when E_Not_Posted => raise Eti_Not_Posted;
- when E_Unknown_Command => raise Eti_Unknown_Command;
- when E_No_Match => raise Eti_No_Match;
- when E_Not_Selectable => raise Eti_Not_Selectable;
- when E_Not_Connected => raise Eti_Not_Connected;
- when E_Request_Denied => raise Eti_Request_Denied;
- when E_Invalid_Field => raise Eti_Invalid_Field;
- when E_Current => raise Eti_Current;
+ case Code is
+ when E_Ok => null;
+ when E_System_Error => raise Eti_System_Error;
+ when E_Bad_Argument => raise Eti_Bad_Argument;
+ when E_Posted => raise Eti_Posted;
+ when E_Connected => raise Eti_Connected;
+ when E_Bad_State => raise Eti_Bad_State;
+ when E_No_Room => raise Eti_No_Room;
+ when E_Not_Posted => raise Eti_Not_Posted;
+ when E_Unknown_Command => raise Eti_Unknown_Command;
+ when E_No_Match => raise Eti_No_Match;
+ when E_Not_Selectable => raise Eti_Not_Selectable;
+ when E_Not_Connected => raise Eti_Not_Connected;
+ when E_Request_Denied => raise Eti_Request_Denied;
+ when E_Invalid_Field => raise Eti_Invalid_Field;
+ when E_Current => raise Eti_Current;
end case;
- end Eti_Exception;
+ end Eti_Exception;
-end Terminal_Interface.Curses.Aux;
-
\ No newline at end of file
+end Terminal_Interface.Curses.Aux;
+