source: trunk/test/testRuleset.c @ 53

Last change on this file since 53 was 53, checked in by marius, 6 years ago

setting some mimetypes in test

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Date Author Id Revision HeadURL"
  • Property svn:mime-type set to text/x-csrc
File size: 1.4 KB
Line 
1/*
2 * Memphis - Cairo Rederer for OSM in C
3 * Copyright (C) 2008  <marius.rieder@durchmesser.ch>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18 */
19#include <glib.h>
20#include <time.h>
21#include <stdio.h>
22#include <stdlib.h>
23#include <string.h>
24
25
26#include "../ruleset.h"
27#include "../main.h"
28#include "../mlib.h"
29
30memphisOpt   *opts;
31GStringChunk *stringChunk;
32GTree        *stringTree;
33
34int main () {
35
36    opts = malloc(sizeof(memphisOpt));
37    opts->debug=1;
38
39    stringChunk = g_string_chunk_new(265);
40    stringTree = g_tree_new(m_tree_strcmp);
41
42    cfgRules *ruleset = (cfgRules *) rulesetRead("test/ruleset.xml");
43
44    g_tree_destroy(stringTree);
45
46    rulesetFree(ruleset);
47
48    g_string_chunk_free(stringChunk);
49
50    return (0);
51}
52
53/*
54 * vim: expandtab shiftwidth=4 tabstop=4:
55 */
Note: See TracBrowser for help on using the repository browser.