summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--RELNOTES46
-rw-r--r--arith.c2
-rwxr-xr-xconfigure2
-rw-r--r--share/txr/stdlib/ver.txr2
-rw-r--r--txr.14
-rw-r--r--txr.vim83
7 files changed, 103 insertions, 46 deletions
diff --git a/ChangeLog b/ChangeLog
index ae983011..4f3519a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2014-07-21 Kaz Kylheku <kaz@kylheku.com>
+
+ * RELNOTES: Updated.
+
+ * configure, txr.1: Bumped version.
+
+ * share/txr/stdlib/ver.txr: Likewise
+
+ * arith.c (log2): Change to static.
+
2014-07-22 Kaz Kylheku <kaz@kylheku.com>
* eval.c (me_case): Fix quoting issue in expansion.
diff --git a/RELNOTES b/RELNOTES
index 1d330fe6..e363882a 100644
--- a/RELNOTES
+++ b/RELNOTES
@@ -1,3 +1,49 @@
+ TXR 93
+ 2014-07-22
+
+
+ Features
+
+ - New list munging functions interpose, mapdo, and juxt.
+
+ - New macros caseq, caseql and casequal based on Lisp's case construct.
+
+ - New math function log2 for computing base 2 logarithm.
+
+ - New function get-lines for obtaining list of lines from a stream.
+ Actually this is not new; it is a nice synonym for lazy-stream-cons.
+
+ - New functions put-lines and put-strings.
+
+ - Missing function lconsp added for testing whether an object is
+ a lazy cons.
+
+ - Documented existing function hash-construct.
+
+ - search-str now supports a negative starting position, which counts from the
+ tail of the string.
+
+ - The division function / can now be used with one argument, denoting
+ the reciprocal operation.
+
+ Bugs
+
+ - Bindings created using -D command line option are now visible to code
+ executed via -e or -p later in the command line.
+
+ - Fixed broken @(eol) directive; was behaving as a complete match, so that
+ subsequent directives are ignored.
+
+ - Obscure bug-fixes in @(do) and @(require), involving code that invokes
+ pattern funcions, and the visibily of bindings.
+
+ - Fixed hash-construct so it correctly works on an empty vector.
+
+ - Alternative stack (sigaltstack) is now automatically used for SIGBUS
+ handlers, not only SIGSEGV.
+
+
+
TXR 92
2014-07-11
diff --git a/arith.c b/arith.c
index 7051ddb8..3a9f7b78 100644
--- a/arith.c
+++ b/arith.c
@@ -1466,7 +1466,7 @@ static void log2_init(void)
l2 = log(2.0);
}
-double log2(double x)
+static double log2(double x)
{
return log(x)/l2;
}
diff --git a/configure b/configure
index 0d36cff6..70417b34 100755
--- a/configure
+++ b/configure
@@ -407,7 +407,7 @@ fi
#
-txr_ver=92
+txr_ver=93
#
# The all important banner.
diff --git a/share/txr/stdlib/ver.txr b/share/txr/stdlib/ver.txr
index 6a535a7e..b2164ffe 100644
--- a/share/txr/stdlib/ver.txr
+++ b/share/txr/stdlib/ver.txr
@@ -1 +1 @@
-@(do (defvar *lib-version* 92))
+@(do (defvar *lib-version* 93))
diff --git a/txr.1 b/txr.1
index 1de29b62..15d91704 100644
--- a/txr.1
+++ b/txr.1
@@ -21,9 +21,9 @@
.\"IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\"WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-.TH "TXR" 1 2014-07-11 "Utility Commands" "TXR Text Processing Language" "Kaz Kylheku"
+.TH "TXR" 1 2014-07-21 "Utility Commands" "TXR Text Processing Language" "Kaz Kylheku"
.SH NAME
-txr \- text processing language (version 92)
+txr \- text processing language (version 93)
.SH SYNOPSIS
.B txr [ options ] query-file { data-file }*
.sp
diff --git a/txr.vim b/txr.vim
index 27d77722..26ab083b 100644
--- a/txr.vim
+++ b/txr.vim
@@ -48,47 +48,48 @@ syn keyword txl_keyword contained append-each append-each* apply ash
syn keyword txl_keyword contained asin assoc assql atan
syn keyword txl_keyword contained atan2 atom bignump bit
syn keyword txl_keyword contained block boundp break-str call
-syn keyword txl_keyword contained car cat-str cat-vec catch
-syn keyword txl_keyword contained cdr ceil chain chdir
-syn keyword txl_keyword contained chr-isalnum chr-isalpha chr-isascii chr-iscntrl
-syn keyword txl_keyword contained chr-isdigit chr-isgraph chr-islower chr-isprint
-syn keyword txl_keyword contained chr-ispunct chr-isspace chr-isupper chr-isxdigit
-syn keyword txl_keyword contained chr-num chr-str chr-str-set chr-tolower
-syn keyword txl_keyword contained chr-toupper chrp close-stream closelog
-syn keyword txl_keyword contained cmp-str collect-each collect-each* comb
-syn keyword txl_keyword contained compl-span-str cond cons conses
-syn keyword txl_keyword contained conses* consp copy copy-alist
-syn keyword txl_keyword contained copy-cons copy-hash copy-list copy-str
-syn keyword txl_keyword contained copy-vec cos count-if countq
-syn keyword txl_keyword contained countql countqual cum-norm-dist daemon
-syn keyword txl_keyword contained dec defmacro defsymacro defun
-syn keyword txl_keyword contained defvar del delay delete-package
-syn keyword txl_keyword contained do dohash downcase-str dwim
-syn keyword txl_keyword contained each each* empty env
-syn keyword txl_keyword contained env-fbind env-hash env-vbind eq
-syn keyword txl_keyword contained eql equal errno error
-syn keyword txl_keyword contained eval evenp exit exp
-syn keyword txl_keyword contained expt exptmod false fbind
-syn keyword txl_keyword contained fboundp fifth filter-equal filter-string-tree
-syn keyword txl_keyword contained find find-if find-max find-min
-syn keyword txl_keyword contained find-package first fixnump flatten
-syn keyword txl_keyword contained flatten* flet flip flo-int
-syn keyword txl_keyword contained flo-str floatp floor flush-stream
-syn keyword txl_keyword contained for for* force format
-syn keyword txl_keyword contained fourth fun func-get-env func-get-form
-syn keyword txl_keyword contained func-set-env functionp gcd gen
-syn keyword txl_keyword contained generate gensym get-byte get-char
-syn keyword txl_keyword contained get-hash-userdata get-line get-lines get-list-from-stream
-syn keyword txl_keyword contained get-sig-handler get-string get-string-from-stream gethash
-syn keyword txl_keyword contained group-by gun hash hash-alist
-syn keyword txl_keyword contained hash-construct hash-count hash-diff hash-eql
-syn keyword txl_keyword contained hash-equal hash-isec hash-keys hash-pairs
-syn keyword txl_keyword contained hash-uni hash-update hash-update-1 hash-values
-syn keyword txl_keyword contained hashp html-decode html-encode iapply
-syn keyword txl_keyword contained identity ido if iff
-syn keyword txl_keyword contained iffi inc inhash int-flo
-syn keyword txl_keyword contained int-str integerp intern interp-fun-p
-syn keyword txl_keyword contained interpose ip ipf isqrt
+syn keyword txl_keyword contained car caseq caseql casequal
+syn keyword txl_keyword contained cat-str cat-vec catch cdr
+syn keyword txl_keyword contained ceil chain chdir chr-isalnum
+syn keyword txl_keyword contained chr-isalpha chr-isascii chr-iscntrl chr-isdigit
+syn keyword txl_keyword contained chr-isgraph chr-islower chr-isprint chr-ispunct
+syn keyword txl_keyword contained chr-isspace chr-isupper chr-isxdigit chr-num
+syn keyword txl_keyword contained chr-str chr-str-set chr-tolower chr-toupper
+syn keyword txl_keyword contained chrp close-stream closelog cmp-str
+syn keyword txl_keyword contained collect-each collect-each* comb compl-span-str
+syn keyword txl_keyword contained cond cons conses conses*
+syn keyword txl_keyword contained consp copy copy-alist copy-cons
+syn keyword txl_keyword contained copy-hash copy-list copy-str copy-vec
+syn keyword txl_keyword contained cos count-if countq countql
+syn keyword txl_keyword contained countqual cum-norm-dist daemon dec
+syn keyword txl_keyword contained defmacro defsymacro defun defvar
+syn keyword txl_keyword contained del delay delete-package do
+syn keyword txl_keyword contained dohash downcase-str dwim each
+syn keyword txl_keyword contained each* empty env env-fbind
+syn keyword txl_keyword contained env-hash env-vbind eq eql
+syn keyword txl_keyword contained equal errno error eval
+syn keyword txl_keyword contained evenp exit exp expt
+syn keyword txl_keyword contained exptmod false fbind fboundp
+syn keyword txl_keyword contained fifth filter-equal filter-string-tree find
+syn keyword txl_keyword contained find-if find-max find-min find-package
+syn keyword txl_keyword contained first fixnump flatten flatten*
+syn keyword txl_keyword contained flet flip flo-int flo-str
+syn keyword txl_keyword contained floatp floor flush-stream for
+syn keyword txl_keyword contained for* force format fourth
+syn keyword txl_keyword contained fun func-get-env func-get-form func-set-env
+syn keyword txl_keyword contained functionp gcd gen generate
+syn keyword txl_keyword contained gensym get-byte get-char get-hash-userdata
+syn keyword txl_keyword contained get-line get-lines get-list-from-stream get-sig-handler
+syn keyword txl_keyword contained get-string get-string-from-stream gethash group-by
+syn keyword txl_keyword contained gun hash hash-alist hash-construct
+syn keyword txl_keyword contained hash-count hash-diff hash-eql hash-equal
+syn keyword txl_keyword contained hash-isec hash-keys hash-pairs hash-uni
+syn keyword txl_keyword contained hash-update hash-update-1 hash-values hashp
+syn keyword txl_keyword contained html-decode html-encode iapply identity
+syn keyword txl_keyword contained ido if iff iffi
+syn keyword txl_keyword contained inc inhash int-flo int-str
+syn keyword txl_keyword contained integerp intern interp-fun-p interpose
+syn keyword txl_keyword contained ip ipf isqrt juxt
syn keyword txl_keyword contained keep-if keep-if* keywordp labels
syn keyword txl_keyword contained lambda last lazy-str lazy-str-force
syn keyword txl_keyword contained lazy-str-force-upto lazy-str-get-trailing-list lazy-stream-cons lazy-stringp