diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-10-16 06:43:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-10-16 06:43:28 -0700 |
commit | c7b7e82868a5fb1cd024e7570f973f5807248379 (patch) | |
tree | 5770688e0977d1d64bf27ab98842053ab766e863 /lib.h | |
parent | c9e0e299e93a5c4f9caf9df31aed18038650a7be (diff) | |
download | txr-c7b7e82868a5fb1cd024e7570f973f5807248379.tar.gz txr-c7b7e82868a5fb1cd024e7570f973f5807248379.tar.bz2 txr-c7b7e82868a5fb1cd024e7570f973f5807248379.zip |
Renaming some functions for consistency.
* combi.c (perm_list, perm_str, rperm_list, reperm_gen_fun,
rperm_vec, comb_vec, rcomb_list, rcomb_vec, rcomb_str):
Follow rename of list_vector to list_vec.
* eval.c (vector_list_s): Global variable renamed to
vec_list_s.
(expand_qquote): Follow vector_list_s to vec_list_s.
(eval_init): Follow renames of all identifiers. Functions
num-chr, chr-num, vector-list and list-vector are
registered under new names, while remaining registered
under old names.
* eval.h (vector_list_s): Declaration renamed.
* filter.c (url_encode): Follow chr_num to chr_int rename.
* lib.c (make_like, interpose, shuffle): Follow vector_list to vec_list rename.
(tolist, replace, replace_list): Follow list_vector to list_vec rename.
(num_chr): Renamed to int_chr.
(chr_num): Renamed to chr_int.
(vector_list): Renamed to vec_list.
(list_vector): Renamed to list_vec.
* lib.h (num_chr, chr_num, list_vector, vector_list):
* Declarations renamed.
* parser.y (vector): Follow vector_list to vec_list rename.
* txr.1: Updated documentation for num-chr, chr-num,
list-vector and vector-list with new names, and notes
about the old names being supported, but obsolescent.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -705,8 +705,8 @@ val chr_isupper(val ch); val chr_isxdigit(val ch); val chr_toupper(val ch); val chr_tolower(val ch); -val num_chr(val ch); -val chr_num(val num); +val int_chr(val ch); +val chr_int(val num); val chr_str(val str, val index); val chr_str_set(val str, val index, val chr); val span_str(val str, val set); @@ -812,8 +812,8 @@ val vec_push(val vec, val item); val length_vec(val vec); val size_vec(val vec); val vectorv(struct args *); -val vector_list(val list); -val list_vector(val vector); +val vec_list(val list); +val list_vec(val vector); val copy_vec(val vec); val sub_vec(val vec_in, val from, val to); val replace_vec(val vec_in, val items, val from, val to); |