Commit Graph

2798 Commits

Author SHA1 Message Date
Dianne Skoll
dc777c95df Fix cppcheck warning. 05.04.00 2025-06-03 16:54:47 -04:00
Dianne Skoll
3090d77346 Update WHATSNEW. 2025-06-03 12:34:08 -04:00
Dianne Skoll
157d2821f3 Don't Eprint errors if we're supposed to be ignoring lines. 2025-05-28 14:52:12 -04:00
Dianne Skoll
71d2da19a8 Introduce "FSET - f(args) expr" syntax to define a function and suppress any "redefined function" warnings. 2025-05-28 14:40:46 -04:00
Dianne Skoll
516b9c81b3 Get rid of ancient cruft. 2025-05-28 14:23:56 -04:00
Dianne Skoll
58d0e38f1a Remove superfluous assignments. 2025-05-28 14:17:21 -04:00
Dianne Skoll
68d487ade9 Make a macro DBGX to avoid typo-ing '&' as '&&' in future. :) 2025-05-26 22:44:28 -04:00
Dianne Skoll
9d42879170 Make "value" constant iff variable exists and is constant.
Otherwise, it's non-constant.
2025-05-26 22:22:49 -04:00
Dianne Skoll
db70aabc97 Use ParseIdentifier instead of ParseToken with "PRESERVE"
to avoid creating illegal variable names.
2025-05-26 22:09:21 -04:00
Dianne Skoll
c8f55ef60b Note that value evaluates its second argument lazily. 2025-05-26 21:59:24 -04:00
Dianne Skoll
44b50fc6be Make "value()" evaluate its second argument lazily.
If the variable whose name is the first argument exists, don't
bother evaluating the second argument.
2025-05-26 21:56:04 -04:00
Dianne Skoll
a69a96529b Update WHATSNEW. 05.04.00-BETA-2 2025-05-26 10:49:41 -04:00
Dianne Skoll
f4e5cc63a6 Dedup 2025-05-25 14:56:37 -04:00
Dianne Skoll
136122b1db Fix a couple of minor problems found by "remind -du" 2025-05-25 14:54:49 -04:00
Dianne Skoll
4cc63b1548 Add some details about nuances of "u" debugging flag. 2025-05-25 13:38:21 -04:00
Dianne Skoll
9390b4335b Make another string translatable. 2025-05-24 23:35:16 -04:00
Dianne Skoll
1fcf11a816 Change the help text for the -d flag. 2025-05-24 23:20:45 -04:00
Dianne Skoll
c4107e6a6f Fix up Bevrijdingsdag 2025-05-24 23:19:13 -04:00
Dianne Skoll
ab03232341 Minor tweak 2025-05-24 23:15:51 -04:00
Dianne Skoll
51a65841cd Warn if a variable is UNSET without having been used (if -du is in effect) 2025-05-24 23:13:39 -04:00
Dianne Skoll
5035deaff1 Tweak warning wording; add tests. 2025-05-24 23:09:57 -04:00
Dianne Skoll
09caa8988a Add warning if we SET a variable that has already been set, but not used (if -du debug flag is set) 2025-05-24 23:06:50 -04:00
Dianne Skoll
9624b1045c Track filename and line number where variables are defined. 2025-05-24 22:58:28 -04:00
Dianne Skoll
102748397f Remove a couple of inappropriate "free" calls. 2025-05-24 22:58:16 -04:00
Dianne Skoll
f852f7e7e5 Refactor conversion of "-" to "-stdin-" 2025-05-24 22:55:02 -04:00
Dianne Skoll
8d88192483 Keep a hash table of filenames we've seen so we don't need to strdup the current filename all over the place. 2025-05-24 22:51:16 -04:00
Dianne Skoll
a6ca571fe5 Fix indentation. 2025-05-24 22:13:47 -04:00
Dianne Skoll
2af783a58d Use isany() in preference to || operator. 2025-05-24 10:36:03 -04:00
Dianne Skoll
af2daa7a87 Use "is_constant" attribute for Var to be consistent with UserFunc. 2025-05-24 10:10:44 -04:00
Dianne Skoll
c5bc459dd9 Add "-du" debugging flag to print a list of variables that were set but never used. 2025-05-23 16:55:10 -04:00
Dianne Skoll
edf26eaa14 Add more "const" debugging messages. 2025-05-23 13:38:38 -04:00
Dianne Skoll
7e5dc26ee5 *PROPERLY* disable RUN in eval. :) 2025-05-23 12:03:09 -04:00
Dianne Skoll
4c2b6031cd Disable shell() inside an eval("...") for safety.
Based on email from Tim Chase.
2025-05-23 11:48:06 -04:00
Dianne Skoll
af8c1630c3 Add more clarification. 2025-05-23 08:56:01 -04:00
Dianne Skoll
0ec43d570c Add "const" function, which is the inverse of "nonconst" 2025-05-23 08:47:12 -04:00
Dianne Skoll
1df8b12e71 Clarification. 2025-05-23 08:42:00 -04:00
Dianne Skoll
3fb10fe946 Don't put anchors in HTML output.
Can be achieved with a REM statement:

    REM SPECIAL HTML <a id="[$T]"></a>
05.04.00-BETA-1
2025-05-23 07:36:45 -04:00
Dianne Skoll
e11dbcf52a Revert "Put anchor <a name="dN"></a> for day N's day box."
This reverts commit 398100c6e3.
2025-05-23 07:34:57 -04:00
Dianne Skoll
88cc25e53f Update release notes. 2025-05-22 21:57:14 -04:00
Dianne Skoll
0c93e045bd Bump version to 05.04.00. 2025-05-22 21:40:38 -04:00
Dianne Skoll
99e5b3f43d Document "trigbase" entry in JSON output. 2025-05-22 18:05:31 -04:00
Dianne Skoll
f0f0cec2d3 Add $Tu == triguntil() system variable. 2025-05-22 18:00:24 -04:00
Dianne Skoll
70a97a8fe5 Add trigbase() built-in function. 2025-05-22 17:44:42 -04:00
Dianne Skoll
8a6857b787 Add test to ensure recursive eval() yields error rather than segfault. 2025-05-22 15:00:46 -04:00
Dianne Skoll
95b82a4457 "eval" can itself now be recursive, so we need to guard built-in functions against recursion. 2025-05-22 14:59:08 -04:00
Dianne Skoll
8fd39e477f A bit more non-const documentation. 2025-05-22 14:44:17 -04:00
Dianne Skoll
3118f8d2a4 Add "eval()" built-in function. 2025-05-22 13:52:07 -04:00
Dianne Skoll
acf570512d Correct documentation for maximum IF nest level. 2025-05-22 10:08:34 -04:00
Dianne Skoll
cf2114e2ef Update tests. 2025-05-22 10:04:32 -04:00
Dianne Skoll
357f7105bd Better coerce error messages. 2025-05-22 10:03:32 -04:00