[Crosstoolchain-logs] [device-tree-compiler] 97/357: dtc: Fix recognition of whitespace characters

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:05:54 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 41eecd4c2acaca01295fdb48ddc9ec5520f5a7d4
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Thu Jun 7 12:07:35 2007 +1000

    dtc: Fix recognition of whitespace characters
    
    At present, the lexer in dtc recognizes only space, tab and newline as
    whitespace characters.  This is broken; in particular this means that
    dtc will get syntax errors on files with DOS-style (CR-LF) newlines.
    
    This patch fixes the problem, using flex's built-int [:space:]
    character class.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 dtc-lexer.l | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dtc-lexer.l b/dtc-lexer.l
index d237181..77ccd54 100644
--- a/dtc-lexer.l
+++ b/dtc-lexer.l
@@ -27,7 +27,7 @@
 
 PROPCHAR	[a-zA-Z0-9,._+*#?-]
 UNITCHAR	[0-9a-f,]
-WS		[ \t\n]
+WS		[[:space:]]
 
 REFCHAR		({PROPCHAR}|{UNITCHAR}|[/@])
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list