fix defname '@' to '_'

git-svn-id: svn://db.shs.com.ru/pip@947 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2020-03-12 14:08:18 +00:00
parent 85115b2ebc
commit ea9b50e6df

View File

@@ -1,7 +1,7 @@
/*
PIP - Platform Independent Primitives
Code model generator
Copyright (C) 2019 Ivan Pelipenko peri4ko@yandex.ru
Copyright (C) 2020 Ivan Pelipenko peri4ko@yandex.ru
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -324,7 +324,16 @@ 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) {
PIVector<const PICodeParser::Entity * > ventities;
PIString defname = out.replaceAll(".", "_").replaceAll("/", "_").replaceAll(":", "_").replaceAll("-", "_").removeAll(" ").toUpperCase() + "_H";
PIString defname = out
.replaceAll(".", "_")
.replaceAll("/", "_")
.replaceAll(":", "_")
.replaceAll("-", "_")
.replaceAll("@", "_")
.replaceAll("\\", "_")
.removeAll(" ")
.toUpperCase()
+ "_H";
bool inc_h, inc_cpp;
inc_h = streams || texts;
inc_cpp = !inc_h && getters;