1.1 --- a/core/vm/sp_vm_basecontext.cpp Mon Jan 01 20:58:02 2007 +0000
1.2 +++ b/core/vm/sp_vm_basecontext.cpp Mon Jan 01 21:18:35 2007 +0000
1.3 @@ -258,6 +258,7 @@
1.4 high = ctx->plugin->info.natives_num - 1;
1.5 low = 0;
1.6
1.7 +#if 0
1.8 while (low <= high)
1.9 {
1.10 mid = (low + high) / 2;
1.11 @@ -275,6 +276,19 @@
1.12 high = mid - 1;
1.13 }
1.14 }
1.15 +#else
1.16 + for (uint32_t i=0; i<ctx->plugin->info.natives_num; i++)
1.17 + {
1.18 + if (strcmp(ctx->natives[i].name, name) == 0)
1.19 + {
1.20 + if (index)
1.21 + {
1.22 + *index = i;
1.23 + }
1.24 + return SP_ERROR_NONE;
1.25 + }
1.26 + }
1.27 +#endif
1.28
1.29 return SP_ERROR_NOT_FOUND;
1.30 }