* [PATCH 5/7] fbset: fix parsing of rgba keyword
@ 2006-10-09 2:45 Guillem Jover
0 siblings, 0 replies; only message in thread
From: Guillem Jover @ 2006-10-09 2:45 UTC (permalink / raw)
To: linux-fbdev-devel
[-- Attachment #1: Type: text/plain, Size: 77 bytes --]
Hi,
This fixes the parsing of the rgba keyword in the db.
regards,
guillem
[-- Attachment #2: fbset_05_rgba_keyword.patch --]
[-- Type: text/plain, Size: 1053 bytes --]
--- modes.l 1999-06-23 17:09:48.000000000 +0300
+++ modes.l 2006-10-09 03:27:58.000000000 +0300
@@ -99,6 +99,7 @@ static const char *CopyString(const char
keyword [a-zA-Z][a-zA-Z0-9]*
number [0-9]*
+colors [0-9/,]*
string \"[^\"\n]*\"
comment \#([^\n]*)
space [ \t]+
@@ -115,6 +116,11 @@ junk .
return NUMBER;
}
+{colors} {
+ yylval = (unsigned long)CopyString(yytext);
+ return COLORS;
+ }
+
{string} {
yylval = (unsigned long)CopyString(yytext);
return STRING;
--- modes.y 1999-06-23 17:09:48.000000000 +0300
+++ modes.y 2006-10-09 03:27:58.000000000 +0300
@@ -42,7 +42,7 @@ static void ClearVideoMode(void)
%token MODE GEOMETRY TIMINGS HSYNC VSYNC CSYNC GSYNC EXTSYNC BCAST LACED DOUBLE
RGBA NONSTD ACCEL GRAYSCALE
- ENDMODE POLARITY BOOLEAN STRING NUMBER
+ ENDMODE POLARITY BOOLEAN STRING NUMBER COLORS
%%
@@ -148,7 +148,7 @@ double : DOUBLE BOOLEAN
}
;
-rgba : RGBA STRING
+rgba : RGBA COLORS
{
makeRGBA(&VideoMode, (const char*)$2);
}
[-- Attachment #3: Type: text/plain, Size: 348 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: Type: text/plain, Size: 182 bytes --]
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-09 4:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-09 2:45 [PATCH 5/7] fbset: fix parsing of rgba keyword Guillem Jover
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).