1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
8 * $Id: tag_table.c 26346 2010-05-28 02:30:27Z jdgordon $
10 * Copyright (C) 2010 Jonathan Gordon
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
28 #include "skin_parser.h"
29 #include "tag_table.h"
30 #include "skin_structs.h"
32 int handle_tree(struct skin
*skin
, struct skin_element
* tree
, struct line
* line
);
33 void skin_render(struct skin_element
* root
);
35 int main(int argc
, char* argv
[])
37 char buffer
[10*1024], temp
[512];
41 strcmp(argv
[1],"-h") == 0 ||
42 strcmp(argv
[1],"--help") == 0 )
44 printf("Usage: %s infile \n", argv
[0]);
48 while ((argc
> filearg
) && argv
[filearg
][0] == '-')
51 while (argv
[filearg
][i
])
53 switch(argv
[filearg
][i
])
62 printf("Missing input filename\n");
66 in
= fopen(argv
[filearg
], "r");
69 while (fgets(temp
, 512, in
))
74 struct skin_element
* tree
= skin_parse(buffer
);
76 handle_tree(&skin
, tree
, NULL
);