Mercurial > emacs
comparison src/coding.h @ 104060:eaf56f321ac0
* coding.h (decode_coding_string, encode_coding_string): Use
SCHARS macro.
| author | Ken Raeburn <raeburn@raeburn.org> |
|---|---|
| date | Sat, 25 Jul 2009 07:43:08 +0000 |
| parents | 578826d532dc |
| children | bd10839bac0e |
comparison
equal
deleted
inserted
replaced
| 104059:3750eeb20ab9 | 104060:eaf56f321ac0 |
|---|---|
| 732 from, CHAR_TO_BYTE (from), \ | 732 from, CHAR_TO_BYTE (from), \ |
| 733 to, CHAR_TO_BYTE (to), Fcurrent_buffer ()) | 733 to, CHAR_TO_BYTE (to), Fcurrent_buffer ()) |
| 734 | 734 |
| 735 | 735 |
| 736 #define decode_coding_string(coding, string, nocopy) \ | 736 #define decode_coding_string(coding, string, nocopy) \ |
| 737 decode_coding_object (coding, string, 0, 0, XSTRING (string)->size, \ | 737 decode_coding_object (coding, string, 0, 0, SCHARS (string), \ |
| 738 STRING_BYTES (XSTRING (string)), Qt) | 738 STRING_BYTES (XSTRING (string)), Qt) |
| 739 | 739 |
| 740 #define encode_coding_string(coding, string, nocopy) \ | 740 #define encode_coding_string(coding, string, nocopy) \ |
| 741 (encode_coding_object (coding, string, 0, 0, XSTRING (string)->size, \ | 741 (encode_coding_object (coding, string, 0, 0, SCHARS (string), \ |
| 742 STRING_BYTES (XSTRING (string)), Qt), \ | 742 STRING_BYTES (XSTRING (string)), Qt), \ |
| 743 (coding)->dst_object) | 743 (coding)->dst_object) |
| 744 | 744 |
| 745 | 745 |
| 746 #define decode_coding_c_string(coding, src, bytes, dst_object) \ | 746 #define decode_coding_c_string(coding, src, bytes, dst_object) \ |
