mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 19:13:40 +01:00
Merge remote repo native into ext/native/.
This commit is contained in:
commit
f279c2a3c2
378 files changed
+190761
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include "../base/basictypes.h"
|
||||
#include <vector>
|
||||
|
||||
typedef std::pair<uint32_t, uint32_t> ExpressionPair;
|
||||
typedef std::vector<ExpressionPair> PostfixExpression;
|
||||
|
||||
enum ExpressionType
|
||||
{
|
||||
EXPR_TYPE_UINT = 0,
|
||||
EXPR_TYPE_FLOAT = 2,
|
||||
};
|
||||
|
||||
class IExpressionFunctions
|
||||
{
|
||||
public:
|
||||
virtual bool parseReference(char* str, uint32_t& referenceIndex) = 0;
|
||||
virtual bool parseSymbol(char* str, uint32_t& symbolValue) = 0;
|
||||
virtual uint32_t getReferenceValue(uint32_t referenceIndex) = 0;
|
||||
virtual ExpressionType getReferenceType(uint32_t referenceIndex) = 0;
|
||||
virtual bool getMemoryValue(uint32_t address, int size, uint32_t& dest, char* error) = 0;
|
||||
};
|
||||
|
||||
bool initPostfixExpression(const char* infix, IExpressionFunctions* funcs, PostfixExpression& dest);
|
||||
bool parsePostfixExpression(PostfixExpression& exp, IExpressionFunctions* funcs, uint32_t& dest);
|
||||
bool parseExpression(const char* exp, IExpressionFunctions* funcs, uint32_t& dest);
|
||||
const char* getExpressionError();
|
||||
Reference in new issue
Block a user