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

* src/jtag.c (jtag_parse_file): Added support for command scripts from stdin.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@424 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 22 years ago
parent 60767fa68f
commit c66099c0b3

@ -1,3 +1,7 @@
2003-05-13 Marcel Telka <marcel@telka.sk>
* src/jtag.c (jtag_parse_file): Added support for command scripts from stdin.
2003-04-29 Marcel Telka <marcel@telka.sk>
* data/MANUFACTURERS: Added new manufacturer: DEC.

@ -1,6 +1,7 @@
$Id$
* Added new manufacturer: DEC.
* Added support for executing scripts directly from stdin (parameter '-').
jtag-0.3.2 (2003-04-04):

@ -747,7 +747,10 @@ jtag_parse_file( const char *filename )
char *line = NULL;
int n = 0;
f = fopen( filename, "r" );
if (strcmp( filename, "-" ) != 0)
f = fopen( filename, "r" );
else
f = stdin;
if (!f)
return -1;
@ -756,7 +759,8 @@ jtag_parse_file( const char *filename )
go = jtag_parse_line(line);
free(line);
fclose(f);
if (strcmp( filename, "-" ) != 0)
fclose(f);
return go;
}

Loading…
Cancel
Save