* fns.c (validate_subarray): Rename from validate_substring,
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Apr 2014 20:18:12 +0000 (13:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Apr 2014 20:18:12 +0000 (13:18 -0700)
commit8ec49c53c67cfaee550f275c1a8b68d65b9b606f
tree570a656b003ee5de09623df3a8d89f3fd1112e11
parent21c625fdd0fffffb8420ec25fbcba1aed7e05248
* fns.c (validate_subarray): Rename from validate_substring,

since it works for vectors too.  New arg ARRAY.  Optimize for the
non-nil case.  Instead of returning bool, throw an error if out of
range, so that the caller needn't do that.  All uses changed.
Report original values if out of range.
(Fsubstring, Fsubstring_no_properties, secure_hash):
Also optimize the case where FROM is 0 or TO is the size.
src/ChangeLog
src/fns.c