Skip to content

Commit dcce732

Browse files
committed
Files which is presumed to be in __include__ in square brackets.
1 parent 1d163c6 commit dcce732

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/codegen/c-main-generator.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void CiMainGenerator::Gen_MainHeader()
9090
fwriter->AppendLine(StrPrint("#define %s (%uU)", fdesc->verlow_def.c_str(), p_dlist->ver.low), 2);
9191

9292
fwriter->AppendLine("// include current dbc-driver compilation config");
93-
fwriter->AppendLine(StrPrint("#include \"%s-config.h\"", fdesc->drvname.c_str()), 2);
93+
fwriter->AppendLine(StrPrint("#include <%s-config.h>", fdesc->drvname.c_str()), 2);
9494

9595
fwriter->AppendLine(StrPrint("#ifdef %s", fdesc->usemon_def.c_str()));
9696

@@ -99,7 +99,7 @@ void CiMainGenerator::Gen_MainHeader()
9999
"// base monitor struct\n"
100100
"// function signature for HASH calculation: (@GetFrameHash)\n"
101101
"// function signature for getting system tick value: (@GetSystemTick)\n"
102-
"#include \"canmonitorutil.h\"\n"
102+
"#include <canmonitorutil.h>\n"
103103
"\n"
104104
);
105105

@@ -281,7 +281,7 @@ void CiMainGenerator::Gen_MainSource()
281281
"// Function prototypes to be called each time CAN frame is unpacked\n"
282282
"// FMon function may detect RC, CRC or DLC violation\n");
283283

284-
fwriter->AppendLine(StrPrint("#include \"%s-fmon.h\"", fdesc->drvname.c_str()), 2);
284+
fwriter->AppendLine(StrPrint("#include <%s-fmon.h>", fdesc->drvname.c_str()), 2);
285285

286286
fwriter->AppendLine(StrPrint("#endif // %s", fdesc->usemon_def.c_str()), 3);
287287

@@ -342,7 +342,7 @@ void CiMainGenerator::Gen_ConfigHeader()
342342
fwriter->AppendLine("#pragma once");
343343
fwriter->AppendLine("");
344344
fwriter->AppendLine("/* include common dbccode configurations */");
345-
fwriter->AppendLine("#include \"dbccodeconf.h\"");
345+
fwriter->AppendLine("#include <dbccodeconf.h>");
346346
fwriter->AppendLine("");
347347
fwriter->AppendLine("");
348348
fwriter->AppendLine("/* ------------------------------------------------------------------------- *");
@@ -496,7 +496,7 @@ void CiMainGenerator::Gen_FMonSource()
496496
fwriter->AppendLine("// " + std::regex_replace(fdesc->start_info, std::regex("\n"), "\n// "));
497497
}
498498

499-
fwriter->AppendLine(StrPrint("#include \"%s\"", fdesc->fmon_h.fname.c_str()), 2);
499+
fwriter->AppendLine(StrPrint("#include <%s>", fdesc->fmon_h.fname.c_str()), 2);
500500
// put diagmonitor ifdef selection for including @drv-fmon header
501501
// with FMon_* signatures to call from unpack function
502502
fwriter->AppendLine(StrPrint("#ifdef %s", fdesc->usemon_def.c_str()), 2);

src/codegen/c-util-generator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ void CiUtilGenerator::PrintHeader()
107107
tof->AppendLine(openguard.c_str(), 2);
108108

109109
// include common dbc code config header
110-
tof->AppendLine("#include \"dbccodeconf.h\"", 2);
110+
tof->AppendLine("#include <dbccodeconf.h>", 2);
111111

112112
// include c-main driver header
113-
tof->AppendLine(StrPrint("#include \"%s.h\"", file_drvname.c_str()), 2);
113+
tof->AppendLine(StrPrint("#include <%s.h>", file_drvname.c_str()), 2);
114114

115115

116116
if (rx.size() == 0)

0 commit comments

Comments
 (0)