summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-06-10 07:29:56 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-06-10 07:29:56 -0700
commit79f55cbf6c6e7412473e119a02aa637e985721f5 (patch)
tree7f8d7fc468dc5499431e570b3704a22e243999df /lib.h
parent06e308526e9c612eaf6e36c36f2213bb915038e4 (diff)
downloadtxr-79f55cbf6c6e7412473e119a02aa637e985721f5.tar.gz
txr-79f55cbf6c6e7412473e119a02aa637e985721f5.tar.bz2
txr-79f55cbf6c6e7412473e119a02aa637e985721f5.zip
* eval.c (eval_init): Change registration of string_cmp
to cmp_str. Add registrations for str_eq, str_lt, str_gt, str_le, and str_lt. * lib.c (string_cmp): Name changes to cmp_str, and the function fixed so that it actually works. The name change doesn't affect anyone because the function was too broken to use due to the incorrect type dispatch. (string_lt): Name changes to str_lt. (str_eq, str_gt, str_le, str_ge): New functions. * lib.h (string_cmp, string_lt): Declarations renamed. (str_eq, str_gt, str_le, str_ge): New declarations. * txr.1: Document string-cmp to cmp-str rename, that string-lt is deprecated, and the new str<, str>, str>=, str<= and str= functions.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib.h b/lib.h
index 4f652e6d..157649af 100644
--- a/lib.h
+++ b/lib.h
@@ -573,8 +573,12 @@ val split_str_set(val str, val set);
val tok_str(val str, val tok_regex, val keep_sep);
val list_str(val str);
val trim_str(val str);
-val string_cmp(val astr, val bstr);
-val string_lt(val astr, val bstr);
+val cmp_str(val astr, val bstr);
+val str_eq(val astr, val bstr);
+val str_lt(val astr, val bstr);
+val str_gt(val astr, val bstr);
+val str_le(val astr, val bstr);
+val str_ge(val astr, val bstr);
val int_str(val str, val base);
val flo_str(val str);
val num_str(val str);