-- This program is the last attempt of artificial intelligency with Ada.
-- Elhoim is Copyright (C) 2023 Manuel ; 
--
--   This program is free software; you can redistribute it and/or modify
--   it under the terms of the GNU General Public License as published by
--   the Free Software Foundation; either version 2 of the License, or
--   (at your option) any later version.
--
--   This program is distributed in the hope that it will be useful,
--   but WITHOUT ANY WARRANTY; without even the implied warranty of
--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--   GNU General Public License for more details.
--
--   You should have received a copy of the GNU General Public License
--   along with this program; if not, write to the Free Software
--   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
--
-- Date := "2023-05-01 20:03:01"
-- Version := "1.0.0a"
with Lib.Result;
with Lib.Outils;
with Lib.Operat;
with Lib.Shared;
with Ada.Text_Io;
with Ada.Directories;
with Ada.Characters.Handling;
use Ada.Characters.Handling;
with Ada.Strings.Fixed;
use Ada.Strings;
with Ada.Calendar.Formatting;
use Ada.Calendar;
use Ada;
with Gnat.Strings;
use Gnat.Strings;
with Gnat.Os_Lib;
use Gnat;

with Gnat.Directory_Operations;
use Gnat;

with Lib.Strings;
use Lib.Strings;

generic
   Objects_Max : Natural := 4095;
package Lib.Compil is
   
   
   Path : constant String := Directory_Operations.Get_Current_Dir;
      
   
   Specifications_Filenames_Search  : Result.Spawn_Result_Record;
   
   
   
   Implementations_Filenames_Search : Result.Spawn_Result_Record;
   
   
   procedure Initialize;
   
   
   procedure Replace_description (Var_Name : in String; Value : in String; Node : in String);
   procedure Main_Description (Var_Name : in String; Value : in String; Node : in String);
   
   procedure Set_Start_Time(Date : in Calendar.Time := Calendar.Clock);
   function Check_Modification_To_New_Description return Boolean;
   function Check_Modification_To_New_Action return Boolean;
   
   procedure update (Filename : in String; Var_Name : in String; Value : in String);
   

   procedure To_Major;
   procedure To_Minor;
   procedure To_Revision;
   procedure To_Release;
   procedure Version_Update(Version : in out Version_Record; Errno : out Integer);   
end Lib.Compil ;