aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/changelog1
-rw-r--r--debian/control5
-rwxr-xr-xdebian/rules2
3 files changed, 4 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index 03e72b5..c659eba 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ wavemon (0.8.2-1) UNRELEASED; urgency=medium
* d/compat: bump to dh compat level to 11
* d/control: bump Standards-Version to 4.0.1
- Change Priority from Extra to Optional
+ * d/control: remove autotools-dev as a dependency
-- Jonathan McCrohan <jmccrohan@gmail.com> Wed, 04 Jan 2017 00:24:11 +0000
diff --git a/debian/control b/debian/control
index 2745711..c6c132c 100644
--- a/debian/control
+++ b/debian/control
@@ -2,9 +2,8 @@ Source: wavemon
Section: net
Priority: optional
Maintainer: Jonathan McCrohan <jmccrohan@gmail.com>
-Build-Depends: autotools-dev, libncurses5-dev,
- debhelper (>= 9), linux-libc-dev, libnl-3-dev, libnl-genl-3-dev,
- pkg-config
+Build-Depends: libncurses5-dev, debhelper (>= 11), linux-libc-dev, libnl-3-dev,
+ libnl-genl-3-dev, pkg-config
Standards-Version: 4.0.1
Homepage: https://github.com/uoaerg/wavemon/
diff --git a/debian/rules b/debian/rules
index 0c8d9e4..1105481 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,4 +7,4 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export BUILD_DATE = $(shell LC_ALL=C date -u --date="`dpkg-parsechangelog -SDate`")
%:
- dh $@ --with autotools_dev
+ dh $@
eral.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/* $Id$
 * $URL$
 *
 * expression evaluation
 *
 * Copyright (C) 2003 Michael Reinelt <michael@reinelt.co.at>
 * Copyright (C) 2004 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
 *
 * This file is part of LCD4Linux.
 *
 * LCD4Linux is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * LCD4Linux is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */


#ifndef _EVALUATOR_H_
#define _EVALUATOR_H_


/* RESULT bitmask */
#define R_NUMBER 1
#define R_STRING 2

typedef struct {
    int type;
    int size;
    double number;
    char *string;
} RESULT;

int SetVariable(const char *name, RESULT * value);
int SetVariableNumeric(const char *name, const double value);
int SetVariableString(const char *name, const char *value);

int AddFunction(const char *name, const int argc, void (*func) ());

void DeleteVariables(void);
void DeleteFunctions(void);

void DelResult(RESULT * result);
RESULT *SetResult(RESULT ** result, const int type, const void *value);
RESULT *CopyResult(RESULT ** result, RESULT * value);

double R2N(RESULT * result);
char *R2S(RESULT * result);

int Compile(const char *expression, void **tree);
int Eval(void *tree, RESULT * result);
void DelTree(void *tree);

#endif