небольшие правки с инклудами

This commit is contained in:
2025-04-15 00:02:43 +03:00
parent 8d236c99b8
commit a0c45a2df0
7 changed files with 43 additions and 21 deletions

View File

@@ -75,10 +75,9 @@ public class CombineFiles extends Transformation {
for (String line : file_lines) {
String header = Utils.extractHeaderName(line);
if (header != null) {
if (file.relativeHeaders.containsKey(header))
if (file.dependencies.contains(header))
result_lines.add(" include " + Utils_.Quotes(
Utils_.toU(
file.relativeHeaders.get(header).name)));
Utils_.toU(header)));
} else
result_lines.add(line);
}