Dianne Skoll
|
95523c8f10
|
Convert cosd() function into a macro.
|
2024-03-19 16:26:07 -04:00 |
|
Dianne Skoll
|
e5711032bd
|
Keep reading inotify events until 0.2 seconds elapses between successive events.
|
2024-03-16 15:22:48 -04:00 |
|
Dianne Skoll
|
29c579a301
|
Refactor some code.
|
2024-03-16 14:01:21 -04:00 |
|
Dianne Skoll
|
6586fae3eb
|
Fix logic bug that would sometimes fail to send a queue update message to controlling process.
|
2024-03-16 13:36:24 -04:00 |
|
Dianne Skoll
|
d5a86f3e4f
|
Actually de-queue and free reminders that expire out of the queue.
|
2024-03-16 13:29:59 -04:00 |
|
Dianne Skoll
|
96551ccaa4
|
Make TkRemind use the "DEL qid" facility to ignore reminders. Fix potential use of freed memory in queue.c
|
2024-03-16 13:25:47 -04:00 |
|
Dianne Skoll
|
c83ee86d10
|
Implement DEL command to removed a queued reminder from the queue in -zj mode.
|
2024-03-16 12:54:30 -04:00 |
|
Dianne Skoll
|
c913306cbd
|
Add "qid" member to JSONQUEUE.
|
2024-03-16 11:17:28 -04:00 |
|
Dianne Skoll
|
61fcc1b275
|
Add "s" debugging flag to see expression-parsing stack high-water marks.
Reduce default value stack size from 1000 to 100.
|
2024-03-13 12:06:55 -04:00 |
|
Dianne Skoll
|
26977a4ac0
|
Fix a bunch of cppcheck complaints and also update the cppcheck Makefile target.
|
2024-03-11 12:10:03 -04:00 |
|
Dianne Skoll
|
0d55e04284
|
Make a local OMIT that doesn't specify a weekday name into a syntax error.
|
2024-03-03 14:51:53 -05:00 |
|
Dianne Skoll
|
f4cce54b70
|
Warn if a local OMIT doesn't actually omit any weekdays.
|
2024-03-03 11:00:35 -05:00 |
|
Dianne Skoll
|
1d44577ce9
|
Exit rather than return if we forked in System().
|
2024-03-01 09:00:36 -05:00 |
|
Dianne Skoll
|
b1f418ee42
|
Install desktop and icon file in correct paths: $prefix/share/applications and $prefix/share/pixmaps
|
2024-03-01 08:45:43 -05:00 |
|
Dianne Skoll
|
8ff94c5031
|
Install the .desktop and icon files; add to menu.
|
2024-02-29 13:19:00 -05:00 |
|
Dianne Skoll
|
ee185a0eeb
|
Desktop file should be executable.
|
2024-02-29 13:08:49 -05:00 |
|
Dianne Skoll
|
06f8932efd
|
Add .desktop file and icon for TkRemind, courtesy of Eloi Torrents
|
2024-02-29 13:04:19 -05:00 |
|
Dianne Skoll
|
3cdde5351f
|
Issue "NOTE newdate" in legacy mode in response to an inotify event.
|
2024-02-29 11:28:05 -05:00 |
|
Dianne Skoll
|
267e8533cf
|
Fix stupid bug.
|
2024-02-29 11:14:05 -05:00 |
|
Dianne Skoll
|
5a31bc7058
|
Integrate inotify support directly into Remind for server mode.
|
2024-02-29 11:03:28 -05:00 |
|
Dianne Skoll
|
746bde71bd
|
Check for inotify_init1
|
2024-02-29 10:41:49 -05:00 |
|
Dianne Skoll
|
b274ac635c
|
Clarify comment.
|
2024-02-29 09:46:56 -05:00 |
|
Dianne Skoll
|
9e0a74e583
|
Don't spit anything out to client for RUN-type reminders in server mode.
|
2024-02-29 09:31:37 -05:00 |
|
Dianne Skoll
|
0f782f7697
|
Set CLOEXEC flag on files we open.
When running programs in server mode, connect stdin and stdout to /dev/null
|
2024-02-29 09:22:15 -05:00 |
|
Dianne Skoll
|
34dab68805
|
Finish implementing "-zj" mode - Daemon mode with JSON responses.
|
2024-02-27 10:18:18 -05:00 |
|
Dianne Skoll
|
216dd03922
|
Start adding support for JSON-formatted daemon responses.
|
2024-02-27 09:54:35 -05:00 |
|
Dianne Skoll
|
6b798d5f7c
|
Allow arg to easterdate() and orthodoxeaster() to be omitted, defaulting it to today().
|
2024-02-26 17:19:22 -05:00 |
|
Dianne Skoll
|
22ccce0934
|
Lay groundwork for having TriggerReminder put the results in a DynamicBuffer rather than sending to stdout
Eventually should allow us to make a JSON-based daemon mode.
|
2024-02-25 09:17:54 -05:00 |
|
Dianne Skoll
|
8e99ed27e7
|
Take is_queued into account when deciding to issue banner.
|
2024-02-24 09:33:59 -05:00 |
|
Dianne Skoll
|
616966f5df
|
Fix spelling in comment
|
2024-02-04 13:01:45 -05:00 |
|
Dianne Skoll
|
25b7a40f2b
|
Try hard to avoid integer overflow.
|
2024-02-03 16:30:39 -05:00 |
|
Dianne Skoll
|
2beaab1a2f
|
More checks on INT * STRING plus a man page note.
|
2024-02-03 16:29:05 -05:00 |
|
Dianne Skoll
|
60793d53c6
|
Don't use O(N^2) algorithm for STR * INT
|
2024-02-03 16:12:54 -05:00 |
|
Dianne Skoll
|
b2bd6109dc
|
Allow STRING * INT or INT * STRING, which repeats STRING that many times.
|
2024-02-03 16:00:23 -05:00 |
|
Dianne Skoll
|
9455ec48d7
|
Include lineno element in JSONQUEUE
|
2024-02-03 11:06:33 -05:00 |
|
Dianne Skoll
|
994edbebbe
|
Proper keys for tdelta, etc.
|
2024-02-03 11:00:27 -05:00 |
|
Dianne Skoll
|
2e56edd557
|
SystemTime can be int... no need for it to be long.
|
2024-02-03 09:26:30 -05:00 |
|
Dianne Skoll
|
167631451d
|
Don't alloc/free FileName unnecessarily.
|
2024-02-02 18:45:31 -05:00 |
|
Dianne Skoll
|
fa5180b94d
|
Refactor JSON output routines.
|
2024-02-02 16:08:17 -05:00 |
|
Dianne Skoll
|
a043dfe8b9
|
Optimize the search for a queued filename by assuming we're still in the same file as before.
This is very likely to be true and should avoid traversing the list of
filenames in most cases.
|
2024-02-02 14:25:34 -05:00 |
|
Dianne Skoll
|
7cfb75e3b3
|
Save filename when queueing reminders. Also, use original trigger structure when triggering.
Before, we'd lose the priority and msgprefix() would mess up.
|
2024-02-02 14:18:55 -05:00 |
|
Dianne Skoll
|
45ebd05cb6
|
Minor tweaks.
|
2024-01-09 21:16:32 -05:00 |
|
Dianne Skoll
|
72d10178bf
|
Mass-update copyright year to 2024.
|
2023-12-31 12:05:03 -05:00 |
|
Dianne Skoll
|
96f4e26d53
|
Add "constval" alias for "min" structure field.
|
2023-12-30 11:33:01 -05:00 |
|
Dianne Skoll
|
b45428df05
|
Add system variables: $NumFullOmits, $MaxFullOmits, $NumPartialOmits, $MaxPartialOmits
|
2023-12-28 19:22:48 -05:00 |
|
Dianne Skoll
|
e4e2157622
|
Include limits in "too many XXX" error messages.
|
2023-12-28 19:08:15 -05:00 |
|
Dianne Skoll
|
04b349c6c7
|
Check write() call for failures.
|
2023-12-28 18:23:13 -05:00 |
|
Dianne Skoll
|
7fe3eb7391
|
Avoid warning about ignoring return value. *SIGH*
|
2023-12-28 18:20:59 -05:00 |
|
Dianne Skoll
|
c1992b577a
|
Check of (very unlikely and probably harmless) integer underflow.
|
2023-12-27 20:28:46 -05:00 |
|
Dianne Skoll
|
632283d47f
|
Issue a warning if someone OMITs every possible date.
|
2023-12-27 20:27:26 -05:00 |
|