Explorar el Código

New SourceFile::isCSourceFile member because line splitting (to get more precise error locations) is only done on source files, not header files.

git-svn-id: file:///var/svn/tigccpp/trunk@617 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler hace 18 años
padre
commit
dbb8fb395a
Se han modificado 2 ficheros con 4 adiciones y 3 borrados
  1. 1 1
      ktigcc/mainform.ui.h
  2. 3 2
      ktigcc/srcfile.h

+ 1 - 1
ktigcc/mainform.ui.h

@@ -1478,7 +1478,7 @@ bool MainForm::openProject(const QString &fileName)
                    (type==2)?"GNU Assembler 68k":
                    (type==3)?"Motorola Assembler 68k":
                    (type==1)?"C":
-                    "None",(type==1),(type>1));
+                    "None",(type==1),(category==cFilesListItem),(type>1));
     return FALSE;
   }
 }

+ 3 - 2
ktigcc/srcfile.h

@@ -37,9 +37,9 @@ class KDirWatch;
 
 struct SourceFile : public SourceFileWindow {
   SourceFile(MainForm *mainfrm, const QString &fn, const QString &ft,
-             const QString &hlm, bool isc, bool isasm) :
+             const QString &hlm, bool isc, bool iscsrc, bool isasm) :
     SourceFileWindow(), mainForm(mainfrm), fileName(fn), fileText(ft),
-    hlMode(hlm), isCFile(isc), isASMFile(isasm)
+    hlMode(hlm), isCFile(isc), isCSourceFile(iscsrc), isASMFile(isasm)
   {
     initBase(); // We can do this only after initializing the variables here.
     show();
@@ -50,6 +50,7 @@ struct SourceFile : public SourceFileWindow {
   QString fileText;
   QString hlMode;
   bool isCFile;
+  bool isCSourceFile; // as opposed to C header file
   bool isASMFile;
 
   KReplaceWithSelectionS *kreplace;