diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2024-06-20 00:09:25 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-06-20 00:09:25 -0700 |
commit | 6bd0f5494990a18352de716987460914858d2f82 (patch) | |
tree | 8e36724451ab2f6199e387cdfc0daaba75a14b13 /parser.l | |
parent | 635aa6b2b6395a1f7c20cd4182f7be261f98b36e (diff) | |
download | txr-6bd0f5494990a18352de716987460914858d2f82.tar.gz txr-6bd0f5494990a18352de716987460914858d2f82.tar.bz2 txr-6bd0f5494990a18352de716987460914858d2f82.zip |
length: support string ranges.
For calculating the length of a range, we can't just do
numeric subtractions because it fails for string ranges.
* lib.c (length_str_range, length_rng): New static functions.
(length): Use length_rng for ranges.
Diffstat (limited to 'parser.l')
0 files changed, 0 insertions, 0 deletions