Mercurial > hg > xemacs-beta
comparison src/text.c @ 2956:ee35a8fdcfcd
[xemacs-hg @ 2005-09-27 05:29:41 by ben]
fix compilation warnings
text.c, event-Xt.c, lisp.h, number-gmp.c, number-gmp.h: Fix compilation warnings. A couple of changes of new -> new_,
'foo -> `foo'.
author | ben |
---|---|
date | Tue, 27 Sep 2005 05:29:45 +0000 |
parents | e01408ac6580 |
children | 6c7605dfcf07 |
comparison
equal
deleted
inserted
replaced
2955:4d269e525e21 | 2956:ee35a8fdcfcd |
---|---|
1684 int | 1684 int |
1685 wcscmp_ascii (const wchar_t *s1, const Ascbyte *s2) | 1685 wcscmp_ascii (const wchar_t *s1, const Ascbyte *s2) |
1686 { | 1686 { |
1687 while (*s1 && *s2) | 1687 while (*s1 && *s2) |
1688 { | 1688 { |
1689 if (*s1 != *s2) | 1689 if (*s1 != (wchar_t) *s2) |
1690 break; | 1690 break; |
1691 s1++, s2++; | 1691 s1++, s2++; |
1692 } | 1692 } |
1693 | 1693 |
1694 return *s1 - *s2; | 1694 return *s1 - *s2; |
1807 Ichar ch = itext_ichar_fmt (srcp, srcfmt, srcobj); \ | 1807 Ichar ch = itext_ichar_fmt (srcp, srcfmt, srcobj); \ |
1808 Bytecount len = ichar_len_fmt (ch, dstfmt); \ | 1808 Bytecount len = ichar_len_fmt (ch, dstfmt); \ |
1809 \ | 1809 \ |
1810 if (dstp + len <= dstend) \ | 1810 if (dstp + len <= dstend) \ |
1811 { \ | 1811 { \ |
1812 set_itext_ichar_fmt (dstp, ch, dstfmt, dstobj); \ | 1812 (void) set_itext_ichar_fmt (dstp, ch, dstfmt, dstobj); \ |
1813 dstp += len; \ | 1813 dstp += len; \ |
1814 } \ | 1814 } \ |
1815 else \ | 1815 else \ |
1816 break; \ | 1816 break; \ |
1817 INC_IBYTEPTR_FMT (srcp, srcfmt); \ | 1817 INC_IBYTEPTR_FMT (srcp, srcfmt); \ |