summaryrefslogtreecommitdiffstats
path: root/src/tools/sdcc/sdcc_generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/sdcc/sdcc_generator.cpp')
-rw-r--r--src/tools/sdcc/sdcc_generator.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tools/sdcc/sdcc_generator.cpp b/src/tools/sdcc/sdcc_generator.cpp
index fb57ab6..0a2b0ee 100644
--- a/src/tools/sdcc/sdcc_generator.cpp
+++ b/src/tools/sdcc/sdcc_generator.cpp
@@ -18,7 +18,7 @@ const SDCC::FamilyData SDCC::FAMILY_DATA[Nb_Families] = {
{ "pic16" }
};
-SDCC::Family SDCC::family(const QString &device)
+SDCC::Family SDCC::family(const TQString &device)
{
const Device::Data *data = Device::lister().data(device);
switch (static_cast<const Pic::Data *>(data)->architecture().type()) {
@@ -38,12 +38,12 @@ SDCC::Family SDCC::family(const QString &device)
return Nb_Families;
}
-QString SDCC::toDeviceName(const QString &device)
+TQString SDCC::toDeviceName(const TQString &device)
{
return GPUtils::toDeviceName(device);
}
-QValueList<const Device::Data *> SDCC::getSupportedDevices(const QString &s)
+TQValueList<const Device::Data *> SDCC::getSupportedDevices(const TQString &s)
{
return GPUtils::getSupportedDevices(s);
}
@@ -60,12 +60,12 @@ SourceLine::List SDCC::SourceGenerator::configLines(PURL::ToolType type, const D
SourceLine::List lines;
if ( !data.is18Family() ) lines.appendNotIndentedCode("typedef unsigned int word;");
Address address = data.range(Pic::MemoryRangeType::Config).start;
- QString prefix = (data.nbWords(Pic::MemoryRangeType::Config)==2 || data.name().startsWith("16F9") ? "_" : "__");
+ TQString prefix = (data.nbWords(Pic::MemoryRangeType::Config)==2 || data.name().startsWith("16F9") ? "_" : "__");
for (uint i=0; i<data.nbWords(Pic::MemoryRangeType::Config); i++) {
const Pic::Config::Word &cword = config._words[i];
- QStringList cnames = SourceLine::configNames(Pic::ConfigNameType::SDCC, pmemory, i, ok);
+ TQStringList cnames = SourceLine::configNames(Pic::ConfigNameType::SDCC, pmemory, i, ok);
if ( cnames.isEmpty() ) continue;
- QString code;
+ TQString code;
if ( data.is18Family() ) code += "code char at ";
else code += "word at ";
if ( cword.name.isEmpty() ) code += toHexLabel(address, data.nbCharsAddress()) + " CONFIG";
@@ -99,7 +99,7 @@ SourceLine::List SDCC::SourceGenerator::sourceFileContent(PURL::ToolType type, c
switch (static_cast<const Pic::Data &>(data).architecture().type()) {
case Pic::Architecture::P16X:
lines.appendNotIndentedCode("void isr() interrupt 0 {", i18n("interrupt service routine"));
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert interrupt code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert interrupt code") + " >>");
lines.appendNotIndentedCode("}");
lines.appendEmpty();
break;
@@ -111,7 +111,7 @@ SourceLine::List SDCC::SourceGenerator::sourceFileContent(PURL::ToolType type, c
default: Q_ASSERT(false); break;
}
lines.appendNotIndentedCode("void main() {");
- lines.appendIndentedCode(QString::null, "<< " + i18n("insert code") + " >>");
+ lines.appendIndentedCode(TQString(), "<< " + i18n("insert code") + " >>");
lines.appendNotIndentedCode("}");
return lines;
}