source: trunk/test/testRuleset.c

Last change on this file was 220, checked in by simon, 4 years ago

Rename folder src to memphis

This change allows us do make proper in-tree builds, because the libmemphis main header is <memphis/memphis.h>.

File size: 1.5 KB
Line 
1/*
2 * Memphis - Cairo Rederer for OSM in C
3 * Copyright (C) 2008  Marius Rieder <marius.rieder@durchmesser.ch>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 */
19
20#include <glib.h>
21#include <time.h>
22#include <stdio.h>
23#include <stdlib.h>
24#include <string.h>
25
26
27#include "../memphis/ruleset.h"
28#include "../memphis/main.h"
29#include "../memphis/mlib.h"
30
31memphisOpt   *opts;
32GStringChunk *stringChunk;
33GTree        *stringTree;
34
35int main () {
36
37    opts = malloc(sizeof(memphisOpt));
38    opts->debug=1;
39
40    stringChunk = g_string_chunk_new(265);
41    stringTree = g_tree_new(m_tree_strcmp);
42
43    cfgRules *ruleset = (cfgRules *) rulesetRead("test/ruleset.xml", 1);
44
45    g_tree_destroy(stringTree);
46
47    rulesetFree(ruleset);
48
49    g_string_chunk_free(stringChunk);
50
51    return (0);
52}
53
54/*
55 * vim: expandtab shiftwidth=4 tabstop=4:
56 */
Note: See TracBrowser for help on using the repository browser.