aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/coding.c b/src/coding.c
index be7166e8a14..42f342c390f 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -855,7 +855,7 @@ static void coding_alloc_by_making_gap (struct coding_system *,
855static unsigned char *alloc_destination (struct coding_system *, 855static unsigned char *alloc_destination (struct coding_system *,
856 ptrdiff_t, unsigned char *); 856 ptrdiff_t, unsigned char *);
857static void setup_iso_safe_charsets (Lisp_Object); 857static void setup_iso_safe_charsets (Lisp_Object);
858static int encode_designation_at_bol (struct coding_system *, 858static ptrdiff_t encode_designation_at_bol (struct coding_system *,
859 int *, int *, unsigned char *); 859 int *, int *, unsigned char *);
860static int detect_eol (const unsigned char *, 860static int detect_eol (const unsigned char *,
861 ptrdiff_t, enum coding_category); 861 ptrdiff_t, enum coding_category);
@@ -4351,7 +4351,7 @@ encode_invocation_designation (struct charset *charset,
4351 If the current block ends before any end-of-line, we may fail to 4351 If the current block ends before any end-of-line, we may fail to
4352 find all the necessary designations. */ 4352 find all the necessary designations. */
4353 4353
4354static int 4354static ptrdiff_t
4355encode_designation_at_bol (struct coding_system *coding, 4355encode_designation_at_bol (struct coding_system *coding,
4356 int *charbuf, int *charbuf_end, 4356 int *charbuf, int *charbuf_end,
4357 unsigned char *dst) 4357 unsigned char *dst)
@@ -6849,7 +6849,7 @@ produce_chars (struct coding_system *coding, Lisp_Object translation_table,
6849 dst_end = coding->destination + coding->dst_bytes; 6849 dst_end = coding->destination + coding->dst_bytes;
6850 coding_set_source (coding); 6850 coding_set_source (coding);
6851 src = coding->source + offset; 6851 src = coding->source + offset;
6852 src_end = coding->source + coding->src_bytes; 6852 src_end = coding->source + coding->consumed;
6853 if (EQ (coding->src_object, coding->dst_object)) 6853 if (EQ (coding->src_object, coding->dst_object))
6854 dst_end = (unsigned char *) src; 6854 dst_end = (unsigned char *) src;
6855 } 6855 }
@@ -6883,7 +6883,7 @@ produce_chars (struct coding_system *coding, Lisp_Object translation_table,
6883 dst_end = coding->destination + coding->dst_bytes; 6883 dst_end = coding->destination + coding->dst_bytes;
6884 coding_set_source (coding); 6884 coding_set_source (coding);
6885 src = coding->source + offset; 6885 src = coding->source + offset;
6886 src_end = coding->source + coding->src_bytes; 6886 src_end = coding->source + coding->consumed;
6887 if (EQ (coding->src_object, coding->dst_object)) 6887 if (EQ (coding->src_object, coding->dst_object))
6888 dst_end = (unsigned char *) src; 6888 dst_end = (unsigned char *) src;
6889 } 6889 }
@@ -6904,7 +6904,7 @@ produce_chars (struct coding_system *coding, Lisp_Object translation_table,
6904 dst = alloc_destination (coding, require, dst); 6904 dst = alloc_destination (coding, require, dst);
6905 coding_set_source (coding); 6905 coding_set_source (coding);
6906 src = coding->source + offset; 6906 src = coding->source + offset;
6907 src_end = coding->source + coding->src_bytes; 6907 src_end = coding->source + coding->consumed;
6908 } 6908 }
6909 } 6909 }
6910 produced_chars = coding->consumed_char; 6910 produced_chars = coding->consumed_char;