#include <extfunc.h>
Data Fields | |
| enum Calc_status | status |
| void * | user_data |
| enum Request_type | task |
status is set by blackbox calls before returning.
| void* BBoxInterp::user_data |
user_data is set by the blackbox if it has any persistent state during calls to initial and final functions given in CreateUserFunctionBlackBox.
What the caller wants done on a given call.
As black boxes are represented with 5 function pointers, one might think this is not needed. Providing the 'task' here allows one to implement only one function and have it handle all types of calls. It also facilitates cases where there is checking rather than evaluation.
1.5.1