kbproto unentanglement: XkbGeomPtsPerMM

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
master
Daniel Stone 2012-09-11 14:09:20 +01:00
parent e60e9523c6
commit fa1ea9a5bf
2 changed files with 2 additions and 2 deletions

View File

@ -724,7 +724,7 @@ SignedNumber : MINUS Number { $$ = -$2; }
;
Number : FLOAT { $$ = $1; }
| INTEGER { $$ = $1 * XkbGeomPtsPerMM; }
| INTEGER { $$ = $1; }
;
Float : FLOAT { $$ = 0; }

View File

@ -179,7 +179,7 @@ alternate_group return ALTERNATE_GROUP;
}
[0-9]+\.[0-9]+ {
char *end;
yylval->num = strtod(yytext, &end) * XkbGeomPtsPerMM;
yylval->num = strtod(yytext, &end);
return FLOAT;
}