* We'll fix this later when we have time.
*/
if (return_children) {
- if (strlen(return_options) > 0) {
+ if (!IsEmptyStr(return_options)) {
strcat(return_options, " ");
}
strcat(return_options, "\\HasChildren");
selection_left = 2;
paren_nest = 0;
for (i=2; i<num_parms; ++i) {
- for (j=0; j<strlen(parms[i]); ++j) {
+ for (j=0; !IsEmptyStr(&parms[i][j]); ++j) {
if (parms[i][j] == '(') ++paren_nest;
if (parms[i][j] == ')') --paren_nest;
}
extended_list_in_use = 1;
paren_nest = 0;
for (i=patterns_left; i<num_parms; ++i) {
- for (j=0; j<strlen(parms[i]); ++j) {
+ for (j=0; !IsEmptyStr(&parms[i][j]); ++j) {
if (parms[i][j] == '(') ++paren_nest;
if (parms[i][j] == ')') --paren_nest;
}
extended_list_in_use = 1;
paren_nest = 0;
for (i=return_left; i<num_parms; ++i) {
- for (j=0; j<strlen(parms[i]); ++j) {
+ for (j=0; !IsEmptyStr(&parms[i][j]); ++j) {
if (parms[i][j] == '(') ++paren_nest;
if (parms[i][j] == ')') --paren_nest;
}
* hierarchy delimiter and the root name of the name given in the
* reference parameter.
*/
- if ( (strlen(patterns[0]) == 0) && (extended_list_in_use == 0) ) {
+ if ( (IsEmptyStr(patterns[0])) && (extended_list_in_use == 0) ) {
cprintf("* %s (\\Noselect) \"/\" \"\"\r\n", verb);
}