Mercurial > hg > xemacs-beta
comparison src/objects-xlike-inc.c @ 4124:9a633a00c3f2
[xemacs-hg @ 2007-08-17 08:08:05 by crestani]
2007-08-15 Marcus Crestani <crestani@xemacs.org>
* database.c (dbm_map): Add typecast.
* database.c (dbm_get): Add typecast.
* gc.c (gc_state_type): Declare type.
* objects-tty.c (tty_find_charset_font): Add typecast.
* objects-xlike-inc.c (count_hyphens): Add typecast.
* objects-xlike-inc.c (endif): Add typecast.
author | crestani |
---|---|
date | Fri, 17 Aug 2007 08:08:10 +0000 |
parents | 5989b9bbb612 |
children | 4143b78d0df0 |
comparison
equal
deleted
inserted
replaced
4123:5333f383efbd | 4124:9a633a00c3f2 |
---|---|
59 int hyphen_count = 0; | 59 int hyphen_count = 0; |
60 const Ibyte *hyphening = str; | 60 const Ibyte *hyphening = str; |
61 const Ibyte *new_hyphening; | 61 const Ibyte *new_hyphening; |
62 | 62 |
63 for (hyphen_count = 0; | 63 for (hyphen_count = 0; |
64 NULL != (new_hyphening = memchr((const void *)hyphening, '-', length)); | 64 NULL != (new_hyphening = (Ibyte *) memchr((const void *)hyphening, '-', length)); |
65 hyphen_count++) | 65 hyphen_count++) |
66 { | 66 { |
67 ++new_hyphening; | 67 ++new_hyphening; |
68 length -= new_hyphening - hyphening; | 68 length -= new_hyphening - hyphening; |
69 hyphening = new_hyphening; | 69 hyphening = new_hyphening; |
784 #define FALLBACK_ASCII_REGISTRY "iso8859-1" | 784 #define FALLBACK_ASCII_REGISTRY "iso8859-1" |
785 | 785 |
786 for (j = 0; j < registries_len; ++j) | 786 for (j = 0; j < registries_len; ++j) |
787 { | 787 { |
788 if (0 == qxestrcasecmp(XSTRING_DATA(XVECTOR_DATA(registries)[j]), | 788 if (0 == qxestrcasecmp(XSTRING_DATA(XVECTOR_DATA(registries)[j]), |
789 FALLBACK_ASCII_REGISTRY)) | 789 (Ibyte *) FALLBACK_ASCII_REGISTRY)) |
790 { | 790 { |
791 have_latin1 = 1; | 791 have_latin1 = 1; |
792 break; | 792 break; |
793 } | 793 } |
794 } | 794 } |