This commit is contained in:
Ivan Bondarev 2023-07-02 11:17:06 +02:00
parent 3db341eb92
commit 35381d6778
4 changed files with 20 additions and 1 deletions

View file

@ -565,7 +565,12 @@ namespace PascalABCCompiler.PCU
pcu_file.SourceFileName = br.ReadString();
else
pcu_file.SourceFileName = Path.GetFileNameWithoutExtension(FileName);
int num_names = br.ReadInt32();
if (Path.GetDirectoryName(pcu_file.SourceFileName) == "")
cur_doc = new document(Path.Combine(Path.GetDirectoryName(FileName), pcu_file.SourceFileName));
else
cur_doc = new document(pcu_file.SourceFileName);
int num_names = br.ReadInt32();
pcu_file.names = new NameRef[num_names];
for (int i=0; i<num_names; i++)
{

View file

@ -0,0 +1,6 @@
//!Файл 'non_existing_file' не найден
unit err0524_res_unit;
{$resource non_existing_file}
end.

View file

@ -0,0 +1,4 @@
uses err0524_res_unit;
begin
end.

View file

@ -0,0 +1,4 @@
uses err0524_res_unit;
begin
end.