Dianne Skoll
2f196e3c9f
Update copyright year. :)
2022-12-30 13:43:28 -05:00
Dianne Skoll
0cea410529
Add a bunch of: "SPDX-License-Identifier: GPL-2.0-only" comments.
2022-12-26 14:24:33 -05:00
Dianne Skoll
4aacf74e25
More renaming of jul -> dse
2022-12-21 13:35:12 -05:00
Dianne Skoll
387125d983
Start fixing terminology: Julian becomes DSE
...
Remind's so-called "Julian" date is not a true Julian date.
It's really the number of days since the Remind Epoch, so rename
to DSE (Days Since Epoch)
2022-12-21 13:14:00 -05:00
Dianne Skoll
c8f9773d83
Speed up FindFunc.
2022-10-14 13:53:50 -04:00
Dianne Skoll
914f03d5eb
Fix bad comment.
2022-10-14 11:45:04 -04:00
Dianne Skoll
fde5a7b4ca
Can use strcmp rather than StrCmpI in FindOperator since they are not alphabetic
2022-10-14 11:41:11 -04:00
Dianne Skoll
9d68134f0f
Make PrintValue escape only byte values < 32
2022-10-09 17:53:40 -04:00
Dianne Skoll
7218d55f08
Add $TerminalBackground special variable.
2022-10-09 12:40:48 -04:00
Dianne Skoll
18043080ba
Properly detect missing quote after escape sequence.
2022-09-23 20:42:57 -04:00
Dianne Skoll
7cd8cf3a77
Dump strings more sensibly in PrintValue.
2022-09-23 19:10:36 -04:00
Dianne Skoll
de5d1347e5
Make the operator stack static
2022-03-26 19:05:18 -04:00
Dianne Skoll
e651f92bd9
Make tests pass even if we use LTO.
2022-03-22 09:17:31 -04:00
Dianne Skoll
4d17494371
Bump copyright date.
2022-03-14 21:12:20 -04:00
Dianne Skoll
89173ce1ee
Allow logical operators to accept any non-string operands.
...
Make wouldtrig() return a date.
2022-03-04 14:59:17 -05:00
Dianne Skoll
6274cbad52
Make || return first true val and && return last val if first val is true.
2022-03-04 12:11:25 -05:00
Dianne Skoll
b758a2fea8
Tweak formatting.
2022-03-04 11:40:46 -05:00
Dianne Skoll
9b8eb2dc4c
Support calling EvalExpr recursively
2022-03-04 10:49:20 -05:00
Dianne Skoll
f616be4bdd
Add comment about operator precedence.
2022-03-04 08:16:58 -05:00
Dianne Skoll
cd68041312
Get rid of obsolete PutChar and Putc macros.
2022-02-01 16:05:06 -05:00
Dianne Skoll
8d7f9bcb8b
Make shell() obey MaxStringLen
2022-01-22 18:24:38 -05:00
Dianne Skoll
295aeb0ed8
Prevent floating-point exception if we evaluate $IntMin * (-1)
2021-08-30 12:31:43 -04:00
Dianne Skoll
34409f7a7d
Update copyright year.
2021-04-02 10:43:54 -04:00
Dianne Skoll
ef88b844fb
Catch integer overflow with "/".
2021-02-15 10:50:56 -05:00
Dianne Skoll
d667c15b25
Add overflow checks for unary minus.
2021-01-30 21:02:56 -05:00
Dianne Skoll
2123bf4b18
Check all Subtract implementations for overflow.
2021-01-30 15:15:02 -05:00
Dianne Skoll
429a64f29e
Make all + implementations consistent
2021-01-30 15:12:46 -05:00
Dianne Skoll
f39381dd6c
Check for overflow on addition of all integer types.
2021-01-30 15:07:55 -05:00
Dianne Skoll
0a9eb07f6f
Check for overflow on addition, subtraction, multiplication of integers
2021-01-30 12:56:37 -05:00
Dianne Skoll
9c287e3fd7
Check for overflow when parsing integer constant.
2021-01-29 18:09:35 -05:00
Dianne Skoll
0826678209
Make coerce from string to time and datetime accept ampm
2020-02-26 17:41:51 -05:00
Dianne Skoll
037c79fb0f
Allow times to have am/pm specifications.
2020-02-22 12:24:37 -05:00
Dianne Skoll
993373414f
Parse times and datetimes with trailing am/pm
2020-02-22 12:14:18 -05:00
Dianne Skoll
ff85325886
Support DATETIME - TIME
2020-01-01 18:00:22 -05:00
Dianne Skoll
fbbffb4672
Bump version to 3.1.18 and copyright year to 2020.
2019-12-30 11:15:00 -05:00
Dianne Skoll
422e098727
Don't use a static coerce_buf
2019-12-30 11:02:09 -05:00
Dianne Skoll
87347e30b2
Make string concatenation more efficient.
2019-12-30 10:59:32 -05:00
Dianne Skoll
4e5033dd24
Implement adding DATETIME+TIME, TIME+DATETIME and TIME+TIME
2019-12-29 18:46:10 -05:00
Dianne Skoll
3095fd7e4a
Enable warning-free compilation even with -Wextra.
2019-11-04 16:35:14 -05:00
Dianne Skoll
52d252723f
Depenguinization.
2018-11-04 10:56:47 -05:00
Dianne Skoll
84b0a96170
Accept datetimes in ISO-8601 format on input.
...
Add $DateTimeSep system variable to select T or @ as separator
on output.
2016-07-25 10:05:25 -04:00
David F. Skoll
29c8475ea9
s/David/Dianne/
2015-04-17 02:07:18 -04:00
David F. Skoll
b266b399ba
Test for fix of parse error.
...
Try REALLY hard to detect constant expressions...
2010-04-21 13:23:26 -04:00
David F. Skoll
a1faa8d804
Finish up Purge Mode:
...
o Make it recognize constant expressions (yay!)
o Make it not add a blank line to end of *.purged files.
o Make it nuke #!P comments in the source files.
2010-04-21 09:02:25 -04:00
David F. Skoll
184d29c592
More work on -j ("Purge Mode") option.
2010-04-19 15:57:35 -04:00
David F. Skoll
72de7c6b14
Make CallFunc and built-in functions re-entrant.
2009-05-26 22:35:57 -04:00
David F. Skoll
5ef4061819
Let Remind accept a date of the form YYYY-MM-DD on cmdline.
2009-02-03 23:08:27 -05:00
David F. Skoll
f470297958
Make max. string length controllable with $MaxStringLen system variable.
2008-10-05 13:49:45 -04:00
David F. Skoll
4c53710279
Set maximum string length to 65535 to minimize chances of self-DOS.
2008-09-19 23:28:19 -04:00
David F. Skoll
ba928989f7
Make expression parser accept backslashes in strings so we can do:
...
SET a "Some \"embedded\" quotes"
2008-02-06 23:35:46 -05:00