aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.h')
-rw-r--r--src/coding.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/coding.h b/src/coding.h
index fdf9b762e75..3cf28fb2458 100644
--- a/src/coding.h
+++ b/src/coding.h
@@ -449,25 +449,25 @@ struct coding_system
449 -1 in setup_coding_system, and updated by detect_coding. So, 449 -1 in setup_coding_system, and updated by detect_coding. So,
450 when this is equal to the byte length of the text being 450 when this is equal to the byte length of the text being
451 converted, we can skip the actual conversion process. */ 451 converted, we can skip the actual conversion process. */
452 EMACS_INT head_ascii; 452 ptrdiff_t head_ascii;
453 453
454 /* The following members are set by encoding/decoding routine. */ 454 /* The following members are set by encoding/decoding routine. */
455 EMACS_INT produced, produced_char, consumed, consumed_char; 455 ptrdiff_t produced, produced_char, consumed, consumed_char;
456 456
457 /* Number of error source data found in a decoding routine. */ 457 /* Number of error source data found in a decoding routine. */
458 int errors; 458 int errors;
459 459
460 /* Store the positions of error source data. */ 460 /* Store the positions of error source data. */
461 EMACS_INT *error_positions; 461 ptrdiff_t *error_positions;
462 462
463 /* Finish status of code conversion. */ 463 /* Finish status of code conversion. */
464 enum coding_result_code result; 464 enum coding_result_code result;
465 465
466 EMACS_INT src_pos, src_pos_byte, src_chars, src_bytes; 466 ptrdiff_t src_pos, src_pos_byte, src_chars, src_bytes;
467 Lisp_Object src_object; 467 Lisp_Object src_object;
468 const unsigned char *source; 468 const unsigned char *source;
469 469
470 EMACS_INT dst_pos, dst_pos_byte, dst_bytes; 470 ptrdiff_t dst_pos, dst_pos_byte, dst_bytes;
471 Lisp_Object dst_object; 471 Lisp_Object dst_object;
472 unsigned char *destination; 472 unsigned char *destination;
473 473
@@ -704,13 +704,13 @@ extern Lisp_Object coding_inherit_eol_type (Lisp_Object, Lisp_Object);
704extern Lisp_Object complement_process_encoding_system (Lisp_Object); 704extern Lisp_Object complement_process_encoding_system (Lisp_Object);
705 705
706extern int decode_coding_gap (struct coding_system *, 706extern int decode_coding_gap (struct coding_system *,
707 EMACS_INT, EMACS_INT); 707 ptrdiff_t, ptrdiff_t);
708extern void decode_coding_object (struct coding_system *, 708extern void decode_coding_object (struct coding_system *,
709 Lisp_Object, EMACS_INT, EMACS_INT, 709 Lisp_Object, ptrdiff_t, ptrdiff_t,
710 EMACS_INT, EMACS_INT, Lisp_Object); 710 ptrdiff_t, ptrdiff_t, Lisp_Object);
711extern void encode_coding_object (struct coding_system *, 711extern void encode_coding_object (struct coding_system *,
712 Lisp_Object, EMACS_INT, EMACS_INT, 712 Lisp_Object, ptrdiff_t, ptrdiff_t,
713 EMACS_INT, EMACS_INT, Lisp_Object); 713 ptrdiff_t, ptrdiff_t, Lisp_Object);
714 714
715/* Macros for backward compatibility. */ 715/* Macros for backward compatibility. */
716 716