Mercurial > emacs
comparison src/coding.c @ 90070:95879cc1ed20
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
| author | Miles Bader <miles@gnu.org> |
|---|---|
| date | Sun, 02 Jan 2005 09:13:19 +0000 |
| parents | 48210be97b12 2eadf4401d2d |
| children | 30ad2795fdab |
comparison
equal
deleted
inserted
replaced
| 90069:fa0a5c4db2c8 | 90070:95879cc1ed20 |
|---|---|
| 155 static int | 155 static int |
| 156 detect_coding_XXX (coding, detect_info) | 156 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; |
| 165 ...; | 165 ...; |
| 166 | 166 |
| 203 #if 0 | 203 #if 0 |
| 204 static void | 204 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; |
| 217 int multibytep = coding->src_multibyte; | 217 int multibytep = coding->src_multibyte; |
| 218 | 218 |
