diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-02-25 11:01:33 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-02-25 11:01:33 +0000 |
commit | 6c6bd31ee94af3e6229ee96ac47f258a57c5427f (patch) | |
tree | 7aacd031d4a140073542c47603e5e2306e7deba3 /libsieve | |
parent | d981545ad0215e57ac8f40ceb3c117f3b83f80cf (diff) | |
download | mailutils-6c6bd31ee94af3e6229ee96ac47f258a57c5427f.tar.gz mailutils-6c6bd31ee94af3e6229ee96ac47f258a57c5427f.tar.bz2 |
(instr_action,instr_test): Update mach->identifier.
Diffstat (limited to 'libsieve')
-rw-r--r-- | libsieve/runtime.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libsieve/runtime.c b/libsieve/runtime.c index 4352c98cb..ed093e749 100644 --- a/libsieve/runtime.c +++ b/libsieve/runtime.c @@ -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) { |