Added idr field to the part.

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@109 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 23 years ago
parent cd96faedba
commit 9cbb00f5dd

@ -40,6 +40,7 @@ struct part {
instruction *active_instruction;
int boundary_length;
bsbit **bsbits;
tap_register *idr;
tap_register *bsr;
tap_register *prev_bsr;
};

@ -38,7 +38,7 @@ get_token( char *buf )
}
part *
read_part( FILE *f )
read_part( FILE *f, tap_register *idr )
{
int line = 0;
part *part;
@ -52,6 +52,8 @@ read_part( FILE *f )
return NULL;
}
part->idr = register_duplicate( idr );
for (;;) {
char *t;
char buf[1024];

@ -42,6 +42,7 @@ part_alloc( void )
p->active_instruction = NULL;
p->boundary_length = 0;
p->bsbits = NULL;
p->idr = NULL;
p->bsr = NULL;
p->prev_bsr = NULL;
@ -75,6 +76,9 @@ part_free( part *p )
bsbit_free( p->bsbits[i] );
free( p->bsbits );
/* idr */
register_free( p->idr );
/* bsr */
register_free( p->bsr );
register_free( p->prev_bsr );

Loading…
Cancel
Save