next up previous contents
Next: Programmer's Manual Up: User's Manual Previous: Evaluating Terms   Contents

External functions

Sometimes during a run of Kure_EvaluateTerm it can happen that an error occurs, e.g. if the term contains the composition of two relations without matching dimensions. The KURE package sends the error message to the function Kure_PrintError (char *), which has to be implemented in the application, which uses KURE. The return value of Kure_PrintError has to be void. The KURE package calls this function due to traditional reasons without a new line at the end of the error message.

The KURE package treats warnings and information about the runtime of evaluations in a similar way. These messages are printed by calling the operation Kure_PrintMessage (char *), which also has to be implemented. The return value of Kure_PrintMessage has to be void. Here, the new line at the end of a message is included in the message string.

Sometimes the KURE package needs information, e.g. if a program file, which gets to be read into storage, contains a program with a name, which is identical to the name of an already existing program or function. In this case, the KURE package calls the function Kure_Request (char *). The KURE package awaits after such a call an integer as a result. This result has to be one of the following self declaring values:


next up previous contents
Next: Programmer's Manual Up: User's Manual Previous: Evaluating Terms   Contents
Ulf Milanese
2003-05-28