pip_cmg fix macros name
This commit is contained in:
@@ -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"))
|
||||||
|
|||||||
Reference in New Issue
Block a user