From 8ea056db4b6c60e2e623cd0e79ccb64aea5bec51 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Thu, 27 May 2010 19:57:15 +0000 Subject: Theme Editor: Fixed a bug in the subline parser, added a LINE element to contain logical lines, working on data model git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26337 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/main.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'utils/themeeditor/main.cpp') 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 @@ -39,13 +36,14 @@ namespace wps int main(int argc, char* argv[]) { - char* doc = "%Vd(U)\n\n%?bl(test,3,5,2,1)"; + char doc[] = "%Vd(U);Hey\n%?bl(test,3,5,2,1)"; - 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); -- cgit v1.2.3