Mercurial > hg > xemacs-beta
comparison src/fns.c @ 5036:9624523604c5
Use better types when ESCAPECHAR is specified, split_string_by_ichar_1
src/ChangeLog addition:
2010-02-19 Aidan Kehoe <kehoea@parhasard.net>
* fns.c (split_string_by_ichar_1):
Use better types (e.g., not an Ichar for a buffer size) in this
function when dealing with ESCAPECHAR.
tests/ChangeLog addition:
2010-02-19 Aidan Kehoe <kehoea@parhasard.net>
* automated/lisp-tests.el:
Change the #'split-string-by-char text to use US federal
government information instead of a couple of sentences from the
OED; the latter would probably have qualified as non-infringement,
but with the former the question won't arise.
(The German text in the same tests is from a very public domain
19th-century work.)
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Fri, 19 Feb 2010 23:46:53 +0000 |
parents | b1e48555be7d |
children | c3d372419e09 b5df3737028a |
comparison
equal
deleted
inserted
replaced
5035:b1e48555be7d | 5036:9624523604c5 |
---|---|
1068 | 1068 |
1069 if (unescape) | 1069 if (unescape) |
1070 { | 1070 { |
1071 Ibyte unescape_buffer[64], *unescape_buffer_ptr = unescape_buffer, | 1071 Ibyte unescape_buffer[64], *unescape_buffer_ptr = unescape_buffer, |
1072 escaped[MAX_ICHAR_LEN], *unescape_cursor; | 1072 escaped[MAX_ICHAR_LEN], *unescape_cursor; |
1073 int deleting_escapes, previous_escaped, escaped_len; | 1073 Bytecount unescape_buffer_size = countof (unescape_buffer), |
1074 Ichar pchar, unescape_buffer_size = countof (unescape_buffer); | 1074 escaped_len = set_itext_ichar (escaped, escapechar); |
1075 | 1075 Boolint deleting_escapes, previous_escaped; |
1076 escaped_len = set_itext_ichar (escaped, escapechar); | 1076 Ichar pchar; |
1077 | 1077 |
1078 while (1) | 1078 while (1) |
1079 { | 1079 { |
1080 const Ibyte *p = string, *cursor; | 1080 const Ibyte *p = string, *cursor; |
1081 deleting_escapes = 0; | 1081 deleting_escapes = 0; |