mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 12:22:17 +00:00
Exit program with a consistent error status.
This commit is contained in:
@@ -1133,7 +1133,7 @@ void unknown_rule( FRAME * frame, char const * key, module_t * module,
|
||||
else
|
||||
out_printf( "root module.\n" );
|
||||
backtrace( frame->prev );
|
||||
exit( 1 );
|
||||
exit( EXITBAD );
|
||||
}
|
||||
|
||||
|
||||
@@ -1213,7 +1213,7 @@ LIST * builtin_import( FRAME * frame, int flags )
|
||||
list_print( target_rules );
|
||||
out_printf( "\n" );
|
||||
backtrace( frame->prev );
|
||||
exit( 1 );
|
||||
exit( EXITBAD );
|
||||
}
|
||||
|
||||
return L0;
|
||||
@@ -1685,7 +1685,7 @@ LIST * builtin_native_rule( FRAME * frame, int flags )
|
||||
out_printf( "error: no native rule \"%s\" defined in module \"%s.\"\n",
|
||||
object_str( list_front( rule_name ) ), object_str( module->name ) );
|
||||
backtrace( frame->prev );
|
||||
exit( 1 );
|
||||
exit( EXITBAD );
|
||||
}
|
||||
return L0;
|
||||
}
|
||||
|
||||
@@ -3078,7 +3078,7 @@ static void argument_error( char const * message, FUNCTION * procedure,
|
||||
print_source_line( frame );
|
||||
out_printf( "see definition of rule '%s' being called\n", frame->rulename );
|
||||
backtrace( frame->prev );
|
||||
exit( 1 );
|
||||
exit( EXITBAD );
|
||||
}
|
||||
|
||||
static void type_check_range( OBJECT * type_name, LISTITER iter, LISTITER end,
|
||||
@@ -3371,7 +3371,7 @@ static void argument_compiler_add( struct argument_compiler * c, OBJECT * arg,
|
||||
{
|
||||
err_printf( "%s:%d: missing argument name before type name: %s\n",
|
||||
object_str( file ), line, object_str( arg ) );
|
||||
exit( 1 );
|
||||
exit( EXITBAD );
|
||||
}
|
||||
|
||||
c->arg.arg_name = object_copy( arg );
|
||||
@@ -3419,7 +3419,7 @@ static struct arg_list arg_compile_impl( struct argument_compiler * c,
|
||||
case ARGUMENT_COMPILER_FOUND_TYPE:
|
||||
err_printf( "%s:%d: missing argument name after type name: %s\n",
|
||||
object_str( file ), line, object_str( c->arg.type_name ) );
|
||||
exit( 1 );
|
||||
exit( EXITBAD );
|
||||
case ARGUMENT_COMPILER_FOUND_OBJECT:
|
||||
dynamic_array_push( c->args, c->arg );
|
||||
break;
|
||||
|
||||
@@ -258,7 +258,7 @@ int make1( LIST * targets )
|
||||
/* If we were interrupted, exit now that all child processes
|
||||
have finished. */
|
||||
if ( intr )
|
||||
exit( 1 );
|
||||
exit( EXITBAD );
|
||||
|
||||
{
|
||||
LISTITER iter, end;
|
||||
|
||||
Reference in New Issue
Block a user