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
David F. Skoll
ce3bb191c4
More code cleanups and const-correctness.
2008-01-30 21:37:19 -05:00
David F. Skoll
f055664f77
More const-correctness.
2008-01-27 11:02:03 -05:00
David F. Skoll
ba3e01f2ce
Add a bunch of const qualifiers.
2008-01-26 21:55:58 -05:00
David F. Skoll
e1b2990fb0
Prevent possible memory leak.
2007-08-12 20:01:50 -04:00
David F. Skoll
0ed1bb4017
Remove $Id$ tags.
2007-08-08 12:05:28 -04:00
dfs
be7086579e
Make DateSep and TimeSep into system variables that can be changed
...
at runtime.
2007-07-01 20:12:15 +00:00
dfs
47645cddb6
Added full support for DATETIME data type.
2007-06-29 01:17:39 +00:00
dfs
cf2af56a05
Allow DATETIME - DATETIME
2007-06-28 21:57:07 +00:00
dfs
9501498a7e
Add DATETIME type.
2007-06-28 03:04:44 +00:00
dfs
88ff86c910
Removed old non-ANSI, non-UNIX cruft.
2005-09-30 03:29:32 +00:00
dfs
49cd14846c
Fix bug in parsing unterminated date literals.
2004-09-04 03:17:09 +00:00
dfs
2bc3d991c1
-- Updated contact info, copyright years, etc.
2000-02-18 03:45:11 +00:00
dfs
f60fc18d1b
-- Changed copyright notice to Roaring Penguin Software Inc.
1999-04-05 17:34:34 +00:00
dfs
b1e70ef272
-- Fixed uninitialized variable error.
...
-- Fixed syntax error for non-English languages
-- Updated version
1998-03-01 20:43:53 +00:00