Mercurial > hg > xemacs-beta
comparison src/mule-charset.c @ 647:b39c14581166
[xemacs-hg @ 2001-08-13 04:45:47 by ben]
removal of unsigned, size_t, etc.
author | ben |
---|---|
date | Mon, 13 Aug 2001 04:46:48 +0000 |
parents | 190b164ddcac |
children | fdefd0186b75 |
comparison
equal
deleted
inserted
replaced
646:00c54252fe4f | 647:b39c14581166 |
---|---|
327 Return the number of bytes copied. */ | 327 Return the number of bytes copied. */ |
328 | 328 |
329 Bytecount | 329 Bytecount |
330 non_ascii_charptr_copy_char (const Bufbyte *src, Bufbyte *dst) | 330 non_ascii_charptr_copy_char (const Bufbyte *src, Bufbyte *dst) |
331 { | 331 { |
332 unsigned int bytes = REP_BYTES_BY_FIRST_BYTE (*src); | 332 Bytecount bytes = REP_BYTES_BY_FIRST_BYTE (*src); |
333 unsigned int i; | 333 Bytecount i; |
334 for (i = bytes; i; i--, dst++, src++) | 334 for (i = bytes; i; i--, dst++, src++) |
335 *dst = *src; | 335 *dst = *src; |
336 return bytes; | 336 return bytes; |
337 } | 337 } |
338 | 338 |
348 Emchar | 348 Emchar |
349 Lstream_get_emchar_1 (Lstream *stream, int ch) | 349 Lstream_get_emchar_1 (Lstream *stream, int ch) |
350 { | 350 { |
351 Bufbyte str[MAX_EMCHAR_LEN]; | 351 Bufbyte str[MAX_EMCHAR_LEN]; |
352 Bufbyte *strptr = str; | 352 Bufbyte *strptr = str; |
353 unsigned int bytes; | 353 Bytecount bytes; |
354 | 354 |
355 str[0] = (Bufbyte) ch; | 355 str[0] = (Bufbyte) ch; |
356 | 356 |
357 for (bytes = REP_BYTES_BY_FIRST_BYTE (ch) - 1; bytes; bytes--) | 357 for (bytes = REP_BYTES_BY_FIRST_BYTE (ch) - 1; bytes; bytes--) |
358 { | 358 { |