home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / vrac / adaada.zip / ADAADA.ZIP / SRC / CW_ADA / CW_COMP_.ADA < prev    next >
Text File  |  1994-10-12  |  2KB  |  61 lines

  1. -- Copyright (c) 1994 ARINC Research Corporation
  2. -- From material copyright (c) 1991, 1992 Premia Corporation
  3. --
  4. -- This material may be reproduced by or for the US Government pursuant 
  5. -- to the copyright license under DFAR Clause 252.227-7013 (1988)
  6. --
  7. -- Developed for US Air Force under contract no. F41608-90-D-0544-0005
  8. --
  9. -- MODIFICATIONS
  10. --   94/06 - J. Neuse, SD/OSE/EA  - Initial code
  11. --   94/10 - O. Sluder, SD/OSE/EA - Cleanup
  12.  
  13. with CW_TYPES;
  14. with SYSTEM;
  15.  
  16. -- *************
  17. -- *           *
  18. -- *  CW_COMP  *  BODY
  19. -- *           *
  20. -- *************
  21.  
  22. package body CW_COMP is
  23.  
  24.   -- The following pragmas are required by the Meridian OpenAda for
  25.   -- Windows 2.0 compiler in the package spec and body of code to be
  26.   -- included in a DLL, or an application calling the DLL will 
  27.   -- general protection fault
  28.   pragma SUPPRESS (elaboration_check);
  29.   pragma SUPPRESS (storage_check);
  30.  
  31.   -- ....................
  32.   -- .                  .
  33.   -- .  CompilerNewExt  .  BODY
  34.   -- .                  .
  35.   -- ....................
  36.  
  37.   function CompilerNewExt (ext : in STRING) return BOOLEAN is
  38.  
  39.     Pass_LPSTR  : CW_TYPES.LPSTR;
  40.     Return_Code : CW_TYPES.BOOL;
  41.  
  42.     -- .......................
  43.     -- .                     .
  44.     -- .  CW_CompilerNewExt  .  SPEC
  45.     -- .                     .
  46.     -- .......................
  47.  
  48.     function CW_CompilerNewExt (ext : in SYSTEM.ADDRESS) return CW_TYPES.BOOL;
  49.     pragma INTERFACE (windows, CW_CompilerNewExt, "CompilerNewExt");
  50.  
  51.   begin
  52.  
  53.     Pass_LPSTR  := new STRING'(ext & ascii.nul);
  54.     Return_Code :=
  55.       CW_CompilerNewExt (Pass_LPSTR.all (Pass_LPSTR.all'FIRST)'ADDRESS);
  56.     return TRUE;
  57.  
  58.   end CompilerNewExt;
  59.  
  60. end CW_COMP;
  61.