-- --
-- B o d y --
-- --
--- Copyright (C) 1998-2005 Ada Core Technologies, Inc. --
+-- Copyright (C) 1998-2007, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
--- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
--- MA 02111-1307, USA. --
+-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
+-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
with GNAT.Debug_Utilities; use GNAT.Debug_Utilities;
with GNAT.IO; use GNAT.IO;
-with Unchecked_Deallocation;
+with Ada.Unchecked_Deallocation;
package body GNAT.Spitbol is
package body Table is
procedure Free is new
- Unchecked_Deallocation (Hash_Element, Hash_Element_Ptr);
+ Ada.Unchecked_Deallocation (Hash_Element, Hash_Element_Ptr);
-----------------------
-- Local Subprograms --
-- Copy --
----------
- procedure Copy (From : in Table; To : in out Table) is
+ procedure Copy (From : Table; To : in out Table) is
Elmt : Hash_Element_Ptr;
begin
begin
for J in Str'Range loop
- Result := Rotate_Left (Result, 1) +
+ Result := Rotate_Left (Result, 3) +
Unsigned_32 (Character'Pos (Str (J)));
end loop;