Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77638 - trunk/tools/build/v2/engine
From: steven_at_[hidden]
Date: 2012-03-29 21:21:15


Author: steven_watanabe
Date: 2012-03-29 21:21:13 EDT (Thu, 29 Mar 2012)
New Revision: 77638
URL: http://svn.boost.org/trac/boost/changeset/77638

Log:
Workoround for xlc. Patch by Hubert Tong.
Text files modified:
   trunk/tools/build/v2/engine/function.c | 36 ++++++++++++++++++------------------
   1 files changed, 18 insertions(+), 18 deletions(-)

Modified: trunk/tools/build/v2/engine/function.c
==============================================================================
--- trunk/tools/build/v2/engine/function.c (original)
+++ trunk/tools/build/v2/engine/function.c 2012-03-29 21:21:13 EDT (Thu, 29 Mar 2012)
@@ -133,6 +133,23 @@
 #define FUNCTION_BUILTIN 0
 #define FUNCTION_JAM 1
 
+struct argument {
+ int flags;
+#define ARG_ONE 0
+#define ARG_OPTIONAL 1
+#define ARG_PLUS 2
+#define ARG_STAR 3
+#define ARG_VARIADIC 4
+ OBJECT * type_name;
+ OBJECT * arg_name;
+ int index;
+};
+
+struct arg_list {
+ int size;
+ struct argument * args;
+};
+
 struct _function
 {
     int type;
@@ -2614,7 +2631,7 @@
 }
 
 static void argument_error( const char * message, FUNCTION * procedure, FRAME * frame, OBJECT * arg )
-{
+{ extern void print_source_line( FRAME * );
     LOL * actual = frame->args;
     backtrace_line( frame->prev );
     printf( "*** argument error\n* rule %s ( ", frame->rulename );
@@ -2686,23 +2703,6 @@
     type_check_range( type_name, list_begin( values ), list_end( values ), caller, called, arg_name );
 }
 
-struct argument {
- int flags;
-#define ARG_ONE 0
-#define ARG_OPTIONAL 1
-#define ARG_PLUS 2
-#define ARG_STAR 3
-#define ARG_VARIADIC 4
- OBJECT * type_name;
- OBJECT * arg_name;
- int index;
-};
-
-struct arg_list {
- int size;
- struct argument * args;
-};
-
 void argument_list_check( struct arg_list * formal, int formal_count, FUNCTION * function, FRAME * frame )
 {
     LOL * all_actual = frame->args;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk