summaryrefslogtreecommitdiff
path: root/include/script.h
diff options
context:
space:
mode:
authorcamthesaxman <cameronghall@cox.net>2017-09-09 18:33:29 -0500
committercamthesaxman <cameronghall@cox.net>2017-09-09 18:33:29 -0500
commit66a148af9fea2a7029f5aae362e80b440686064e (patch)
treea171d88817ae2c079df672df08b9d94126b210da /include/script.h
parent95f856c39e81e2b723065e757b4dcf577441c558 (diff)
let's not mess around with typedefs now
Diffstat (limited to 'include/script.h')
-rw-r--r--include/script.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/script.h b/include/script.h
index 74f22584e..25c7649b4 100644
--- a/include/script.h
+++ b/include/script.h
@@ -3,7 +3,6 @@
struct ScriptContext;
-typedef bool8 (*NativeScriptFunc)(void);
typedef bool8 (*ScrCmdFunc)(struct ScriptContext *);
typedef u8 Script[];
@@ -12,7 +11,7 @@ struct ScriptContext
u8 stackDepth;
u8 mode;
u8 comparisonResult;
- NativeScriptFunc nativePtr;
+ bool8 (*nativePtr)(void);
const u8 *scriptPtr;
const u8 *stack[20];
ScrCmdFunc *cmdTable;
@@ -24,7 +23,7 @@ struct ScriptContext
void InitScriptContext(struct ScriptContext *ctx, void *cmdTable, void *cmdTableEnd);
u8 SetupBytecodeScript(struct ScriptContext *ctx, const u8 *ptr);
-void SetupNativeScript(struct ScriptContext *ctx, NativeScriptFunc ptr);
+void SetupNativeScript(struct ScriptContext *ctx, bool8 (*ptr)(void));
void StopScript(struct ScriptContext *ctx);
u8 RunScriptCommand(struct ScriptContext *ctx);
u8 ScriptPush(struct ScriptContext *ctx, const u8 *ptr);