paceval. 4.26
Documentation of the paceval. source-code, Copyright ©1994-2024. Version 1.x, 2.x, 3.x, 4.x ©1994-2025 Joerg Koenning & paceval UG [Registered Trade Mark] All rights reserved., Author(s) : Joerg Koenning
Loading...
Searching...
No Matches
Macros | Functions | Variables
paceval_cCleanupHandler.cpp File Reference

implementation of the main memory management in paceval More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "./inc/paceval_dTestDebug.h"
#include <math.h>
#include "./inc/paceval_dVersion.h"
#include "./inc/paceval_cCleanupHandler.h"
#include "./inc/paceval_cListOfPointer.h"
#include "./inc/paceval_cListOfVariables.h"
#include "./inc/paceval_cSyntacticAnalysis.h"
#include "./inc/paceval_fSelfTestMain.h"
Include dependency graph for paceval_cCleanupHandler.cpp:

Macros

#define paceval_max_logging_buffer   25000
 

Functions

int pacevalLibrary_GetLoggingInformation (char *paceval_loggingInformation_out)
 
bool paceval_lockGlobalVariables ()
 
void paceval_unlockGlobalVariables ()
 
paceval_eOperatorTypes paceval_identifyOperatorFromMathematicalCharacter (paceval_eMathematicalCharacterTypes eMathematicalCharacterType_in)
 
void paceval_identifyOperatorFromOperatorType (char *operator_out, paceval_eOperatorTypes eReturnOperator_in)
 
paceval_eOperatorTypes paceval_identifyOperatorFromString (const char *operator_in, long valueNode2_in, const char *valueOperator_in)
 
void paceval_setCallbackUserFunctionString (unsigned int numberUserFunction_in, const char *singleFunctionString_in)
 
void paceval_writeLoggingString (const char *loggingString_in)
 
bool paceval_deleteLoggingMemory ()
 
unsigned long paceval_getCurrentTime ()
 

Variables

char paceval_callbackUserFunctionString [paceval_max_user_functions][25]
 
char * paceval_loggingMemory = NULL
 

Detailed Description

implementation of the main memory management in paceval

implementation of the data types, objects and classes required in paceval that are responsible for memory management (e.g. paceval_cRegisteredObject and paceval_cCleanupHandler) and error handling (e.g. paceval_sErrorInformation)

Macro Definition Documentation

◆ paceval_max_logging_buffer

#define paceval_max_logging_buffer   25000

Function Documentation

◆ paceval_deleteLoggingMemory()

bool paceval_deleteLoggingMemory ( )

deletes the memory buffer used for logging, which empties it

Here is the call graph for this function:
Here is the caller graph for this function:

◆ paceval_getCurrentTime()

unsigned long paceval_getCurrentTime ( )

gets the current time in milliseconds since the system started

Here is the caller graph for this function:

◆ paceval_identifyOperatorFromMathematicalCharacter()

paceval_eOperatorTypes paceval_identifyOperatorFromMathematicalCharacter ( paceval_eMathematicalCharacterTypes eMathematicalCharacterType_in)

forward declaration - gets the current time in milliseconds since the system started (see paceval_cCleanupHandler.h) identifies the associated type of paceval_eOperatorTypes for a type of paceval_eMathematicalCharacterTypes, e.g. the associated ADDITION_SIGN for ADDITION_CHARACTER (see paceval_cCleanupHandler.cpp)

Parameters
eMathematicalCharacterType_inspecifies the type of paceval_eMathematicalCharacterTypes
Here is the caller graph for this function:

◆ paceval_identifyOperatorFromOperatorType()

void paceval_identifyOperatorFromOperatorType ( char * operator_out,
paceval_eOperatorTypes eReturnOperator_in )

identifies the operator (e.g. "+") from the type of operator (e.g. ADDITION_SIGN)

Parameters
operator_outspecifies the buffer for the operator
eReturnOperator_inspecifies the type of operator to look for
Here is the call graph for this function:
Here is the caller graph for this function:

◆ paceval_identifyOperatorFromString()

paceval_eOperatorTypes paceval_identifyOperatorFromString ( const char * operator_in,
long valueNode2_in,
const char * valueOperator_in )

identifies the type of operator (e.g. ADDITION_SIGN) based on the associated parameters

Parameters
operator_inis the character string that contains the operator (e.g. ":=", "+" or "sin")
valueNode2_inspecifies the node of the possible second operand (e.g. the operator "y" for "x+y")
valueOperator_inspecifies the numerical value to convert when ":=<floating point number>" (SET_TO_VALUE_SIGN)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ paceval_lockGlobalVariables()

bool paceval_lockGlobalVariables ( )
Here is the caller graph for this function:

◆ paceval_setCallbackUserFunctionString()

void paceval_setCallbackUserFunctionString ( unsigned int numberUserFunction_in,
const char * singleFunctionString_in )

allows the definition of up to 1000 custom user functions (see pacevalLibrary_SetCallbackUserFunction())

Parameters
numberUserFunction_inspecifies the number of the user function to set the single function for (e.g. 1)
singleFunctionString_inspecifies the user-defined single function (e.g. "my_function1")
Here is the caller graph for this function:

◆ paceval_unlockGlobalVariables()

void paceval_unlockGlobalVariables ( )
Here is the caller graph for this function:

◆ paceval_writeLoggingString()

void paceval_writeLoggingString ( const char * loggingString_in)

writes data for logging with a time stamp into a memory buffer and, if paceval_ENABLE_LOGGING_TO_FILE is set, into the file "paceval_loggingFile.log"

Parameters
loggingString_inspecifies the string to add to logging
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pacevalLibrary_GetLoggingInformation()

int pacevalLibrary_GetLoggingInformation ( char * paceval_loggingInformation_out)

returns the string of the logging information - the return value is the length of the logging string

Parameters
paceval_loggingInformation_outpoints to the buffer that will receive the string (set paceval_strVersion_in to NULL to receive the length of the logging string)
Here is the call graph for this function:

Variable Documentation

◆ paceval_callbackUserFunctionString

char paceval_callbackUserFunctionString[paceval_max_user_functions][25]

◆ paceval_loggingMemory

char* paceval_loggingMemory = NULL

https://paceval.com