X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Frclex.c;h=945ab8b26bf6925d6c26c7e036cf57d1355eb5e5;hb=d8bd95efd8119e06e6753c841f1bbc54bb09d5de;hp=9b58af17882403c011ea7baf7fd1d55051eaef23;hpb=a87a00ea43681b9310995d15ce68d2e3906c6e93;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/rclex.c b/binutils/rclex.c index 9b58af1788..945ab8b26b 100644 --- a/binutils/rclex.c +++ b/binutils/rclex.c @@ -1,7 +1,6 @@ /* rclex.c -- lexer for Windows rc files parser */ -/* Copyright 1997, 1998, 1999, 2001, 2002, 2003, 2005, 2006, 2007 - Free Software Foundation, Inc. +/* Copyright (C) 1997-2015 Free Software Foundation, Inc. Written by Kai Tietz, Onevision. @@ -148,7 +147,7 @@ cpp_line (void) ++s; while (ISSPACE (*s)) ++s; - + /* Check for #pragma code_page ( DEFAULT | ). */ len = strlen (s); mlen = strlen ("pragma"); @@ -704,7 +703,7 @@ rclex_string (void) c = -1; } while (c != -1); - + if (rclex_peekch () == '"') rclex_readch (); else @@ -782,7 +781,7 @@ yylex (void) /* Clear token. */ rclex_tok_pos = 0; rclex_tok[0] = 0; - + if ((ch = rclex_readch ()) == -1) return -1; if (ch == '\n') @@ -798,15 +797,15 @@ yylex (void) cpp_line (); ch = IGNORED_TOKEN; break; - + case '{': ch = IGNORE_CPP (BEG); break; - + case '}': ch = IGNORE_CPP (END); break; - + case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': yylval.i.val = read_digit (ch);