OpcUaCanOpen
CANopen OPC-UA server
example2.c File Reference
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>
#include "muParserDLL.h"

Go to the source code of this file.

Macros

#define PARSER_CONST_PI   3.141592653589793238462643
 
#define PARSER_CONST_E   2.718281828459045235360287
 
#define PARSER_MAXVARS   10
 
#define _T(x)   x
 
#define myprintf   printf
 
#define mystrlen   strlen
 
#define myfgets   fgets
 
#define mystrcmp   strcmp
 

Functions

void CalcBulk ()
 
muFloat_t Mega (muFloat_t a_fVal)
 
muFloat_t Milli (muFloat_t a_fVal)
 
muFloat_t ZeroArg ()
 
muFloat_t BulkTest (int nBulkIdx, int nThreadIdx, muFloat_t v1)
 
muFloat_t Not (muFloat_t v)
 
muFloat_t Rnd (muFloat_t v)
 
muFloat_t SampleQuery (const muChar_t *szMsg)
 
muFloat_t Sum (const muFloat_t *a_afArg, int a_iArgc)
 
muFloat_t Add (muFloat_t v1, muFloat_t v2)
 
muFloat_t Mul (muFloat_t v1, muFloat_t v2)
 
muFloat_tAddVariable (const muChar_t *a_szName, void *pUserData)
 
void Intro (muParserHandle_t hParser)
 
void OnError (muParserHandle_t hParser)
 
void ListVar (muParserHandle_t a_hParser)
 
void ListExprVar (muParserHandle_t a_hParser)
 
void ListConst (muParserHandle_t a_hParser)
 
int CheckKeywords (const muChar_t *a_szLine, muParserHandle_t a_hParser)
 Check for external keywords. More...
 
void Calc ()
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ _T

#define _T (   x)    x

Definition at line 13 of file example2.c.

◆ myfgets

#define myfgets   fgets

Definition at line 16 of file example2.c.

◆ myprintf

#define myprintf   printf

Definition at line 14 of file example2.c.

◆ mystrcmp

#define mystrcmp   strcmp

Definition at line 17 of file example2.c.

◆ mystrlen

#define mystrlen   strlen

Definition at line 15 of file example2.c.

◆ PARSER_CONST_E

#define PARSER_CONST_E   2.718281828459045235360287

Definition at line 9 of file example2.c.

◆ PARSER_CONST_PI

#define PARSER_CONST_PI   3.141592653589793238462643

Definition at line 8 of file example2.c.

◆ PARSER_MAXVARS

#define PARSER_MAXVARS   10

Definition at line 10 of file example2.c.

Function Documentation

◆ Add()

muFloat_t Add ( muFloat_t  v1,
muFloat_t  v2 
)

Definition at line 83 of file example2.c.

◆ AddVariable()

muFloat_t* AddVariable ( const muChar_t a_szName,
void *  pUserData 
)

Definition at line 96 of file example2.c.

◆ BulkTest()

muFloat_t BulkTest ( int  nBulkIdx,
int  nThreadIdx,
muFloat_t  v1 
)

Definition at line 46 of file example2.c.

◆ Calc()

void Calc ( )

Definition at line 340 of file example2.c.

◆ CalcBulk()

void CalcBulk ( )

Definition at line 295 of file example2.c.

◆ CheckKeywords()

int CheckKeywords ( const muChar_t a_szLine,
muParserHandle_t  a_hParser 
)

Check for external keywords.

Definition at line 241 of file example2.c.

◆ Intro()

void Intro ( muParserHandle_t  hParser)

Definition at line 114 of file example2.c.

◆ ListConst()

void ListConst ( muParserHandle_t  a_hParser)

Definition at line 213 of file example2.c.

◆ ListExprVar()

void ListExprVar ( muParserHandle_t  a_hParser)

Definition at line 186 of file example2.c.

◆ ListVar()

void ListVar ( muParserHandle_t  a_hParser)

Definition at line 160 of file example2.c.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 433 of file example2.c.

◆ Mega()

muFloat_t Mega ( muFloat_t  a_fVal)

Definition at line 30 of file example2.c.

◆ Milli()

muFloat_t Milli ( muFloat_t  a_fVal)

Definition at line 35 of file example2.c.

◆ Mul()

muFloat_t Mul ( muFloat_t  v1,
muFloat_t  v2 
)

Definition at line 88 of file example2.c.

◆ Not()

muFloat_t Not ( muFloat_t  v)

Definition at line 54 of file example2.c.

◆ OnError()

void OnError ( muParserHandle_t  hParser)

Definition at line 149 of file example2.c.

◆ Rnd()

muFloat_t Rnd ( muFloat_t  v)

Definition at line 58 of file example2.c.

◆ SampleQuery()

muFloat_t SampleQuery ( const muChar_t szMsg)

Definition at line 60 of file example2.c.

◆ Sum()

muFloat_t Sum ( const muFloat_t a_afArg,
int  a_iArgc 
)

Definition at line 70 of file example2.c.

◆ ZeroArg()

muFloat_t ZeroArg ( )

Definition at line 40 of file example2.c.