/*
* Diagnostic function: verify that a termline has a correct
* combining character structure.
+ *
+ * XXX-REMOVE-BEFORE-RELEASE: This is a performance-intensive
+ * check. Although it's currently really useful for getting all the
+ * bugs out of the new cc stuff, it will want to be absent when we
+ * make a proper release.
*/
static void cc_check(termline *line)
{
line->chars[newcc].chr = chr;
line->chars[col].cc_next = newcc - col;
- cc_check(line);
+ cc_check(line); /* XXX-REMOVE-BEFORE-RELEASE */
}
/*
line->chars[origcol].cc_next = 0;
- cc_check(line);
+ cc_check(line); /* XXX-REMOVE-BEFORE-RELEASE */
}
/*
src += src->cc_next;
add_cc(destline, x, src->chr);
}
+
+ cc_check(destline); /* XXX-REMOVE-BEFORE-RELEASE */
}
/*
/* Ensure the original cell doesn't have a cc list. */
src->cc_next = 0;
+
+ cc_check(line); /* XXX-REMOVE-BEFORE-RELEASE */
}
/*
for (i = oldlen; i < cols; i++)
line->chars[i] = term->basic_erase_char;
- cc_check(line);
+ cc_check(line); /* XXX-REMOVE-BEFORE-RELEASE */
}
}
} else {
while (lines > 0) {
line = delpos234(term->screen, topline);
- cc_check(line);
+ cc_check(line); /* XXX-REMOVE-BEFORE-RELEASE */
if (sb && term->savelines > 0) {
int sblen = count234(term->scrollback);
/*