diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-05-27 19:57:15 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-05-27 19:57:15 +0000 |
commit | 8ea056db4b6c60e2e623cd0e79ccb64aea5bec51 (patch) | |
tree | b0ae89113d95c33616b4edda0abe22f63415e0a4 /utils/themeeditor/main.cpp | |
parent | deb1600bbc4d0e04f4560186fb665dc95b908e14 (diff) |
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
Diffstat (limited to 'utils/themeeditor/main.cpp')
-rw-r--r-- | utils/themeeditor/main.cpp | 14 |
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); |