From: Andrew M. <fit...@us...> - 2007-12-06 21:56:49
|
Update of /cvsroot/radmind/radmind-assistant/rsm In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv11201 Modified Files: addspecial.c Log Message: Report line number when line too long. Index: addspecial.c =================================================================== RCS file: /cvsroot/radmind/radmind-assistant/rsm/addspecial.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** addspecial.c 8 Apr 2005 14:02:20 -0000 1.6 --- addspecial.c 6 Dec 2007 21:56:23 -0000 1.7 *************** *** 222,225 **** --- 222,226 ---- char **col; int colcount; + int linenum = 0; struct slist *head = NULL, *new = NULL; *************** *** 254,259 **** int len = strlen( buf ); if ( buf[ len - 1 ] != '\n' ) { ! fprintf( stderr, "%s: line too long\n", loadset ); ( void )fclose( f ); exit( 2 ); --- 255,262 ---- int len = strlen( buf ); + linenum++; + if ( buf[ len - 1 ] != '\n' ) { ! fprintf( stderr, "%s: line %d: line too long\n", linenum, loadset ); ( void )fclose( f ); exit( 2 ); |