mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-27 19:37:09 +02:00
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.
This commit is contained in:
+2
-2
@@ -243,7 +243,7 @@ static void FSet(UserFunc *f)
|
||||
/* Call a user-defined function. */
|
||||
/* */
|
||||
/***************************************************************/
|
||||
int CallUserFunc(char const *name, int nargs)
|
||||
int CallUserFunc(char const *name, int nargs, ParsePtr p)
|
||||
{
|
||||
UserFunc *f;
|
||||
int h = HashVal(name) % FUNC_HASH_SIZE;
|
||||
@@ -301,7 +301,7 @@ int CallUserFunc(char const *name, int nargs)
|
||||
/* Skip the opening bracket, if there's one */
|
||||
while (isempty(*s)) s++;
|
||||
if (*s == BEG_OF_EXPR) s++;
|
||||
h = Evaluate(&s, f->locals);
|
||||
h = Evaluate(&s, f->locals, p);
|
||||
f->IsActive = 0;
|
||||
DestroyLocalVals(f);
|
||||
if (DebugFlag &DB_PRTEXPR) {
|
||||
|
||||
Reference in New Issue
Block a user