jtag: avoid using interp global variable

Adds 'interp' field to jtag_tap_event_action structure to avoid
using the global variable of same name.
This commit is contained in:
Zachary T Welch
2009-11-29 18:08:13 -08:00
parent be65f497f5
commit e1ee270265
2 changed files with 13 additions and 6 deletions

View File

@@ -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;
};
/**