diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-29 18:08:13 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-30 16:29:34 -0800 |
commit | e1ee27026569a94e58648d9825dc000dd53130d1 (patch) | |
tree | 84003780d56d4e8cde303b6dfbfe249538c4127e /src/jtag/jtag.h | |
parent | be65f497f5f50d6d037295d5f466db5314f99de1 (diff) |
jtag: avoid using interp global variable
Adds 'interp' field to jtag_tap_event_action structure to avoid
using the global variable of same name.
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r-- | src/jtag/jtag.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index d4fafa3b..ee967752 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -209,9 +209,14 @@ enum jtag_event { struct jtag_tap_event_action { - enum jtag_event event; - Jim_Obj* body; - struct jtag_tap_event_action* next; + /// The event for which this action will be triggered. + enum jtag_event event; + /// The interpreter to use for evaluating the @c body. + Jim_Interp *interp; + /// Contains a script to 'eval' when the @c event is triggered. + Jim_Obj *body; + // next action in linked list + struct jtag_tap_event_action *next; }; /** |