eval.cpp File Reference

#include "a2dprec.h"
#include "wx/defs.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <wx/utils.h>
#include "wx/canextobj/eval.h"
#include <stdio.h>

Include dependency graph for eval.cpp:

Go to the source code of this file.

Defines

#define SAVE_ERR(n)   {ERROR2=n; ERPOS=m_expression-ERANC-1; ERTOK = m_token;}
#define ERR(n)   { SAVE_ERR(n); longjmp(m_jb,1);}
#define M_PI   3.14159265358979323846
#define M_E   2.71828182845904523536
#define MATH_FUNC(f)   m_functions.Append(new a2dEvalFunction(wxT(#f), f))

Functions

double deg (double x)
double rad (double x)
 WX_DEFINE_LIST (a2dFunctionList)
 WX_DEFINE_LIST (a2dVariableList)

Variables

int ERROR2
wxString ERTOK
int ERPOS
wxChar * ERANC
const wxChar * ErrMsgs []


Detailed Description

Author:
Probably Klaas Holwerda
Copyright: 2001-2004 (C) Probably Klaas Holwerda

Licence: wxWidgets Licence

RCS-ID:

Id
eval.cpp,v 1.16 2009/06/07 13:28:08 titato Exp

Definition in file eval.cpp.


Variable Documentation

const wxChar* ErrMsgs[]

Initial value:

{
   wxT("Syntax error"),
   wxT("Unbalanced parenthesis"),
   wxT("Division by zero"),
   wxT("Unknown variable"),
   wxT("Maximum variables exceeded"),
   wxT("Unrecognised funtion"),
   wxT("Wrong number of arguments to funtion"),
   wxT("Missing an argument"),
   wxT("Empty expression")
}

Definition at line 685 of file eval.cpp.

eval.cpp File Reference -- Tue Aug 31 18:02:28 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation