Gerald Pfeifer : wrc: Remove variable type which is not really used from rsrcid_to_token.
Alexandre Julliard
julliard at winehq.org
Wed May 5 11:08:36 CDT 2010
Module: wine
Branch: master
Commit: 3aa6cff4ceece9c4f7b482b64ab1710fdcad74af
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3aa6cff4ceece9c4f7b482b64ab1710fdcad74af
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Wed May 5 00:24:35 2010 +0200
wrc: Remove variable type which is not really used from rsrcid_to_token.
---
tools/wrc/parser.y | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/tools/wrc/parser.y b/tools/wrc/parser.y
index 28d4bc9..a62bccf 100644
--- a/tools/wrc/parser.y
+++ b/tools/wrc/parser.y
@@ -2865,7 +2865,6 @@ clean:
static int rsrcid_to_token(int lookahead)
{
int token;
- const char *type = "?";
/* Get a token if we don't have one yet */
if(lookahead == YYEMPTY)
@@ -2886,64 +2885,49 @@ static int rsrcid_to_token(int lookahead)
switch(yylval.num)
{
case WRC_RT_CURSOR:
- type = "CURSOR";
token = tCURSOR;
break;
case WRC_RT_ICON:
- type = "ICON";
token = tICON;
break;
case WRC_RT_BITMAP:
- type = "BITMAP";
token = tBITMAP;
break;
case WRC_RT_FONT:
- type = "FONT";
token = tFONT;
break;
case WRC_RT_FONTDIR:
- type = "FONTDIR";
token = tFONTDIR;
break;
case WRC_RT_RCDATA:
- type = "RCDATA";
token = tRCDATA;
break;
case WRC_RT_MESSAGETABLE:
- type = "MESSAGETABLE";
token = tMESSAGETABLE;
break;
case WRC_RT_DLGINIT:
- type = "DLGINIT";
token = tDLGINIT;
break;
case WRC_RT_ACCELERATOR:
- type = "ACCELERATOR";
token = tACCELERATORS;
break;
case WRC_RT_MENU:
- type = "MENU";
token = tMENU;
break;
case WRC_RT_DIALOG:
- type = "DIALOG";
token = tDIALOG;
break;
case WRC_RT_VERSION:
- type = "VERSION";
token = tVERSIONINFO;
break;
case WRC_RT_TOOLBAR:
- type = "TOOLBAR";
token = tTOOLBAR;
break;
case WRC_RT_HTML:
- type = "HTML";
token = tHTML;
break;
case WRC_RT_STRING:
- type = "STRINGTABLE";
break;
case WRC_RT_ANICURSOR:
More information about the wine-cvs
mailing list