[Kst] branches/work/kst/portto4/kst/src/libkstmath
Mike Fenton
mike at staikos.net
Tue Sep 2 22:49:51 CEST 2008
SVN commit 856430 by fenton:
Add defines for label parsing debug output.
M +6 -0 labelparser.cpp
--- branches/work/kst/portto4/kst/src/libkstmath/labelparser.cpp #856429:856430
@@ -25,6 +25,9 @@
using namespace Label;
+// Debug output for Parsing - 0 Off 1 On
+#define DEBUG_PARSING 0
+
#if 0
#define dumpattr(node, text) do { printf("%s: bold:%d italic:%d underline:%d\n", text, (node)->attributes.bold, (node)->attributes.italic, (node)->attributes.underline); } while(0)
#else
@@ -188,7 +191,10 @@
*skip = 1;
short x = 0;
+#if DEBUG_PARSING
qDebug() << "----- parsing " << txt;
+#endif
+
switch (c.unicode()) {
EXPAND_GREEK('B', 'b', "eta", 4, 0x392)
EXPAND_GREEK('D', 'd', "elta", 5, 0x394)
More information about the Kst
mailing list