home *** CD-ROM | disk | FTP | other *** search
/ Hacker / Hacker.iso / HACKER / DECOMP / DECAF / cplonint.adb < prev    next >
Encoding:
Text File  |  1996-09-19  |  1.4 KB  |  47 lines

  1. --
  2. -- Copyright (C) 1996 Ada Resource Association (ARA), Columbus, Ohio.
  3. -- Author: Gilles Demailly
  4. --
  5. --
  6. -- Permission to use, copy, modify, and distribute this software and its
  7. -- documentation for any purpose and without fee is hereby granted,
  8. -- provided that the above copyright and authorship notice appear in all
  9. -- copies and that both that copyright notice and this permission notice
  10. -- appear in supporting documentation.
  11. -- 
  12. -- The ARA makes no representations about the suitability of this software
  13. -- for any purpose.  It is provided "as is" without express
  14. -- or implied warranty.
  15. -- 
  16.  
  17. with Ada.Text_Io;
  18.  
  19. package body CP.Long_Integers is
  20.  
  21.    use Byte_Utilities;
  22.    
  23.    procedure Decode (From_File : Byte_Utilities.File_Type;
  24.                      Some_Info : access Long_Integers) is
  25.    begin
  26.       Some_Info.Tag := C_Class_Tag;
  27.  
  28.       -- Reads the Integer value
  29.       Read (From_File, Some_Info.Integer_Value);
  30.    end Decode;
  31.  
  32.    procedure Display (Some_Info : access Long_Integers;
  33.                       Context   : in Acc_CP_Infos) is
  34.    begin
  35.       -- displays the integer value
  36.       Ada.Text_Io.Put
  37.          (Integer_64'Image (Some_Info.Integer_Value));
  38.    end Display;
  39.    
  40.    function Use_Two_Indexes_In_Table
  41.                (Some_Info : access Long_Integers) return Boolean is
  42.    begin
  43.       return True;
  44.    end Use_Two_Indexes_In_Table;
  45.    
  46. end CP.Long_Integers;
  47.