Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49775 - trunk/tools/jam/src
From: ghost_at_[hidden]
Date: 2008-11-15 17:02:36


Author: vladimir_prus
Date: 2008-11-15 17:02:35 EST (Sat, 15 Nov 2008)
New Revision: 49775
URL: http://svn.boost.org/trac/boost/changeset/49775

Log:
Handle \n and \r escape sequences
Text files modified:
   trunk/tools/jam/src/scan.c | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/tools/jam/src/scan.c
==============================================================================
--- trunk/tools/jam/src/scan.c (original)
+++ trunk/tools/jam/src/scan.c 2008-11-15 17:02:35 EST (Sat, 15 Nov 2008)
@@ -314,6 +314,10 @@
             else if ( ( c = yychar() ) != EOF )
             {
                 /* \c */
+ if (c == 'n')
+ c = '\n';
+ else if (c == 'r')
+ c = '\r';
                 *b++ = c;
                 notkeyword = 1;
             }


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