home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gnat-2.06-src.tgz / tar.out / fsf / gnat / ada / limits.ads < prev    next >
Text File  |  1996-09-28  |  3KB  |  45 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT COMPILER COMPONENTS                         --
  4. --                                                                          --
  5. --                               L I M I T S                                --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.15 $                             --
  10. --                                                                          --
  11. --        Copyright (c) 1992,1993,1994,1995 NYU, All Rights Reserved        --
  12. --                                                                          --
  13. -- GNAT is free software;  you can  redistribute it  and/or modify it under --
  14. -- terms of the  GNU General Public License as published  by the Free Soft- --
  15. -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
  16. -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
  17. -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
  18. -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
  19. -- for  more details.  You should have  received  a copy of the GNU General --
  20. -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
  21. -- to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. --
  22. --                                                                          --
  23. ------------------------------------------------------------------------------
  24.  
  25. --  This package defines various capacity limits and other limits in the
  26. --  system that affect the set of programs that is considered legal by GNAT.
  27.  
  28. package Limits is
  29.  
  30.    Max_Line_Length : constant := 512;
  31.    --  Maximum source line length. This can be set to any value up to
  32.    --  2**15 - 1, a limit imposed by the assumption that column numbers
  33.    --  can be stored in 16 bits (see Types.Column_Number).
  34.  
  35.    Max_Name_Length : constant := 1024;
  36.    --  Maximum length of unit name (including all dots, and " (spec)") and
  37.    --  of file names in the library, must be at least Max_Line_Length.
  38.  
  39.    Max_Instantiations : constant := 2000;
  40.    --  Maximum number of instantiations permitted (to stop runaway cases
  41.    --  of nested instantiations). These situations probably only occur in
  42.    --  specially concocted test cases.
  43.  
  44. end Limits;
  45.