pck.ads 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. -- Copyright 2021-2022 Free Software Foundation, Inc.
  2. --
  3. -- This program is free software; you can redistribute it and/or modify
  4. -- it under the terms of the GNU General Public License as published by
  5. -- the Free Software Foundation; either version 3 of the License, or
  6. -- (at your option) any later version.
  7. --
  8. -- This program is distributed in the hope that it will be useful,
  9. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. -- GNU General Public License for more details.
  12. --
  13. -- You should have received a copy of the GNU General Public License
  14. -- along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. with System;
  16. with Gl; use Gl;
  17. package Pck is
  18. subtype My_Length is Natural range 1 .. Length;
  19. type My_Array is array (My_Length) of Natural;
  20. N_A : Integer := 2;
  21. N_T : Integer := 2;
  22. type Arr is array (Positive range <>) of Integer;
  23. type Inner is
  24. record
  25. A1 : Arr (1 .. N_A);
  26. A2 : Arr (1 .. N_A);
  27. end record;
  28. type Inner_Arr is array (Positive range <>) of Inner;
  29. type Outer is
  30. record
  31. A : Inner_Arr (1 .. N_T);
  32. end record;
  33. procedure Do_Nothing (A : System.Address);
  34. end Pck;