diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-12-30 10:29:16 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-12-30 10:29:16 +0100 |
commit | f1c30ad16e0914455ee2c84e80714f6b271021f2 (patch) | |
tree | 11ebb7a91faeed8c17fdaf84cd8cd14d334d8c6a /src/libraries.ads | |
parent | 56dde6c446367f85882d288d7606015ace7f80ed (diff) | |
download | ghdl-f1c30ad16e0914455ee2c84e80714f6b271021f2.tar.gz ghdl-f1c30ad16e0914455ee2c84e80714f6b271021f2.tar.bz2 ghdl-f1c30ad16e0914455ee2c84e80714f6b271021f2.zip |
Rework initialization and finalization.
libghdl can now be re-initialized.
Diffstat (limited to 'src/libraries.ads')
-rw-r--r-- | src/libraries.ads | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libraries.ads b/src/libraries.ads index 8e9967ff1..a4028cdad 100644 --- a/src/libraries.ads +++ b/src/libraries.ads @@ -17,7 +17,6 @@ -- 02111-1307, USA. with Types; use Types; with Vhdl.Nodes; use Vhdl.Nodes; -with Std_Names; package Libraries is -- This package defines the library manager. @@ -41,7 +40,7 @@ package Libraries is -- Library declaration for the std library. -- This is also the first library of the libraries chain. - Std_Library : Iir_Library_Declaration := Null_Iir; + Std_Library : Iir_Library_Declaration; -- Library declaration for the work library. -- Note: the identifier of the work_library is work_library_name, which @@ -49,7 +48,7 @@ package Libraries is Work_Library: Iir_Library_Declaration; -- Name of the WORK library. - Work_Library_Name : Name_Id := Std_Names.Name_Work; + Work_Library_Name : Name_Id; -- Directory of the work library. -- Set by default by INIT_PATHS to the local directory. @@ -67,7 +66,10 @@ package Libraries is -- Initialize library paths table. -- Set the local path. - procedure Init_Paths; + procedure Initialize; + + -- Free memory + procedure Finalize; -- Add PATH in the search path. procedure Add_Library_Path (Path : String); |