From kde-commits Sun Nov 29 17:14:00 2009 From: John Layt Date: Sun, 29 Nov 2009 17:14:00 +0000 To: kde-commits Subject: KDE/kdelibs/kjs Message-Id: <1259514840.224148.5490.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125951484919537 SVN commit 1056224 by jlayt: krazy fixes M +1 -1 bytecode/generator/driver.cpp M +2 -2 bytecode/generator/parser.cpp M +1 -1 bytecode/generator/tablebuilder.cpp M +6 -4 bytecode/generator/types.cpp M +1 -1 debugger.h M +1 -1 internal.cpp M +1 -1 nodes.h --- trunk/KDE/kdelibs/kjs/bytecode/generator/driver.cpp #1056223:1056224 @@ -30,7 +30,7 @@ std::cerr << "Usage: icemaker \n"; } - std::string path = std::string(argv[1]) + "/"; + std::string path = std::string(argv[1]) + "/"; // krazy:exclude=doublequote_chars ifstream def; def.open((path + "codes.def").c_str()); --- trunk/KDE/kdelibs/kjs/bytecode/generator/parser.cpp #1056223:1056224 @@ -174,13 +174,13 @@ string nativeName = matchIdentifier(); if (nativeName == "const") - nativeName += " " + matchIdentifier(); + nativeName += " " + matchIdentifier(); // krazy:exclude=doublequote_chars while (check(Lexer::Scope)) nativeName += "::" + matchIdentifier(); if (check(Lexer::Star)) - nativeName += "*"; + nativeName += "*"; // krazy:exclude=doublequote_chars const Flag typeFlags[] = { {"immediate", Type_HaveImm}, --- trunk/KDE/kdelibs/kjs/bytecode/generator/tablebuilder.cpp #1056223:1056224 @@ -276,7 +276,7 @@ string sig = op.name; for (unsigned p = 0; p < numParams; ++p) { - sig += "_"; + sig += "_"; // krazy:exclude=doublequote_chars sig += paramIsIm[p] ? "I" : "R"; sig += op.opParamTypes[p].name; } --- trunk/KDE/kdelibs/kjs/bytecode/generator/types.cpp #1056223:1056224 @@ -20,6 +20,9 @@ * Boston, MA 02110-1301, USA. * */ + +#include "types.h" + #include #include #include "assert.h" @@ -27,7 +30,6 @@ #include #include -#include "types.h" #include "tablebuilder.h" using namespace std; @@ -170,7 +172,7 @@ item += "Cost_Checked"; else item += CodePrinter::stringFromInt(reg ? inf.cost : 0); - item += "}"; + item += "}"; // krazy:exclude=doublequote_chars } else { item = "{Conv_NoConversion, Cost_NoConversion}"; } @@ -213,8 +215,8 @@ int tileCost, int registerCost) { // Compute the conversion names. The register one (if any) would also create an operation. - string immName = "I" + capitalized(from) + "_" + capitalized(to); - string regName = "R" + capitalized(from) + "_" + capitalized(to); + string immName = "I" + capitalized(from) + "_" + capitalized(to); // krazy:exclude=doublequote_chars + string regName = "R" + capitalized(from) + "_" + capitalized(to); // krazy:exclude=doublequote_chars // Register immediate conversion conversionNames.push_back(immName); --- trunk/KDE/kdelibs/kjs/debugger.h #1056223:1056224 @@ -46,7 +46,7 @@ * calls. * * WARNING: This interface is still a work in progress and is not yet - * offically publicly available. It is likely to change in binary incompatible + * officially publicly available. It is likely to change in binary incompatible * (and possibly source incompatible) ways in future versions. It is * anticipated that at some stage the interface will be frozen and made * available for general use. --- trunk/KDE/kdelibs/kjs/internal.cpp #1056223:1056224 @@ -329,7 +329,7 @@ if ( obj->inherits(&ArrayInstance::info) ) arrayLength = obj->get(exec, exec->propertyNames().length)->toUInt32(exec); - vString = "[object " + name + "]"; + vString = "[object " + name + "]"; // krazy:exclude=doublequote_chars break; } case GetterSetterType: --- trunk/KDE/kdelibs/kjs/nodes.h #1056223:1056224 @@ -1228,7 +1228,7 @@ }; // important: these are also built when compiling things via the Function constructor - // (see FunctionObjectImp::construct() and Parser::parseFunctionBody, so the existance + // (see FunctionObjectImp::construct() and Parser::parseFunctionBody, so the existence // of this class rather than the bare FunctionBodyNode does not care much information. class ProgramNode : public FunctionBodyNode { public: