Move vi modelines closer to the beginning, so they're more likely to be actually...
[monky] / src / algebra.h
1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
2  * vim: ts=4 sw=4 noet ai cindent syntax=c
3  *
4  * Conky, a system monitor, based on torsmo
5  *
6  * Any original torsmo code is licensed under the BSD license
7  *
8  * All code written since the fork of torsmo is licensed under the GPL
9  *
10  * Please see COPYING for details
11  *
12  * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
13  * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
14  *      (see AUTHORS)
15  * All rights reserved.
16  *
17  * This program is free software: you can redistribute it and/or modify
18  * it under the terms of the GNU General Public License as published by
19  * the Free Software Foundation, either version 3 of the License, or
20  * (at your option) any later version.
21  *
22  * This program is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25  * GNU General Public License for more details.
26  * You should have received a copy of the GNU General Public License
27  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
28  *
29  */
30 #ifndef _ALGEBRA_H
31 #define _ALGEBRA_H
32
33 enum match_type {
34         OP_LT = 1,      /* < */
35         OP_GT = 2,      /* > */
36         OP_EQ = 3,      /* == */
37         OP_LEQ = 4,     /* <= */
38         OP_GEQ = 5,     /* >= */
39         OP_NEQ = 6,     /* != */
40 };
41
42 enum arg_type {
43         ARG_STRING = 1, /* "asdf" */
44         ARG_LONG = 2,   /* 123456 */
45         ARG_DOUBLE = 3, /* 12.456 */
46 };
47
48 int compare(const char *);
49
50 #endif /* _ALGEBRA_H */