From f0039c44c8f527ebbcd666c91222cf737b2e58e6 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 13 Apr 2002 15:33:00 +0000 Subject: [PATCH] vc7 compatibility for BOost.Python v1 Better error messages for Jam when actions are too long [SVN r13477] --- historic/jam/src/make1.c | 11 ++++++++++- jam_src/make1.c | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/historic/jam/src/make1.c b/historic/jam/src/make1.c index cc9c2b251..71382b09b 100644 --- a/historic/jam/src/make1.c +++ b/historic/jam/src/make1.c @@ -535,8 +535,17 @@ make1cmds( ACTIONS *a0 ) { /* Too long and not splittable. */ - printf( "%s actions too long (max %d)!\n", + printf( "%s actions too long (max %d):\n", rule->name, MAXLINE ); + + /* Tell the user what didn't fit */ + cmd = cmd_new( + rule, list_copy( L0, nt ), + list_sublist( ns, start, chunk ), + list_new( L0, newstr( "%" ) ) ); + + printf( cmd->buf ); + exit( EXITBAD ); } } diff --git a/jam_src/make1.c b/jam_src/make1.c index cc9c2b251..71382b09b 100644 --- a/jam_src/make1.c +++ b/jam_src/make1.c @@ -535,8 +535,17 @@ make1cmds( ACTIONS *a0 ) { /* Too long and not splittable. */ - printf( "%s actions too long (max %d)!\n", + printf( "%s actions too long (max %d):\n", rule->name, MAXLINE ); + + /* Tell the user what didn't fit */ + cmd = cmd_new( + rule, list_copy( L0, nt ), + list_sublist( ns, start, chunk ), + list_new( L0, newstr( "%" ) ) ); + + printf( cmd->buf ); + exit( EXITBAD ); } }