浏览代码

Bump version to 1.03.
Don't show symbol info for reserved keywords even in the case of an exact match (fixes unhelpful prototype help for "asm").


git-svn-id: file:///var/svn/tigccpp/trunk@883 9552661e-59e3-4036-b4f2-dbe53926924f

kevinkofler 17 年之前
父节点
当前提交
8575acd4fe
共有 4 个文件被更改,包括 69 次插入60 次删除
  1. 6 0
      ktigcc/NEWS
  2. 58 58
      ktigcc/completion.cpp
  3. 4 1
      ktigcc/fedora/ktigcc.spec
  4. 1 1
      ktigcc/ktigcc.cpp

+ 6 - 0
ktigcc/NEWS

@@ -1,5 +1,11 @@
 This is a summary of the changes in KTIGCC since the first alpha release:
 
+KTIGCC 1.03 (2006-09-17):
+
+* Don't show symbol info for reserved keywords even in the case of an exact
+  match (fixes unhelpful prototype help for "asm").
+
+
 KTIGCC 1.02 (2006-09-05):
 
 * Fixed inverted logic bug causing the Debug menu and toolbar buttons to get

+ 58 - 58
ktigcc/completion.cpp

@@ -221,65 +221,65 @@ static QStringList prototypesForIdentifier(const QString &identifier,
   const QValueList<KTextEditor::CompletionEntry> &entries)
 {
   QStringList result;
-  for (QValueList<KTextEditor::CompletionEntry>::ConstIterator it=entries.begin();
-       it!=entries.end(); ++it) {
-    const KTextEditor::CompletionEntry &entry=*it;
-    if (entry.text==identifier) {
-      QString prototype=entry.prefix+' '+entry.text+entry.postfix;
-      if (result.find(prototype)==result.end()) result.append(prototype);
+  QStringList reservedIdentifiers=QStringList::split('\n',"__alignof__\n"
+                                                          "__asm__\n"
+                                                          "__attribute__\n"
+                                                          "__complex__\n"
+                                                          "__const__\n"
+                                                          "__extension__\n"
+                                                          "__imag__\n"
+                                                          "__inline__\n"
+                                                          "__label__\n"
+                                                          "__real__\n"
+                                                          "__typeof__\n"
+                                                          "asm\n"
+                                                          "auto\n"
+                                                          "break\n"
+                                                          "case\n"
+                                                          "char\n"
+                                                          "const\n"
+                                                          "continue\n"
+                                                          "default\n"
+                                                          "do\n"
+                                                          "double\n"
+                                                          "else\n"
+                                                          "enum\n"
+                                                          "extern\n"
+                                                          "float\n"
+                                                          "for\n"
+                                                          "goto\n"
+                                                          "if\n"
+                                                          "inline\n"
+                                                          "int\n"
+                                                          "long\n"
+                                                          "register\n"
+                                                          "return\n"
+                                                          "short\n"
+                                                          "signed\n"
+                                                          "sizeof\n"
+                                                          "static\n"
+                                                          "struct\n"
+                                                          "switch\n"
+                                                          "typedef\n"
+                                                          "typeof\n"
+                                                          "union\n"
+                                                          "unsigned\n"
+                                                          "void\n"
+                                                          "volatile\n"
+                                                          "while\n");
+  if (!reservedIdentifiers.contains(identifier)) {
+    for (QValueList<KTextEditor::CompletionEntry>::ConstIterator it=entries.begin();
+         it!=entries.end(); ++it) {
+      const KTextEditor::CompletionEntry &entry=*it;
+      if (entry.text==identifier) {
+        QString prototype=entry.prefix+' '+entry.text+entry.postfix;
+        if (result.find(prototype)==result.end()) result.append(prototype);
+      }
     }
-  }
-  if (result.isEmpty()) {
-    // Try approximate matching.
-    unsigned identifierLength=identifier.length();
-    if (identifierLength>=4) {
-      QStringList reservedIdentifiers=QStringList::split('\n',"__alignof__\n"
-                                                              "__asm__\n"
-                                                              "__attribute__\n"
-                                                              "__complex__\n"
-                                                              "__const__\n"
-                                                              "__extension__\n"
-                                                              "__imag__\n"
-                                                              "__inline__\n"
-                                                              "__label__\n"
-                                                              "__real__\n"
-                                                              "__typeof__\n"
-                                                              "asm\n"
-                                                              "auto\n"
-                                                              "break\n"
-                                                              "case\n"
-                                                              "char\n"
-                                                              "const\n"
-                                                              "continue\n"
-                                                              "default\n"
-                                                              "do\n"
-                                                              "double\n"
-                                                              "else\n"
-                                                              "enum\n"
-                                                              "extern\n"
-                                                              "float\n"
-                                                              "for\n"
-                                                              "goto\n"
-                                                              "if\n"
-                                                              "inline\n"
-                                                              "int\n"
-                                                              "long\n"
-                                                              "register\n"
-                                                              "return\n"
-                                                              "short\n"
-                                                              "signed\n"
-                                                              "sizeof\n"
-                                                              "static\n"
-                                                              "struct\n"
-                                                              "switch\n"
-                                                              "typedef\n"
-                                                              "typeof\n"
-                                                              "union\n"
-                                                              "unsigned\n"
-                                                              "void\n"
-                                                              "volatile\n"
-                                                              "while\n");
-      if (!reservedIdentifiers.contains(identifier)) {
+    if (result.isEmpty()) {
+      // Try approximate matching.
+      unsigned identifierLength=identifier.length();
+      if (identifierLength>=4) {
         QString identifierUpper=identifier.upper();
         QValueList<unsigned> distances;
         for (QValueList<KTextEditor::CompletionEntry>::ConstIterator it=entries.begin();

+ 4 - 1
ktigcc/fedora/ktigcc.spec

@@ -1,7 +1,7 @@
 %define tigccdir /usr/local/tigcc
 
 Name: ktigcc
-Version: 1.02
+Version: 1.03
 Release: 1
 Vendor: TIGCC Team (http://tigcc.ticalc.org)
 Packager: Kevin Kofler <Kevin@tigcc.ticalc.org>
@@ -114,6 +114,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc %{tigccdir}/doc/ktigcc
 
 %changelog
+* Sun Sep 17 2006 Kevin Kofler <Kevin@tigcc.ticalc.org>
+Bump version to 1.03.
+
 * Mon Sep 4 2006 Kevin Kofler <Kevin@tigcc.ticalc.org>
 Bump version to 1.02.
 

+ 1 - 1
ktigcc/ktigcc.cpp

@@ -62,7 +62,7 @@ int main( int argc, char *argv[] )
   // characters lost converting!
   QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale());
 
-  KAboutData about("ktigcc","TIGCC IDE for KDE","1.02",
+  KAboutData about("ktigcc","TIGCC IDE for KDE","1.03",
   "TIGCC C and ASM SDK", KAboutData::License_GPL,
   "Copyright (C) 2004-2006 Kevin Kofler and Joey Adams. All rights reserved.\n"
   "TIGCC Copyright (C) 1999-2006 The TIGCC Team.",