[Kst] kdeextragear-2/kst

George Staikos staikos at kde.org
Tue Dec 14 21:05:33 CET 2004


CVS commit by staikos: 

label parser fixlets and a testcase to show many bugs in the new parser


  A            tests/testlabelparser.cpp   1.1 [UNKNOWN]
  M +2 -2      kst/labelparser.cpp   1.5
  M +3 -3      kst/labelparser.h   1.5
  M +1 -0      tests/.cvsignore   1.5
  M +2 -1      tests/Makefile.am   1.6


--- kdeextragear-2/kst/kst/labelparser.cpp  #1.4:1.5
@@ -213,7 +213,7 @@ inline bool parseOutChar(const QString& 
 
 
-Parsed *parse(const QString& txt, bool interpret) {
+Parsed *Label::parse(const QString& txt, bool interpret) {
   Parsed *parsed = new Parsed;
-  Chunk *ctail = parsed->chunk;
+  Chunk *ctail = parsed->chunk = new Chunk(0L);
   if (!interpret) {
     ctail->text = txt;

--- kdeextragear-2/kst/tests/.cvsignore  #1.4:1.5
@@ -9,2 +9,3 @@
 testhistogram
 testscalars
+testlabelparser

--- kdeextragear-2/kst/tests/Makefile.am  #1.5:1.6
@@ -1,4 +1,4 @@
 
-check_PROGRAMS=testeqparser testhistogram testscalars
+check_PROGRAMS=testeqparser testhistogram testscalars testlabelparser
 
 METASOURCES=AUTO
@@ -11,3 +11,4 @@
 testhistogram_SOURCES=testhistogram.cpp
 testscalars_SOURCES=testscalars.cpp
+testlabelparser_SOURCES=testlabelparser.cpp
 





More information about the Kst mailing list