--- rxvt-unicode/src/xdefaults.C 2011/04/30 13:11:34 1.153 +++ rxvt-unicode/src/xdefaults.C 2011/05/30 18:39:04 1.154 @@ -399,7 +399,7 @@ case 0: /* brief listing */ rxvt_log (" [-help] [--help]\n"); - for (col = 1, i = 0; i < ARRAY_LENGTH(optList); i++) + for (col = 1, i = 0; i < ecb_array_length (optList); i++) if (optList[i].desc != NULL) { int len = 0; @@ -427,7 +427,7 @@ case 1: /* full command-line listing */ rxvt_log (" [options] [-e command args]\n\nwhere options include:\n"); - for (i = 0; i < ARRAY_LENGTH(optList); i++) + for (i = 0; i < ecb_array_length (optList); i++) if (optList[i].desc != NULL) { assert (optList[i].opt != NULL); @@ -446,7 +446,7 @@ rxvt_log (" [options] [-e command args]\n\n" "where resources (long-options) include:\n"); - for (i = 0; i < ARRAY_LENGTH(optList); i++) + for (i = 0; i < ecb_array_length (optList); i++) if (optList[i].kw != NULL) rxvt_log (" %s: %*s%s\n", optList[i].kw, @@ -509,13 +509,13 @@ rxvt_usage (0); /* feature: always try to match long-options */ - for (entry = 0; entry < ARRAY_LENGTH(optList); entry++) + for (entry = 0; entry < ecb_array_length (optList); entry++) if ((optList[entry].kw && !strcmp (opt, optList[entry].kw)) || (!longopt && optList[entry].opt && !strcmp (opt, optList[entry].opt))) break; - if (entry < ARRAY_LENGTH(optList)) + if (entry < ecb_array_length (optList)) { if (optList_isReverse (entry)) flag = !flag; @@ -587,12 +587,12 @@ * value will be a string */ int -rxvt_define_key (XrmDatabase *database UNUSED, - XrmBindingList bindings UNUSED, +rxvt_define_key (XrmDatabase *database ecb_unused, + XrmBindingList bindings ecb_unused, XrmQuarkList quarks, - XrmRepresentation *type UNUSED, + XrmRepresentation *type ecb_unused, XrmValue *value, - XPointer closure UNUSED) + XPointer closure ecb_unused) { int last; @@ -665,7 +665,7 @@ { unsigned int i; - for (i=0; i < ARRAY_LENGTH(keysym_vocabulary); ++i) + for (i=0; i < ecb_array_length (keysym_vocabulary); ++i) { if (strncmp (str, keysym_vocabulary [i].name, keysym_vocabulary [i].len) == 0) { @@ -675,7 +675,7 @@ } } - if (i >= ARRAY_LENGTH(keysym_vocabulary)) + if (i >= ecb_array_length (keysym_vocabulary)) return -1; if (*str == '-') @@ -745,7 +745,7 @@ /* * Query resources for options that affect us */ - for (int entry = 0; entry < ARRAY_LENGTH(optList); entry++) + for (int entry = 0; entry < ecb_array_length (optList); entry++) { int s; const char *kw = optList[entry].kw;