Allow inlining of two simple RPN functions

This commit is contained in:
ISSOtm
2020-03-07 18:18:57 +01:00
parent 0d31afaff8
commit 361326e06c
2 changed files with 17 additions and 20 deletions

View File

@@ -72,7 +72,7 @@ static uint8_t *reserveSpace(struct Expression *expr, uint32_t size)
/*
* Init the RPN expression
*/
void rpn_Init(struct Expression *expr)
static void rpn_Init(struct Expression *expr)
{
expr->reason = NULL;
expr->isKnown = true;
@@ -93,22 +93,6 @@ void rpn_Free(struct Expression *expr)
rpn_Init(expr);
}
/*
* Determine if the current expression is known at assembly time
*/
bool rpn_isKnown(const struct Expression *expr)
{
return expr->isKnown;
}
/*
* Determine if the current expression is a symbol suitable for const diffing
*/
bool rpn_isSymbol(const struct Expression *expr)
{
return expr->isSymbol;
}
/*
* Add symbols, constants and operators to expression
*/