mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Fixing typo and syntax
This commit is contained in:
parent
522ca55ed8
commit
4004831377
1 changed files with 4 additions and 6 deletions
|
@ -29,7 +29,7 @@ int main (int argc, char** argv) {
|
|||
std::string lastVarName;
|
||||
bool listVars = false;
|
||||
bool showParseTree = false;
|
||||
bool makeCplusplus = false;
|
||||
bool makeCPlusPlus = false;
|
||||
|
||||
TextTemplate::Config::Pointer config(new TextTemplate::Config());
|
||||
|
||||
|
@ -63,7 +63,7 @@ int main (int argc, char** argv) {
|
|||
showParseTree = true;
|
||||
mode = READY;
|
||||
} else if (inputs.back() == "-c++") {
|
||||
makeCplusplus = true;
|
||||
makeCPlusPlus = true;
|
||||
mode = READY;
|
||||
} else {
|
||||
// just grabbed the source filename, stop parameter parsing
|
||||
|
@ -135,8 +135,7 @@ int main (int argc, char** argv) {
|
|||
}
|
||||
}
|
||||
// no clean it to have just a descent c var name
|
||||
if (!targetName.empty())
|
||||
{
|
||||
if (!targetName.empty()) {
|
||||
// trim anything before '/' or '\'
|
||||
targetName = targetName.substr(targetName.find_last_of('/') + 1);
|
||||
targetName = targetName.substr(targetName.find_last_of('\\') + 1);
|
||||
|
@ -166,7 +165,6 @@ int main (int argc, char** argv) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
TextTemplate::Pointer scribe(new TextTemplate(srcFilename, config));
|
||||
|
||||
// ready to parse and generate
|
||||
|
@ -188,7 +186,7 @@ int main (int argc, char** argv) {
|
|||
}
|
||||
|
||||
std::ostringstream targetStringStream;
|
||||
if (makeCplusplus) {
|
||||
if (makeCPlusPlus) {
|
||||
targetStringStream << "// File generated by Scribe " << vars["_SCRIBE_DATE"] << std::endl;
|
||||
|
||||
targetStringStream << "#ifndef scribe_" << targetName << "_h" << std::endl;
|
||||
|
|
Loading…
Reference in a new issue