Commit 6c6bd31e 6c6bd31ee94af3e6229ee96ac47f258a57c5427f by Sergey Poznyakoff

(instr_action,instr_test): Update mach->identifier.

1 parent d981545a
......@@ -88,22 +88,26 @@ instr_run (sieve_machine_t mach)
void
instr_action (sieve_machine_t mach)
{
mach->identifier = SIEVE_ARG (mach, 3, string);
if (INSTR_DEBUG (mach))
sieve_debug (mach, "%4lu: ACTION: %s\n",
(unsigned long) (mach->pc - 1),
SIEVE_ARG (mach, 3, string));
mach->identifier);
mach->action_count++;
instr_run (mach);
mach->identifier = NULL;
}
void
instr_test (sieve_machine_t mach)
{
mach->identifier = SIEVE_ARG (mach, 3, string);
if (INSTR_DEBUG (mach))
sieve_debug (mach, "%4lu: TEST: %s\n",
(unsigned long) (mach->pc - 1),
SIEVE_ARG (mach, 3, string));
mach->identifier);
mach->reg = instr_run (mach);
mach->identifier = NULL;
}
void
......@@ -254,6 +258,12 @@ sieve_get_debug_level (sieve_machine_t mach)
return mach->debug_level;
}
const char *
sieve_get_identifier (sieve_machine_t mach)
{
return mach->identifier;
}
int
sieve_is_dry_run (sieve_machine_t mach)
{
......