2003-05-27 Marcel Telka <marcel@telka.sk>

* src/part/part.c (part_set_signal, part_get_signal): Moved variable declarations to beginning
		of a block (Matan Ziv-Av).


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@446 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 22 years ago
parent 127719f423
commit 1a253587a0

@ -1,3 +1,8 @@
2003-05-27 Marcel Telka <marcel@telka.sk>
* src/part/part.c (part_set_signal, part_get_signal): Moved variable declarations to beginning
of a block (Matan Ziv-Av).
2003-05-26 Marcel Telka <marcel@telka.sk>
* include/bus.h (new_sh7727_bus): Added function declaration.

@ -153,11 +153,13 @@ part_set_instruction( part_t *p, const char *iname )
void
part_set_signal( part_t *p, signal_t *s, int out, int val )
{
data_register *bsr;
if (!p || !s)
return;
/* search for Boundary Scan Register */
data_register *bsr = part_find_data_register( p, "BSR" );
bsr = part_find_data_register( p, "BSR" );
if (!bsr) {
printf( _("%s(%s:%d) Boundary Scan Register (BSR) not found\n"), __FUNCTION__, __FILE__, __LINE__ );
return;
@ -188,11 +190,13 @@ part_set_signal( part_t *p, signal_t *s, int out, int val )
int
part_get_signal( part_t *p, signal_t *s )
{
data_register *bsr;
if (!p || !s)
return -1;
/* search for Boundary Scan Register */
data_register *bsr = part_find_data_register( p, "BSR" );
bsr = part_find_data_register( p, "BSR" );
if (!bsr) {
printf( _("%s(%s:%d) Boundary Scan Register (BSR) not found\n"), __FUNCTION__, __FILE__, __LINE__ );
return -1;

Loading…
Cancel
Save