Compare commits

2 Commits

Author SHA1 Message Date
Andrey
a1c1fd8339 Merge branch 'master' of https://git.shs.tools/SHS/pip 2021-10-08 15:16:19 +03:00
Andrey
01b39dc75f pip_cmg fix macros name 2021-10-08 15:16:08 +03:00

View File

@@ -351,17 +351,7 @@ void makeGetterValue(PIFile & f, const PICodeParser::Entity * e) {
void writeModel(PICodeParser & parser, PICLI & cli, const PIString out, bool meta, bool enums, bool streams, bool texts, bool getters) { void writeModel(PICodeParser & parser, PICLI & cli, const PIString out, bool meta, bool enums, bool streams, bool texts, bool getters) {
PIVector<const PICodeParser::Entity * > ventities; PIString defname = "CCM_" + PIString::fromNumber(out.hash()) + "_H";
PIString defname = out
.replacedAll('.', '_')
.replaceAll('/', '_')
.replaceAll(':', '_')
.replaceAll('-', '_')
.replaceAll('@', '_')
.replaceAll('\\', '_')
.removeAll(' ')
.toUpperCase()
+ "_H";
PISet<PIString> inc_files; PISet<PIString> inc_files;
piForeachC (PICodeParser::Entity * e, parser.entities) piForeachC (PICodeParser::Entity * e, parser.entities)
if (e->name.find("::") < 0 && !e->name.startsWith("_PI")) if (e->name.find("::") < 0 && !e->name.startsWith("_PI"))