diff options
| author | Miles Bader | 2005-01-02 09:13:19 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-01-02 09:13:19 +0000 |
| commit | f1d34bcacd8dd9d730000f1fe8827559e1c89683 (patch) | |
| tree | 9fd51451ad8b295052bf912ed49c73d7b4d1c9a3 /src/coding.c | |
| parent | 0e9dd01c1246ee481efa3e71462d9db952072176 (diff) | |
| parent | 553fd77e2511cdc4d1b45933f237c724ee72c3b9 (diff) | |
| download | emacs-f1d34bcacd8dd9d730000f1fe8827559e1c89683.tar.gz emacs-f1d34bcacd8dd9d730000f1fe8827559e1c89683.zip | |
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-81
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-748
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-749
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-750
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-751
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-753
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-754
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-755
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-757
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-78
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-79
- miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-80
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-81
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-82
Update from CVS
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/coding.c b/src/coding.c index 166cb036474..635031772ca 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -157,8 +157,8 @@ detect_coding_XXX (coding, detect_info) | |||
| 157 | struct coding_system *coding; | 157 | struct coding_system *coding; |
| 158 | struct coding_detection_info *detect_info; | 158 | struct coding_detection_info *detect_info; |
| 159 | { | 159 | { |
| 160 | unsigned char *src = coding->source; | 160 | const unsigned char *src = coding->source; |
| 161 | unsigned char *src_end = coding->source + coding->src_bytes; | 161 | const unsigned char *src_end = coding->source + coding->src_bytes; |
| 162 | int multibytep = coding->src_multibyte; | 162 | int multibytep = coding->src_multibyte; |
| 163 | int consumed_chars = 0; | 163 | int consumed_chars = 0; |
| 164 | int found = 0; | 164 | int found = 0; |
| @@ -205,12 +205,12 @@ static void | |||
| 205 | decode_coding_XXXX (coding) | 205 | decode_coding_XXXX (coding) |
| 206 | struct coding_system *coding; | 206 | struct coding_system *coding; |
| 207 | { | 207 | { |
| 208 | unsigned char *src = coding->source + coding->consumed; | 208 | const unsigned char *src = coding->source + coding->consumed; |
| 209 | unsigned char *src_end = coding->source + coding->src_bytes; | 209 | const unsigned char *src_end = coding->source + coding->src_bytes; |
| 210 | /* SRC_BASE remembers the start position in source in each loop. | 210 | /* SRC_BASE remembers the start position in source in each loop. |
| 211 | The loop will be exited when there's not enough source code, or | 211 | The loop will be exited when there's not enough source code, or |
| 212 | when there's no room in CHARBUF for a decoded character. */ | 212 | when there's no room in CHARBUF for a decoded character. */ |
| 213 | unsigned char *src_base; | 213 | const unsigned char *src_base; |
| 214 | /* A buffer to produce decoded characters. */ | 214 | /* A buffer to produce decoded characters. */ |
| 215 | int *charbuf = coding->charbuf + coding->charbuf_used; | 215 | int *charbuf = coding->charbuf + coding->charbuf_used; |
| 216 | int *charbuf_end = coding->charbuf + coding->charbuf_size; | 216 | int *charbuf_end = coding->charbuf + coding->charbuf_size; |