From eaa989cb6be2336b843cca4c81d68b0c135c3210 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 25 Jan 2007 21:50:45 +0000 Subject: [PATCH] fixed a build error renamed SMC_CreateParse to SMC_CreateParser --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40369 --- core/smn_textparse.cpp | 4 ++-- core/systems/HandleSys.cpp | 3 +++ plugins/include/textparse.inc | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/smn_textparse.cpp b/core/smn_textparse.cpp index 7f1f1d5f..f1ef0340 100644 --- a/core/smn_textparse.cpp +++ b/core/smn_textparse.cpp @@ -142,7 +142,7 @@ public: TextParseGlobals g_TextParseGlobals; -static cell_t SMC_CreateParse(IPluginContext *pContext, const cell_t *params) +static cell_t SMC_CreateParser(IPluginContext *pContext, const cell_t *params) { ParseInfo *pInfo = new ParseInfo(); @@ -274,7 +274,7 @@ static cell_t SMC_GetErrorString(IPluginContext *pContext, const cell_t *params) REGISTER_NATIVES(textNatives) { - {"SMC_CreateParse", SMC_CreateParse}, + {"SMC_CreateParser", SMC_CreateParser}, {"SMC_ParseFile", SMC_ParseFile}, {"SMC_GetErrorString", SMC_GetErrorString}, {"SMC_SetParseStart", SMC_SetParseStart}, diff --git a/core/systems/HandleSys.cpp b/core/systems/HandleSys.cpp index 3a7634a9..6e80f5ce 100644 --- a/core/systems/HandleSys.cpp +++ b/core/systems/HandleSys.cpp @@ -695,6 +695,9 @@ void HandleSystem::ReleasePrimHandle(unsigned int index) { /* Extra work to do. We need to find everything connected to this identity and release it. */ unsigned int ch_index; +#if defined _DEBUG + unsigned int old_index = 0; +#endif while ((ch_index = pHandle->ch_next) != 0) { pLocal = &m_Handles[ch_index]; diff --git a/plugins/include/textparse.inc b/plugins/include/textparse.inc index 823f60ef..51c96312 100644 --- a/plugins/include/textparse.inc +++ b/plugins/include/textparse.inc @@ -38,7 +38,7 @@ enum SMCError * * @return A new Handle to an SMC Parse structure. */ -native Handle:SMC_CreateParse(); +native Handle:SMC_CreateParser(); /** * Parses an SMC file.