mirror of
https://github.com/jeremysrand/abCalc.git
synced 2024-07-17 09:29:10 +00:00
38 lines
502 B
C
38 lines
502 B
C
|
/*
|
||
|
abCalcOpRcws.c
|
||
|
By: Jeremy Rand
|
||
|
*/
|
||
|
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
#include "abCalcOpRcws.h"
|
||
|
|
||
|
#include "abCalcOp.h"
|
||
|
#include "abCalcExpr.h"
|
||
|
#include "abCalcStack.h"
|
||
|
#include "abCalcMode.h"
|
||
|
|
||
|
|
||
|
#define OP_NAME "RCWS"
|
||
|
|
||
|
|
||
|
static void rcwsExecute(void);
|
||
|
|
||
|
|
||
|
void abCalcOpRcwsInit(void)
|
||
|
{
|
||
|
abCalcOpRegister(OP_NAME, rcwsExecute);
|
||
|
}
|
||
|
|
||
|
|
||
|
void rcwsExecute(void)
|
||
|
{
|
||
|
abCalcExpr result;
|
||
|
|
||
|
result.type = abCalcExprTypeReal;
|
||
|
result.u.real = abCalcModeGetIntWidth();
|
||
|
|
||
|
abCalcStackExprPush(&result);
|
||
|
}
|