Remove sp_context_t::basecx.

This commit is contained in:
David Anderson 2015-02-24 21:19:29 -08:00
parent 31ab1ced06
commit 3a0310e832
2 changed files with 1 additions and 3 deletions

View File

@ -74,7 +74,6 @@ typedef struct sp_context_s
{
cell_t rval; /**< Return value from InvokeFunction() */
sp_plugin_t *plugin;
PluginContext *basecx;
} sp_context_t;
//#define SPFLAG_PLUGIN_DEBUG (1<<0)

View File

@ -61,7 +61,6 @@ PluginContext::PluginContext(PluginRuntime *pRuntime)
tracker_.pBase = (ucell_t *)malloc(1024);
tracker_.pCur = tracker_.pBase;
tracker_.size = 1024 / sizeof(cell_t);
m_ctx.basecx = this;
m_ctx.plugin = const_cast<sp_plugin_t *>(pRuntime->plugin());
}
@ -867,7 +866,7 @@ PluginContext::invokeNative(ucell_t native_idx, cell_t *params)
return 0;
}
cell_t result = native->pfn(m_ctx.basecx, params);
cell_t result = native->pfn(this, params);
if (native_error_ != SP_ERROR_NONE)
return result;