summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/main.cpp')
-rw-r--r--utils/themeeditor/main.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/utils/themeeditor/main.cpp b/utils/themeeditor/main.cpp
index b43b419143..49e870c369 100644
--- a/utils/themeeditor/main.cpp
+++ b/utils/themeeditor/main.cpp
@@ -19,13 +19,10 @@
*
****************************************************************************/
-namespace wps
+extern "C"
{
- extern "C"
- {
#include "skin_parser.h"
#include "skin_debug.h"
- }
}
#include <cstdlib>
@@ -39,13 +36,14 @@ namespace wps
int main(int argc, char* argv[])
{
- char* doc = "%Vd(U)\n\n%?bl(test,3,5,2,1)<param2|param3>";
+ char doc[] = "%Vd(U);Hey\n%?bl(test,3,5,2,1)<param2|param3>";
- struct wps::skin_element* test = wps::skin_parse(doc);
+ struct skin_element* test = skin_parse(doc);
- wps::skin_debug_tree(test);
+ skin_debug_tree(test);
+
+ skin_free_tree(test);
- wps::skin_free_tree(test);
QApplication app(argc, argv);