[brlcad-commits] SF.net SVN: brlcad:[51427] brlcad/trunk/src/other/step/src/express
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <n_...@us...> - 2012-07-05 18:07:46
|
Revision: 51427 http://brlcad.svn.sourceforge.net/brlcad/?rev=51427&view=rev Author: n_reed Date: 2012-07-05 18:07:40 +0000 (Thu, 05 Jul 2012) Log Message: ----------- remove unportable/unnecessary calls to unistd.h pause used after certain errors to allow attaching debugger Modified Paths: -------------- brlcad/trunk/src/other/step/src/express/error.c brlcad/trunk/src/other/step/src/express/expr.c brlcad/trunk/src/other/step/src/express/resolve.c brlcad/trunk/src/other/step/src/express/schema.c Modified: brlcad/trunk/src/other/step/src/express/error.c =================================================================== --- brlcad/trunk/src/other/step/src/express/error.c 2012-07-05 15:44:43 UTC (rev 51426) +++ brlcad/trunk/src/other/step/src/express/error.c 2012-07-05 18:07:40 UTC (rev 51427) @@ -512,9 +512,6 @@ #endif abort(); } - - fprintf( stderr, "pausing...press ^C now to enter debugger: " ); - pause(); } void ERRORsafe( jmp_buf env ) { Modified: brlcad/trunk/src/other/step/src/express/expr.c =================================================================== --- brlcad/trunk/src/other/step/src/express/expr.c 2012-07-05 15:44:43 UTC (rev 51426) +++ brlcad/trunk/src/other/step/src/express/expr.c 2012-07-05 18:07:40 UTC (rev 51427) @@ -399,8 +399,7 @@ return( Type_Bad ); } if( DICT_type != OBJ_VARIABLE ) { - printf( "EXPresolved_op_dot: attribute not an attribute? - press ^C now to trap to debugger\n" ); - pause(); + fprintf( stderr, "ERROR: EXPresolved_op_dot: attribute not an attribute?\n" ); } op2->u.variable = v; Modified: brlcad/trunk/src/other/step/src/express/resolve.c =================================================================== --- brlcad/trunk/src/other/step/src/express/resolve.c 2012-07-05 15:44:43 UTC (rev 51426) +++ brlcad/trunk/src/other/step/src/express/resolve.c 2012-07-05 18:07:40 UTC (rev 51427) @@ -501,8 +501,7 @@ expr->symbol.resolved = expr->type->symbol.resolved; break; default: - printf( "unexpected type in EXPresolve. Press ^C now to trap to debugger\n" ); - pause(); + fprintf( stderr, "ERROR: unexpected type in EXPresolve.\n" ); break; } break; @@ -570,8 +569,7 @@ resolved_all( expr ); break; default: - printf( "unexpected type in EXPresolve. Press ^C now to trap to debugger\n" ); - pause(); + fprintf( stderr, "ERROR: unexpected type in EXPresolve.\n" ); } } Modified: brlcad/trunk/src/other/step/src/express/schema.c =================================================================== --- brlcad/trunk/src/other/step/src/express/schema.c 2012-07-05 15:44:43 UTC (rev 51426) +++ brlcad/trunk/src/other/step/src/express/schema.c 2012-07-05 18:07:40 UTC (rev 51427) @@ -276,8 +276,7 @@ result = ENTITYfind_inherited_attribute( scope, name, 0 ); if( result ) { if( strict && ( DICT_type != OBJ_VARIABLE ) ) { - printf( "press ^C now to trap to debugger\n" ); - pause(); + fprintf(stderr, "ERROR: strict && ( DICT_type != OBJ_VARIABLE )\n"); } return result; } @@ -288,8 +287,7 @@ result = ( Variable )DICTlookup( scope->symbol_table, name ); if( result ) { if( strict && ( DICT_type != OBJ_VARIABLE ) ) { - printf( "press ^C now to trap to debugger\n" ); - pause(); + fprintf(stderr, "ERROR: strict && ( DICT_type != OBJ_VARIABLE )\n"); } return result; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |