diff -r 881b1fbcc698 -r 7c39a88ceaa3 core/vm/sp_vm_basecontext.cpp --- a/core/vm/sp_vm_basecontext.cpp Mon Jan 01 20:58:02 2007 +0000 +++ b/core/vm/sp_vm_basecontext.cpp Mon Jan 01 21:18:35 2007 +0000 @@ -258,6 +258,7 @@ high = ctx->plugin->info.natives_num - 1; low = 0; +#if 0 while (low <= high) { mid = (low + high) / 2; @@ -275,6 +276,19 @@ high = mid - 1; } } +#else + for (uint32_t i=0; iplugin->info.natives_num; i++) + { + if (strcmp(ctx->natives[i].name, name) == 0) + { + if (index) + { + *index = i; + } + return SP_ERROR_NONE; + } + } +#endif return SP_ERROR_NOT_FOUND; }