fix defname '@' to '_'
git-svn-id: svn://db.shs.com.ru/pip@947 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Code model generator
|
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
|
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
|
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) {
|
void writeModel(PICodeParser & parser, PICLI & cli, const PIString out, bool meta, bool enums, bool streams, bool texts, bool getters) {
|
||||||
PIVector<const PICodeParser::Entity * > ventities;
|
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;
|
bool inc_h, inc_cpp;
|
||||||
inc_h = streams || texts;
|
inc_h = streams || texts;
|
||||||
inc_cpp = !inc_h && getters;
|
inc_cpp = !inc_h && getters;
|
||||||
|
|||||||
Reference in New Issue
Block a user