diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-01-26 20:35:36 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-01-26 20:35:36 -0800 |
commit | b4bca7645111c277afa6f6cde03d0f51592b4748 (patch) | |
tree | 813f8964483d3ea4fcf22dc2a61f7e6c1450553e /ChangeLog | |
parent | d011fda9b6b078f09027eb65d500c8beffc99414 (diff) | |
download | txr-b4bca7645111c277afa6f6cde03d0f51592b4748.tar.gz txr-b4bca7645111c277afa6f6cde03d0f51592b4748.tar.bz2 txr-b4bca7645111c277afa6f6cde03d0f51592b4748.zip |
* lib.c (replace_list): Always convert the input items to a list,
even in the trivial case that an empty list is being replaced.
Allow a string to be the replacement (split into a list of
characters).
(replace_str): Bugfix in assignment from vector; wrong index
used over source vector.
(split_str): If the splitting set is empty, just split the
string into characters instead of getting into an infinite loop.
(replace_vec): Allow replacement source to be a string.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,17 @@ 2012-01-26 Kaz Kylheku <kaz@kylheku.com> + * lib.c (replace_list): Always convert the input items to a list, + even in the trivial case that an empty list is being replaced. + Allow a string to be the replacement (split into a list of + characters). + (replace_str): Bugfix in assignment from vector; wrong index + used over source vector. + (split_str): If the splitting set is empty, just split the + string into characters instead of getting into an infinite loop. + (replace_vec): Allow replacement source to be a string. + +2012-01-26 Kaz Kylheku <kaz@kylheku.com> + * arith.c (plus, minus): Better wording in error messages. * eval.c (dwim_loc): Assignments to string indices and ranges |