aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2005-03-29 00:34:38 +0000
committerKenichi Handa2005-03-29 00:34:38 +0000
commitd4850d674381d9493c94d30f8944a765e79537eb (patch)
tree04e64e11a6b99a4e0005655deed5b4d56fc33802 /src
parente8d0ae6b0b835d73ae5b4318381dbfe90d263efb (diff)
downloademacs-d4850d674381d9493c94d30f8944a765e79537eb.tar.gz
emacs-d4850d674381d9493c94d30f8944a765e79537eb.zip
(decode_coding_object): Use safe_call1 instead of call1.
(encode_coding_object): Use safe_call instead of call2.
Diffstat (limited to 'src')
-rw-r--r--src/coding.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/coding.c b/src/coding.c
index 6158409a713..c36060cad44 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -6812,8 +6812,8 @@ decode_coding_object (coding, src_object, from, from_byte, to, to_byte,
6812 6812
6813 TEMP_SET_PT_BOTH (coding->dst_pos, coding->dst_pos_byte); 6813 TEMP_SET_PT_BOTH (coding->dst_pos, coding->dst_pos_byte);
6814 GCPRO2 (coding->src_object, coding->dst_object); 6814 GCPRO2 (coding->src_object, coding->dst_object);
6815 val = call1 (CODING_ATTR_POST_READ (attrs), 6815 val = safe_call1 (CODING_ATTR_POST_READ (attrs),
6816 make_number (coding->produced_char)); 6816 make_number (coding->produced_char));
6817 UNGCPRO; 6817 UNGCPRO;
6818 CHECK_NATNUM (val); 6818 CHECK_NATNUM (val);
6819 coding->produced_char += Z - prev_Z; 6819 coding->produced_char += Z - prev_Z;
@@ -6911,8 +6911,14 @@ encode_coding_object (coding, src_object, from, from_byte, to, to_byte,
6911 set_buffer_internal (XBUFFER (coding->src_object)); 6911 set_buffer_internal (XBUFFER (coding->src_object));
6912 } 6912 }
6913 6913
6914 call2 (CODING_ATTR_PRE_WRITE (attrs), 6914 {
6915 make_number (BEG), make_number (Z)); 6915 Lisp_Object args[3];
6916
6917 args[0] = CODING_ATTR_PRE_WRITE (attrs);
6918 args[1] = make_number (BEG);
6919 args[2] = make_number (Z);
6920 safe_call (3, args);
6921 }
6916 coding->src_object = Fcurrent_buffer (); 6922 coding->src_object = Fcurrent_buffer ();
6917 if (BEG != GPT) 6923 if (BEG != GPT)
6918 move_gap_both (BEG, BEG_BYTE); 6924 move_gap_both (BEG, BEG_BYTE);