TEACL is a fork of TECOC created for the purpose of describing diffs in a document being collaboratively edited
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
790 B

/*****************************************************************************
ExeOpr()
This function executes an operator command.
+ Addition
- Subtraction or negation
( Expression grouping (ExeRtP() executes ')')
# Logical OR
/ Division
& Logical AND
^_ Ones complement (logical NOT)
* Multiplication
*****************************************************************************/
#include "zport.h" /* define portability identifiers */
#include "tecoc.h" /* define general identifiers */
#include "defext.h" /* define external global variables */
DEFAULT ExeOpr() /* operators: + - * / # & ^_ */
{
DBGFEN(1,"ExeOpr",NULL);
if (PushEx((LONG)*CBfPtr, OPERATOR) == FAILURE) {
DBGFEX(1,DbgFNm,"FAILURE");
return FAILURE;
}
DBGFEX(1,DbgFNm,"SUCCESS");
return SUCCESS;
}