if ((l->method_list = NULL) || (l->method_list->nelts == 0)) {
return 0;
}
+ methods = (char **)l->method_list->elts;
for (i = 0; i < l->method_list->nelts; ++i) {
if (strcmp(method, methods[i]) == 0) {
return 1;
}
return 0;
}
-
+
/*
* Add the specified method to a method list (if it isn't already there).
*/
* Otherwise, see if the method name is in the array of string names.
*/
if (l->method_list->nelts != 0) {
+ methods = (char **)l->method_list->elts;
for (i = 0; i < l->method_list->nelts; ++i) {
if (strcmp(method, methods[i]) == 0) {
return;
*/
if (l->method_list->nelts != 0) {
register int i, j, k;
+ methods = (char **)l->method_list->elts;
for (i = 0; i < l->method_list->nelts; ) {
if (strcmp(method, methods[i]) == 0) {
for (j = i, k = i + 1; k < l->method_list->nelts; ++j, ++k) {