Boost logo

Boost-Build :

Subject: [Boost-build] Fixup semicolon
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-10-16 13:00:06


Right now, bjam does not consider semicolon a separate unless it's
surrounded by spaces, so:

        exe a : a.cpp;

is an error. The below patch fixes this. Is this a path worth taking,
and should we extend this to other special characters?

- Volodya

Index: scan.c
===================================================================
--- scan.c (revision 49346)
+++ scan.c (working copy)
@@ -300,6 +300,11 @@
             ( inquote || !isspace( c ) )
         )
         {
+ if (!inquote && b > buf && c == ';')
+ {
+ break;
+ }
+
             if ( c == '"' )
             {
                 /* begin or end " */


Boost-Build 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