Re: Wine CVS won't compile + fix
iogurt <[email protected]> Tue, 2 May 2006 22:44:36 +0000 (UTC)
| Newsgroups | gmane.comp.emulators.winex.devel |
|---|---|
| Message-ID | <[email protected]> |
1.Your diff data I have saved as folowinf patch:
--- winex/tools/widl/ppl.l 2002-08-04 12:42:56.000000000 -0700
+++ winex.new/tools/widl/ppl.l 2006-04-26 17:09:32.000000000 -0700
<at> <at> -30,7 +30,7 <at> <at>
* | {ws} # {ws} error {ws} {anytext} \n
* | {ws} # {ws} warning {ws} {anytext} \n
* | {ws} # {ws} line {ws} " {anytext} " {number} \n
- * | {ws} # {ws} {number} " {anytext} " {number} [{number} [{number}]] \n
+ * | {ws} # {ws} {number} " {anytext} " {number} [{number} [{number}] ] \n
* | {ws} # {ws} \n
*
* ws := [ \t\r\f\v]*
--- winex/tools/wrc/parser.l 2006-01-09 10:21:50.000000000 -0800
+++ winex.new/tools/wrc/parser.l 2006-04-26 17:08:54.000000000 -0700
<at> <at> -53,7 +53,7 <at> <at>
*/
/* Exclusive string handling */
-%x yystr
+%x yy_str
/* Exclusive unicode string handling */
%x yylstr
/* Exclusive rcdata single quoted data handling */
<at> <at> -440,46 +440,46 <at> <at>
/*
* Normal string scanning
*/
-\" yy_push_state(yystr); cbufidx = 0;
-<yystr>\"{ws}+ |
-<yystr>\" {
+\" yy_push_state(yy_str); cbufidx = 0;
+<yy_str>\"{ws}+ |
+<yy_str>\" {
yy_pop_state();
yylval.str = get_buffered_cstring();
return tSTRING;
}
-<yystr>\\[0-7]{1,3} { /* octal escape sequence */
+<yy_str>\\[0-7]{1,3} { /* octal escape sequence */
int result;
result = strtol(yytext+1, 0, 8);
if ( result > 0xff )
yyerror("Character constant out of range");
addcchar((char)result);
}
-<yystr>\\x[0-9a-fA-F]{2} { /* hex escape sequence */
+<yy_str>\\x[0-9a-fA-F]{2} { /* hex escape sequence */
int result;
result = strtol(yytext+2, 0, 16);
addcchar((char)result);
}
-<yystr>\\x[0-9a-fA-F] { yyerror("Invalid hex escape sequence '%s'", yytext); }
+<yy_str>\\x[0-9a-fA-F] { yyerror("Invalid hex escape sequence '%s'", yytext); }
-<yystr>\\[0-9]+ yyerror("Bad escape secuence");
-<yystr>\\a addcchar('\a');
-<yystr>\\b addcchar('\b');
-<yystr>\\f addcchar('\f');
-<yystr>\\n addcchar('\n');
-<yystr>\\r addcchar('\r');
-<yystr>\\t addcchar('\t');
-<yystr>\\v addcchar('\v');
-<yystr>\\(\n|.) addcchar(yytext[1]);
-<yystr>\\\r\n addcchar(yytext[2]);
-<yystr>[^\\\n\"]+ {
+<yy_str>\\[0-9]+ yyerror("Bad escape secuence");
+<yy_str>\\a addcchar('\a');
+<yy_str>\\b addcchar('\b');
+<yy_str>\\f addcchar('\f');
+<yy_str>\\n addcchar('\n');
+<yy_str>\\r addcchar('\r');
+<yy_str>\\t addcchar('\t');
+<yy_str>\\v addcchar('\v');
+<yy_str>\\(\n|.) addcchar(yytext[1]);
+<yy_str>\\\r\n addcchar(yytext[2]);
+<yy_str>[^\\\n\"]+ {
char *yptr = yytext;
while(*yptr)
addcchar(*yptr++);
}
-<yystr>\"\" addcchar('\"'); /* "bla""bla" -> "bla\"bla" */
-<yystr>\\\"\" addcchar('\"'); /* "bla\""bla" -> "bla\"bla" */
-<yystr>\"{ws}+\" ; /* "bla" "bla" -> "blabla" */
-<yystr>\n yyerror("Unterminated string");
+<yy_str>\"\" addcchar('\"'); /* "bla""bla" -> "bla\"bla" */
+<yy_str>\\\"\" addcchar('\"'); /* "bla\""bla" -> "bla\"bla" */
+<yy_str>\"{ws}+\" ; /* "bla" "bla" -> "blabla" */
+<yy_str>\n yyerror("Unterminated string");
/*
* Raw data scanning
--- winex/tools/wrc/ppl.l 2001-12-31 02:53:15.000000000 -0800
+++ winex.new/tools/wrc/ppl.l 2006-04-26 17:09:20.000000000 -0700
<at> <at> -30,7 +30,7 <at> <at>
* | {ws} # {ws} error {ws} {anytext} \n
* | {ws} # {ws} warning {ws} {anytext} \n
* | {ws} # {ws} line {ws} " {anytext} " {number} \n
- * | {ws} # {ws} {number} " {anytext} " {number} [{number} [{number}]] \n
+ * | {ws} # {ws} {number} " {anytext} " {number} [{number} [{number}] ] \n
* | {ws} # {ws} \n
*
* ws := [ \t\r\f\v]*
2. I have applayied it by following command:
pathch -p0 <patch
3. What I have done wrong?