Lines Matching defs:fx
564 int fx, sx;
708 * fx is the number of characters we need to insert/delete: in the
711 fx = (int) ((nsb - nfd) - (osb - ofd));
719 if (fx > 0) {
735 if (fx < 0) {
765 * Now that we are done with pragmatics we recompute fx, sx
767 fx = (int) ((nsb - nfd) - (osb - ofd));
809 * fx is the difference in length between the the chars between nfd and
838 if ((nsb != nfd) && fx > 0 && ((p - old) + fx < TermH)) {
854 * insert fx chars of new starting at nfd
856 if (fx > 0) {
861 Insert_write(nfd, fx);
862 str_insert(old, (int) (ofd - old), TermH, nfd, fx);
865 * write (nsb-nfd) - fx chars of new starting at (nfd + fx)
867 so_write(nfd + fx, (nsb - nfd) - fx);
868 str_cp(ofd + fx, nfd + fx, (int) ((nsb - nfd) - fx));
882 else if (fx < 0) {
898 * fx is less than zero *always* here but we check for code
901 if (fx < 0) {
906 DeleteChars(-fx);
907 str_delete(old, (int) (ofd - old), TermH, -fx);
942 fx = 0;
946 reprintf("second diff delete at %d...\r\n", (ose - old) + fx);
952 * fx is the number of characters inserted (+) or deleted (-)
955 MoveToChar((ose - old) + fx);
980 int olen = (int) (oe - old + fx);
1004 if ((nsb != nfd) && (osb - ofd) <= (nsb - nfd) && (fx == 0)) {
1018 * We have to recalculate fx here because we set it
1022 fx = (int) ((nsb - nfd) - (osb - ofd));
1023 if (fx > 0) {
1025 * insert fx chars of new starting at nfd
1031 Insert_write(nfd, fx);
1032 str_insert(old, (int) (ofd - old), TermH, nfd, fx);
1036 * write (nsb-nfd) - fx chars of new starting at (nfd + fx)
1038 so_write(nfd + fx, (nsb - nfd) - fx);
1039 str_cp(ofd + fx, nfd + fx, (int) ((nsb - nfd) - fx));