Dianne Skoll
8c072cd9b6
Add a warning if a function is redefined.
2024-08-27 21:41:45 -04:00
Dianne Skoll
b794a45c3f
Add more SATISFY diagnostics.
Remind unit tests / tests (push) Successful in 34s
2024-08-27 15:02:11 -04:00
Dianne Skoll
98e491ed1d
Remove some left-over debugging code.
2024-08-27 15:01:59 -04:00
Dianne Skoll
c397cc06da
Rewrite code to avoid need to pass address of "mentioned" variable.
Remind unit tests / tests (push) Successful in 30s
2024-08-27 11:33:41 -04:00
Dianne Skoll
702704af1a
Make sure SATISFY expressions are either constant or mention trigdate.
2024-08-27 11:22:42 -04:00
Dianne Skoll
a0d1b19050
Fix typo in comment.
Remind unit tests / tests (push) Successful in 39s
2024-08-23 15:08:35 -04:00
Dianne Skoll
b3cf741d15
Suppress warning in GCC 14.2.1. Patch courtesy of Emanuele Torre
Remind unit tests / tests (push) Successful in 38s
2024-08-23 07:44:36 -04:00
Dianne Skoll
0b28dde9c7
Add optional argument to ampm() to specify that hour should be zero-padded to two digits.
Remind unit tests / tests (push) Successful in 46s
2024-08-22 17:38:54 -04:00
Dianne Skoll
fa1033db6f
Don't warn about assuming REM type if we've already warned about assuming "REM"
2024-08-21 15:09:41 -04:00
Dianne Skoll
093c97ff91
Add tests for missing REM or missing MSG being diagnosed.
2024-08-21 12:50:51 -04:00
Dianne Skoll
6e64b175aa
Diagnose lines that are implicitly treated as REM lines.
...
Diagnose REM commands that are implicitly treated as having MSG type.
Properly start all lines that should start with REM, with REM.
2024-08-21 12:45:30 -04:00
Dianne Skoll
51cc939d0c
Suppress a couple of cppcheck warnings.
Remind unit tests / tests (push) Successful in 30s
2024-07-30 15:17:13 -04:00
Dianne Skoll
e3f9380fcd
Allow ONCE to be used if input is stdin, as long as $OnceFile is set.
...
Clarify documentation.
2024-07-10 09:32:05 -04:00
Dianne Skoll
735f6f5686
Ignore attempts to set $OnceFile to the value it already has.
2024-07-09 09:33:02 -04:00
Dianne Skoll
ac033d75c0
Add the $OnceFile special variable.
...
This lets us specify a timestamp file that Remind
uses to track the last run for the purpose of handling
the ONCE keyword, rather than using the last access date
of the reminder file.
Keeping a timestamp file is a more reliable way to track
when Remind was last run.
2024-07-09 09:23:15 -04:00
Dianne Skoll
41859fc484
Remove some unused definitions; use symbolic value for sort initializer.
2024-07-04 16:58:41 -04:00
Dianne Skoll
07275e71b0
Remove obsolete definitions.
2024-07-04 13:13:27 -04:00
Dianne Skoll
f68521cb95
Fix spacing.
2024-07-04 13:09:21 -04:00
Dianne Skoll
526610bdd2
Stop parsing user func early if possible.
2024-07-02 09:16:47 -04:00
Dianne Skoll
973e3448ae
Fix typo in comment.
2024-07-02 07:58:24 -04:00
Dianne Skoll
9a3f28f6fc
Optimize storage of short string constants in expr_node objects.
2024-06-12 10:19:27 -04:00
Dianne Skoll
4560712778
Fix a couple of potential memory leaks.
2024-06-07 21:27:24 -04:00
Dianne Skoll
ce8803dde9
The zero-argument form of weekno() is not constant.
2024-06-07 21:22:32 -04:00
Dianne Skoll
60ca5d45e3
Convert "isany" to short-circuit evaluation.
2024-06-07 15:55:12 -04:00
Dianne Skoll
4454613d00
Fix typo
2024-06-06 12:51:02 -04:00
Dianne Skoll
0704808500
Don't rely on newer C feature that allows anonymous parameters
2024-06-06 12:48:44 -04:00
Dianne Skoll
166b1ac499
Only reset alarm if expression time limit was set
2024-06-06 11:47:39 -04:00
Dianne Skoll
e33bf4e80a
Explicitly set sa_flags in sigaction.
2024-06-06 10:42:04 -04:00
Dianne Skoll
4bf31005ea
Better error location in a couple more cases.
2024-06-05 09:15:10 -04:00
Dianne Skoll
7c86bc910a
Better diagnostics of unmatched IFs
2024-06-05 09:08:04 -04:00
Dianne Skoll
4f146a99a9
Simplify Eprint logic.
2024-06-04 21:10:17 -04:00
Dianne Skoll
a6a638e0e6
Add test for UNMATCHED PUSH
2024-06-04 16:27:23 -04:00
Dianne Skoll
325814f5e1
Print the location of unmatched PUSH
2024-06-04 16:25:14 -04:00
Dianne Skoll
2bf73987ac
Don't need to flush unless we're about to print.
2024-06-04 11:56:05 -04:00
Dianne Skoll
3e9eeea8dc
Update docs; kill time-limiter when we queue.
2024-06-04 11:51:27 -04:00
Dianne Skoll
632cee62d9
Don't permit unary-minus overflow.
2024-06-04 09:02:26 -04:00
Dianne Skoll
09f043b3de
Don't print bytes allocated --- makes test output differ on different architectures.
2024-06-04 07:32:53 -04:00
Dianne Skoll
c0341c8ba3
Fix typo.
2024-06-03 21:54:12 -04:00
Dianne Skoll
850c717803
Handle unary '+' properly.
2024-06-03 20:20:54 -04:00
Dianne Skoll
f13f9e18bd
Somewhat better error reporting.
2024-06-03 20:14:11 -04:00
Dianne Skoll
8bdca0d684
More code refactoring.
2024-06-03 19:49:36 -04:00
Dianne Skoll
129bf5612e
Refactor some code.
2024-06-03 19:43:28 -04:00
Dianne Skoll
829962fae1
We don't need to check for excessive parse depth if we're not at the high water mark.
2024-06-03 19:35:42 -04:00
Dianne Skoll
c5f9ed8541
Fix logic error
2024-06-03 18:04:10 -04:00
Dianne Skoll
4a7cef4644
Better error diagnostics.
2024-06-03 18:02:19 -04:00
Dianne Skoll
0e010b56ec
Fix some error messages.
2024-06-03 17:59:11 -04:00
Dianne Skoll
ee179ee2f5
Suppress duplicate call frames.
2024-06-03 17:47:38 -04:00
Dianne Skoll
8f0a2a7e79
Limit parse high-water to 2000
2024-06-03 15:15:58 -04:00
Dianne Skoll
ef23bba77f
Track parse level high-water mark.
2024-06-03 15:13:32 -04:00
Dianne Skoll
602086ae2d
Make "-ds" show built-in functions with ucfirst and user-defined ones all lower-case.
2024-06-03 14:56:32 -04:00