1-- Copyright 1994 Grady Booch 2-- Copyright 1998-2014 Simon Wright <simon@pushface.org> 3 4-- This package is free software; you can redistribute it and/or 5-- modify it under terms of the GNU General Public License as 6-- published by the Free Software Foundation; either version 2, or 7-- (at your option) any later version. This package is distributed in 8-- the hope that it will be useful, but WITHOUT ANY WARRANTY; without 9-- even the implied warranty of MERCHANTABILITY or FITNESS FOR A 10-- PARTICULAR PURPOSE. See the GNU General Public License for more 11-- details. You should have received a copy of the GNU General Public 12-- License distributed with this package; see file COPYING. If not, 13-- write to the Free Software Foundation, 59 Temple Place - Suite 14-- 330, Boston, MA 02111-1307, USA. 15 16-- Contains test support code. 17 18with Ada.Finalization; 19 20package Chunks is 21 22 pragma Elaborate_Body; 23 24 type Chunk is private; 25 type Chunk_Ptr is access all Chunk; 26 27 function "=" (L, R : Chunk) return Boolean; 28 29 function Priority (C : Chunk) return Natural; 30 31 function Image (C : Chunk) return String; 32 33private 34 35 type Chunk is new Ada.Finalization.Controlled with record 36 Number : Natural; 37 Count : Natural; 38 end record; 39 40 procedure Initialize (C : in out Chunk); 41 42 procedure Adjust (C : in out Chunk); 43 44end Chunks; 45