Mathematic Expressions Library  0.1
The core math data structures and manipulators
workspace.h File Reference

Go to the source code of this file.

Macros

#define WORKSPACE_NAME_SIZE   10
 
#define WORKSPACE_SIZE   10
 
#define WORKSPACE_NOTSET   ((void *)(long)(-1))
 Indicates that a specified name has not been defined. For use in workspace_get. More...
 
#define WORKSPACE_OK   0
 Indicates that the workspace_set operation was successful. More...
 
#define WORKSPACE_FULL   1
 Indicates that the workspace_set operation failed because the the workspace is full. More...
 
#define WORKSPACE_NAME   2
 Indicates that the workspace_set operation failed because the the name argument is invalid. More...
 

Functions

void workspace_init (void)
 Resets all workspace entries to unset. More...
 
int workspace_set (char *name, void *data)
 
void workspace_unset (char *name)
 
void * workspace_get (char *name)
 

Detailed Description

Date
Apr 25, 2014
Author
Craig Hesling

Macro Definition Documentation

◆ WORKSPACE_FULL

#define WORKSPACE_FULL   1

Indicates that the workspace_set operation failed because the the workspace is full.

◆ WORKSPACE_NAME

#define WORKSPACE_NAME   2

Indicates that the workspace_set operation failed because the the name argument is invalid.

◆ WORKSPACE_NAME_SIZE

#define WORKSPACE_NAME_SIZE   10

◆ WORKSPACE_NOTSET

#define WORKSPACE_NOTSET   ((void *)(long)(-1))

Indicates that a specified name has not been defined. For use in workspace_get.

◆ WORKSPACE_OK

#define WORKSPACE_OK   0

Indicates that the workspace_set operation was successful.

◆ WORKSPACE_SIZE

#define WORKSPACE_SIZE   10

Function Documentation

◆ workspace_get()

void* workspace_get ( char *  name)
Todo:
Create a return value for bad name like workspace_set with WORKSPACE_NAME

◆ workspace_init()

void workspace_init ( void  )

Resets all workspace entries to unset.

Note
Must be run before workspace use.

◆ workspace_set()

int workspace_set ( char *  name,
void *  data 
)

◆ workspace_unset()

void workspace_unset ( char *  name)