mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-28 12:06:59 +03:00
Put static variable of config_gram.y into context structure
This commit is contained in:
@@ -51,7 +51,7 @@ static int assign_pin_list(int invert);
|
||||
static int which_opcode(TOKEN * opcode);
|
||||
static int parse_cmdbits(OPCODE * op, int opnum);
|
||||
|
||||
static int pin_name;
|
||||
#define pin_name (cx->cfgy_pin_name)
|
||||
%}
|
||||
|
||||
%token K_NULL;
|
||||
|
||||
@@ -1571,6 +1571,9 @@ typedef struct {
|
||||
|
||||
// Static variable from dfu.c
|
||||
uint16_t dfu_wIndex; // A running number for USB messages
|
||||
|
||||
// Static variable from config_gram.y
|
||||
int cfgy_pin_name; // Temporary variable for grammar parsing
|
||||
} cx_t;
|
||||
|
||||
extern cx_t *cx;
|
||||
|
||||
Reference in New Issue
Block a user