- return pos_byte - opos_byte;
-}
-
-/* Adjust the position TARGET/TARGET_BYTE for the combining of NBYTES
- following the position POS/POS_BYTE to the character preceding POS.
- If TARGET is after POS+NBYTES, we only have to adjust the character
- position TARGET, else, if TARGET is after POS, we have to adjust
- both the character position TARGET and the byte position
- TARGET_BYTE, else we don't have to do any adjustment. */
-
-#define ADJUST_CHAR_POS(target, target_byte) \
- do { \
- if (target > pos + nbytes) \
- target -= nbytes; \
- else if (target >= pos) \
- { \
- target = pos; \
- target_byte = pos_byte + nbytes; \
- } \
- } while (0)
-
-/* Combine NBYTES stray trailing-codes, which were formerly separate
- characters, with the preceding character. These bytes
- are located after position POS / POS_BYTE, and the preceding character
- is located just before that position. */
-
-static void
-combine_bytes (pos, pos_byte, nbytes)
- int pos, pos_byte, nbytes;
-{
- /* Adjust all markers. */
- adjust_markers_for_delete (pos, pos_byte, pos + nbytes, pos_byte);