aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/elab-vhdl_files.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-06-01 08:27:43 +0200
committerTristan Gingold <tgingold@free.fr>2022-06-01 08:27:43 +0200
commit696ac56744d9ec0177ea75fb166baf622fb905dd (patch)
tree97f8fa33c2486f796157acf1ff6b73b17570b902 /src/synth/elab-vhdl_files.adb
parentd973dea41f3d5c7f9484657ba252296847894c20 (diff)
downloadghdl-696ac56744d9ec0177ea75fb166baf622fb905dd.tar.gz
ghdl-696ac56744d9ec0177ea75fb166baf622fb905dd.tar.bz2
ghdl-696ac56744d9ec0177ea75fb166baf622fb905dd.zip
synth: handle file flush procedure
Diffstat (limited to 'src/synth/elab-vhdl_files.adb')
-rw-r--r--src/synth/elab-vhdl_files.adb14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/synth/elab-vhdl_files.adb b/src/synth/elab-vhdl_files.adb
index 12afedd91..c2a8dc35f 100644
--- a/src/synth/elab-vhdl_files.adb
+++ b/src/synth/elab-vhdl_files.adb
@@ -395,6 +395,20 @@ package body Elab.Vhdl_Files is
end if;
end Synth_File_Close;
+ procedure Synth_File_Flush
+ (Syn_Inst : Synth_Instance_Acc; Imp : Node; Loc : Node)
+ is
+ Inters : constant Node := Get_Interface_Declaration_Chain (Imp);
+ F : constant File_Index := Get_Value (Syn_Inst, Inters).Val.File;
+ Status : Op_Status;
+ begin
+ Ghdl_File_Flush (F, Status);
+
+ if Status /= Op_Ok then
+ File_Error (Loc, Status);
+ end if;
+ end Synth_File_Flush;
+
-- Declaration:
-- procedure untruncated_text_read --!V87
-- (file f : text; str : out string; len : out natural); --!V87