diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-11-13 07:55:05 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-11-13 07:55:05 +0100 |
commit | 9d9179a97c5c89781f9a2578273e1490c23a5c00 (patch) | |
tree | bd72d7d41e92ff0aea0e0d8b697417f6d1a41825 /src/synth/synth-files_operations.ads | |
parent | 57182dfe1306ba624e04bf97559c8fc3c3a9dcf8 (diff) | |
download | ghdl-9d9179a97c5c89781f9a2578273e1490c23a5c00.tar.gz ghdl-9d9179a97c5c89781f9a2578273e1490c23a5c00.tar.bz2 ghdl-9d9179a97c5c89781f9a2578273e1490c23a5c00.zip |
synth: add support for endfile.
Diffstat (limited to 'src/synth/synth-files_operations.ads')
-rw-r--r-- | src/synth/synth-files_operations.ads | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/synth/synth-files_operations.ads b/src/synth/synth-files_operations.ads index 81dee4a91..13852906e 100644 --- a/src/synth/synth-files_operations.ads +++ b/src/synth/synth-files_operations.ads @@ -20,10 +20,16 @@ with Vhdl.Nodes; use Vhdl.Nodes; +with Synth.Source; use Synth.Source; with Synth.Values; use Synth.Values; with Synth.Context; use Synth.Context; package Synth.Files_Operations is + -- Raised in case of un-recoverable error. + File_Execution_Error : exception; + function Elaborate_File_Declaration (Syn_Inst : Synth_Instance_Acc; Decl : Node) return File_Index; + + function Endfile (F : File_Index; Loc : Syn_Src) return Boolean; end Synth.Files_Operations; |