Sync to Wine-20050419:

Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Michael Lin <mlin@corvu.com.au>
- Change menu item options to use optional comma.

svn path=/trunk/; revision=14797
This commit is contained in:
Gé van Geldorp 2005-04-25 09:12:35 +00:00
parent c782c3c14d
commit 2b5f3c76a1
5 changed files with 2135 additions and 2761 deletions

View file

@ -9,7 +9,8 @@
#define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_MINOR_VERSION 5
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <unistd.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus #ifdef c_plusplus
@ -22,9 +23,6 @@
#ifdef __cplusplus #ifdef __cplusplus
#include <stdlib.h> #include <stdlib.h>
#ifndef _WIN32
#include <unistd.h>
#endif
/* Use prototypes in function declarations. */ /* Use prototypes in function declarations. */
#define YY_USE_PROTOS #define YY_USE_PROTOS
@ -64,7 +62,6 @@
#define YY_PROTO(proto) () #define YY_PROTO(proto) ()
#endif #endif
/* Returned upon end-of-file. */ /* Returned upon end-of-file. */
#define YY_NULL 0 #define YY_NULL 0
@ -6887,7 +6884,7 @@ static yyconst short int yy_rule_linenum[92] =
#define YY_MORE_ADJ 0 #define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET #define YY_RESTORE_YY_MORE_OFFSET
char *yytext; char *yytext;
#line 1 "parser.l" #line 1 "./parser.l"
#define INITIAL 0 #define INITIAL 0
/* -*-C-*- /* -*-C-*-
* *
@ -6989,7 +6986,7 @@ char *yytext;
#define YY_STACK_USED 1 #define YY_STACK_USED 1
#define YY_NEVER_INTERACTIVE 1 #define YY_NEVER_INTERACTIVE 1
/* Some shortcut definitions */ /* Some shortcut definitions */
#line 97 "parser.l" #line 97 "./parser.l"
/*#define LEX_DEBUG*/ /*#define LEX_DEBUG*/
@ -7197,7 +7194,7 @@ static struct keyword *iskeyword(char *kw)
* The flexer starts here * The flexer starts here
************************************************************************** **************************************************************************
*/ */
#line 7201 "lex.yy.c" #line 7198 "lex.yy.c"
/* Macros after this point can all be overridden by user definitions in /* Macros after this point can all be overridden by user definitions in
* section 1. * section 1.
@ -7297,20 +7294,9 @@ YY_MALLOC_DECL
YY_FATAL_ERROR( "input in flex scanner failed" ); \ YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \ result = n; \
} \ } \
else \ else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
{ \ && ferror( yyin ) ) \
errno=0; \ YY_FATAL_ERROR( "input in flex scanner failed" );
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}
#endif #endif
/* No semi-colon after return; correct usage is to write "yyterminate();" - /* No semi-colon after return; correct usage is to write "yyterminate();" -
@ -7359,10 +7345,10 @@ YY_MALLOC_DECL
YY_DECL YY_DECL
{ {
register yy_state_type yy_current_state; register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp; register char *yy_cp = NULL, *yy_bp = NULL;
register int yy_act; register int yy_act;
#line 306 "parser.l" #line 306 "./parser.l"
/* /*
* Catch the GCC-style line statements here and parse them. * Catch the GCC-style line statements here and parse them.
@ -7382,7 +7368,7 @@ YY_DECL
* because we only want to know the linenumber and * because we only want to know the linenumber and
* filename. * filename.
*/ */
#line 7386 "lex.yy.c" #line 7372 "lex.yy.c"
if ( yy_init ) if ( yy_init )
{ {
@ -7471,17 +7457,17 @@ do_action: /* This label is used only to access EOF actions. */
case 1: case 1:
YY_RULE_SETUP YY_RULE_SETUP
#line 325 "parser.l" #line 325 "./parser.l"
yy_push_state(pp_pragma); yy_push_state(pp_pragma);
YY_BREAK YY_BREAK
case 2: case 2:
YY_RULE_SETUP YY_RULE_SETUP
#line 326 "parser.l" #line 326 "./parser.l"
yy_push_state(pp_line); yy_push_state(pp_line);
YY_BREAK YY_BREAK
case 3: case 3:
YY_RULE_SETUP YY_RULE_SETUP
#line 327 "parser.l" #line 327 "./parser.l"
{ {
int lineno; int lineno;
char *cptr; char *cptr;
@ -7504,22 +7490,22 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 4: case 4:
YY_RULE_SETUP YY_RULE_SETUP
#line 347 "parser.l" #line 347 "./parser.l"
yyless(9); yy_pop_state(); yy_push_state(pp_code_page); yyless(9); yy_pop_state(); yy_push_state(pp_code_page);
YY_BREAK YY_BREAK
case 5: case 5:
YY_RULE_SETUP YY_RULE_SETUP
#line 348 "parser.l" #line 348 "./parser.l"
yy_pop_state(); if (pedantic) yywarning("Unrecognized #pragma directive '%s'",yytext); yy_pop_state(); if (pedantic) yywarning("Unrecognized #pragma directive '%s'",yytext);
YY_BREAK YY_BREAK
case 6: case 6:
YY_RULE_SETUP YY_RULE_SETUP
#line 350 "parser.l" #line 350 "./parser.l"
current_codepage = -1; yy_pop_state(); current_codepage = -1; yy_pop_state();
YY_BREAK YY_BREAK
case 7: case 7:
YY_RULE_SETUP YY_RULE_SETUP
#line 351 "parser.l" #line 351 "./parser.l"
{ {
char *p = yytext; char *p = yytext;
yy_pop_state(); yy_pop_state();
@ -7534,7 +7520,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 8: case 8:
YY_RULE_SETUP YY_RULE_SETUP
#line 362 "parser.l" #line 362 "./parser.l"
yy_pop_state(); yyerror("Malformed #pragma code_page directive"); yy_pop_state(); yyerror("Malformed #pragma code_page directive");
YY_BREAK YY_BREAK
/* /*
@ -7544,42 +7530,42 @@ yy_pop_state(); yyerror("Malformed #pragma code_page directive");
*/ */
case 9: case 9:
YY_RULE_SETUP YY_RULE_SETUP
#line 369 "parser.l" #line 369 "./parser.l"
stripslevel++; stripslevel++;
YY_BREAK YY_BREAK
case 10: case 10:
YY_RULE_SETUP YY_RULE_SETUP
#line 370 "parser.l" #line 370 "./parser.l"
stripslevel--; stripslevel--;
YY_BREAK YY_BREAK
case 11: case 11:
YY_RULE_SETUP YY_RULE_SETUP
#line 371 "parser.l" #line 371 "./parser.l"
if(!stripslevel) yy_pop_state(); if(!stripslevel) yy_pop_state();
YY_BREAK YY_BREAK
case 12: case 12:
YY_RULE_SETUP YY_RULE_SETUP
#line 372 "parser.l" #line 372 "./parser.l"
; /* To catch comments */ ; /* To catch comments */
YY_BREAK YY_BREAK
case 13: case 13:
YY_RULE_SETUP YY_RULE_SETUP
#line 373 "parser.l" #line 373 "./parser.l"
; /* Ignore rest */ ; /* Ignore rest */
YY_BREAK YY_BREAK
case 14: case 14:
YY_RULE_SETUP YY_RULE_SETUP
#line 374 "parser.l" #line 374 "./parser.l"
line_number++; char_number = 1; line_number++; char_number = 1;
YY_BREAK YY_BREAK
case 15: case 15:
YY_RULE_SETUP YY_RULE_SETUP
#line 376 "parser.l" #line 376 "./parser.l"
stripplevel++; stripplevel++;
YY_BREAK YY_BREAK
case 16: case 16:
YY_RULE_SETUP YY_RULE_SETUP
#line 377 "parser.l" #line 377 "./parser.l"
{ {
stripplevel--; stripplevel--;
if(!stripplevel) if(!stripplevel)
@ -7591,62 +7577,62 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 17: case 17:
YY_RULE_SETUP YY_RULE_SETUP
#line 385 "parser.l" #line 385 "./parser.l"
; /* To catch comments */ ; /* To catch comments */
YY_BREAK YY_BREAK
case 18: case 18:
YY_RULE_SETUP YY_RULE_SETUP
#line 386 "parser.l" #line 386 "./parser.l"
; /* Ignore rest */ ; /* Ignore rest */
YY_BREAK YY_BREAK
case 19: case 19:
YY_RULE_SETUP YY_RULE_SETUP
#line 387 "parser.l" #line 387 "./parser.l"
line_number++; char_number = 1; line_number++; char_number = 1;
YY_BREAK YY_BREAK
case 20: case 20:
YY_RULE_SETUP YY_RULE_SETUP
#line 389 "parser.l" #line 389 "./parser.l"
; /* Ignore */ ; /* Ignore */
YY_BREAK YY_BREAK
case 21: case 21:
YY_RULE_SETUP YY_RULE_SETUP
#line 390 "parser.l" #line 390 "./parser.l"
yy_pop_state(); /* Kill the semicolon */ yy_pop_state(); /* Kill the semicolon */
YY_BREAK YY_BREAK
case 22: case 22:
YY_RULE_SETUP YY_RULE_SETUP
#line 391 "parser.l" #line 391 "./parser.l"
line_number++; char_number = 1; yy_pop_state(); line_number++; char_number = 1; yy_pop_state();
YY_BREAK YY_BREAK
case 23: case 23:
YY_RULE_SETUP YY_RULE_SETUP
#line 392 "parser.l" #line 392 "./parser.l"
yyless(0); yy_pop_state(); yyless(0); yy_pop_state();
YY_BREAK YY_BREAK
case 24: case 24:
YY_RULE_SETUP YY_RULE_SETUP
#line 394 "parser.l" #line 394 "./parser.l"
return tBEGIN; return tBEGIN;
YY_BREAK YY_BREAK
case 25: case 25:
YY_RULE_SETUP YY_RULE_SETUP
#line 395 "parser.l" #line 395 "./parser.l"
return tEND; return tEND;
YY_BREAK YY_BREAK
case 26: case 26:
YY_RULE_SETUP YY_RULE_SETUP
#line 397 "parser.l" #line 397 "./parser.l"
{ yylval.num = strtoul(yytext, 0, 10); return toupper(yytext[yyleng-1]) == 'L' ? tLNUMBER : tNUMBER; } { yylval.num = strtoul(yytext, 0, 10); return toupper(yytext[yyleng-1]) == 'L' ? tLNUMBER : tNUMBER; }
YY_BREAK YY_BREAK
case 27: case 27:
YY_RULE_SETUP YY_RULE_SETUP
#line 398 "parser.l" #line 398 "./parser.l"
{ yylval.num = strtoul(yytext, 0, 16); return toupper(yytext[yyleng-1]) == 'L' ? tLNUMBER : tNUMBER; } { yylval.num = strtoul(yytext, 0, 16); return toupper(yytext[yyleng-1]) == 'L' ? tLNUMBER : tNUMBER; }
YY_BREAK YY_BREAK
case 28: case 28:
YY_RULE_SETUP YY_RULE_SETUP
#line 399 "parser.l" #line 399 "./parser.l"
{ yylval.num = strtoul(yytext+2, 0, 8); return toupper(yytext[yyleng-1]) == 'L' ? tLNUMBER : tNUMBER; } { yylval.num = strtoul(yytext+2, 0, 8); return toupper(yytext[yyleng-1]) == 'L' ? tLNUMBER : tNUMBER; }
YY_BREAK YY_BREAK
/* /*
@ -7658,7 +7644,7 @@ YY_RULE_SETUP
*/ */
case 29: case 29:
YY_RULE_SETUP YY_RULE_SETUP
#line 408 "parser.l" #line 408 "./parser.l"
{ {
struct keyword *tok = iskeyword(yytext); struct keyword *tok = iskeyword(yytext);
@ -7681,7 +7667,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 30: case 30:
YY_RULE_SETUP YY_RULE_SETUP
#line 427 "parser.l" #line 427 "./parser.l"
yylval.str = make_string(yytext); return tFILENAME; yylval.str = make_string(yytext); return tFILENAME;
YY_BREAK YY_BREAK
/* /*
@ -7689,7 +7675,7 @@ yylval.str = make_string(yytext); return tFILENAME;
*/ */
case 31: case 31:
YY_RULE_SETUP YY_RULE_SETUP
#line 432 "parser.l" #line 432 "./parser.l"
{ {
yy_push_state(yylstr); yy_push_state(yylstr);
wbufidx = 0; wbufidx = 0;
@ -7698,10 +7684,10 @@ YY_RULE_SETUP
} }
YY_BREAK YY_BREAK
case 32: case 32:
#line 439 "parser.l" #line 439 "./parser.l"
case 33: case 33:
YY_RULE_SETUP YY_RULE_SETUP
#line 439 "parser.l" #line 439 "./parser.l"
{ {
yy_pop_state(); yy_pop_state();
yylval.str = get_buffered_wstring(); yylval.str = get_buffered_wstring();
@ -7710,7 +7696,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 34: case 34:
YY_RULE_SETUP YY_RULE_SETUP
#line 444 "parser.l" #line 444 "./parser.l"
{ /* octal escape sequence */ { /* octal escape sequence */
unsigned int result; unsigned int result;
result = strtoul(yytext+1, 0, 8); result = strtoul(yytext+1, 0, 8);
@ -7721,7 +7707,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 35: case 35:
YY_RULE_SETUP YY_RULE_SETUP
#line 451 "parser.l" #line 451 "./parser.l"
{ /* hex escape sequence */ { /* hex escape sequence */
unsigned int result; unsigned int result;
result = strtoul(yytext+2, 0, 16); result = strtoul(yytext+2, 0, 16);
@ -7730,82 +7716,82 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 36: case 36:
YY_RULE_SETUP YY_RULE_SETUP
#line 456 "parser.l" #line 456 "./parser.l"
{ yyerror("Invalid hex escape sequence '%s'", yytext); } { yyerror("Invalid hex escape sequence '%s'", yytext); }
YY_BREAK YY_BREAK
case 37: case 37:
YY_RULE_SETUP YY_RULE_SETUP
#line 458 "parser.l" #line 458 "./parser.l"
yyerror("Bad escape sequence"); yyerror("Bad escape sequence");
YY_BREAK YY_BREAK
case 38: case 38:
YY_RULE_SETUP YY_RULE_SETUP
#line 459 "parser.l" #line 459 "./parser.l"
line_number++; char_number = 1; /* backslash at EOL continues string after leading whitespace on next line */ line_number++; char_number = 1; /* backslash at EOL continues string after leading whitespace on next line */
YY_BREAK YY_BREAK
case 39: case 39:
YY_RULE_SETUP YY_RULE_SETUP
#line 460 "parser.l" #line 460 "./parser.l"
addwchar('\a'); addwchar('\a');
YY_BREAK YY_BREAK
case 40: case 40:
YY_RULE_SETUP YY_RULE_SETUP
#line 461 "parser.l" #line 461 "./parser.l"
addwchar('\b'); addwchar('\b');
YY_BREAK YY_BREAK
case 41: case 41:
YY_RULE_SETUP YY_RULE_SETUP
#line 462 "parser.l" #line 462 "./parser.l"
addwchar('\f'); addwchar('\f');
YY_BREAK YY_BREAK
case 42: case 42:
YY_RULE_SETUP YY_RULE_SETUP
#line 463 "parser.l" #line 463 "./parser.l"
addwchar('\n'); addwchar('\n');
YY_BREAK YY_BREAK
case 43: case 43:
YY_RULE_SETUP YY_RULE_SETUP
#line 464 "parser.l" #line 464 "./parser.l"
addwchar('\r'); addwchar('\r');
YY_BREAK YY_BREAK
case 44: case 44:
YY_RULE_SETUP YY_RULE_SETUP
#line 465 "parser.l" #line 465 "./parser.l"
addwchar('\t'); addwchar('\t');
YY_BREAK YY_BREAK
case 45: case 45:
YY_RULE_SETUP YY_RULE_SETUP
#line 466 "parser.l" #line 466 "./parser.l"
addwchar('\v'); addwchar('\v');
YY_BREAK YY_BREAK
case 46: case 46:
YY_RULE_SETUP YY_RULE_SETUP
#line 467 "parser.l" #line 467 "./parser.l"
addwchar(yytext[1]); addwchar(yytext[1]);
YY_BREAK YY_BREAK
case 47: case 47:
YY_RULE_SETUP YY_RULE_SETUP
#line 468 "parser.l" #line 468 "./parser.l"
addwchar(yytext[2]); line_number++; char_number = 1; addwchar(yytext[2]); line_number++; char_number = 1;
YY_BREAK YY_BREAK
case 48: case 48:
YY_RULE_SETUP YY_RULE_SETUP
#line 469 "parser.l" #line 469 "./parser.l"
addwchar('\"'); /* "bla""bla" -> "bla\"bla" */ addwchar('\"'); /* "bla""bla" -> "bla\"bla" */
YY_BREAK YY_BREAK
case 49: case 49:
YY_RULE_SETUP YY_RULE_SETUP
#line 470 "parser.l" #line 470 "./parser.l"
addwchar('\"'); /* "bla\""bla" -> "bla\"bla" */ addwchar('\"'); /* "bla\""bla" -> "bla\"bla" */
YY_BREAK YY_BREAK
case 50: case 50:
YY_RULE_SETUP YY_RULE_SETUP
#line 471 "parser.l" #line 471 "./parser.l"
; /* "bla" "bla" -> "blabla" */ ; /* "bla" "bla" -> "blabla" */
YY_BREAK YY_BREAK
case 51: case 51:
YY_RULE_SETUP YY_RULE_SETUP
#line 472 "parser.l" #line 472 "./parser.l"
{ {
char *yptr = yytext; char *yptr = yytext;
while(*yptr) /* FIXME: codepage translation */ while(*yptr) /* FIXME: codepage translation */
@ -7814,7 +7800,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 52: case 52:
YY_RULE_SETUP YY_RULE_SETUP
#line 477 "parser.l" #line 477 "./parser.l"
yyerror("Unterminated string"); yyerror("Unterminated string");
YY_BREAK YY_BREAK
/* /*
@ -7822,14 +7808,14 @@ yyerror("Unterminated string");
*/ */
case 53: case 53:
YY_RULE_SETUP YY_RULE_SETUP
#line 482 "parser.l" #line 482 "./parser.l"
yy_push_state(yystr); cbufidx = 0; yy_push_state(yystr); cbufidx = 0;
YY_BREAK YY_BREAK
case 54: case 54:
#line 484 "parser.l" #line 484 "./parser.l"
case 55: case 55:
YY_RULE_SETUP YY_RULE_SETUP
#line 484 "parser.l" #line 484 "./parser.l"
{ {
yy_pop_state(); yy_pop_state();
yylval.str = get_buffered_cstring(); yylval.str = get_buffered_cstring();
@ -7838,7 +7824,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 56: case 56:
YY_RULE_SETUP YY_RULE_SETUP
#line 489 "parser.l" #line 489 "./parser.l"
{ /* octal escape sequence */ { /* octal escape sequence */
int result; int result;
result = strtol(yytext+1, 0, 8); result = strtol(yytext+1, 0, 8);
@ -7849,7 +7835,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 57: case 57:
YY_RULE_SETUP YY_RULE_SETUP
#line 496 "parser.l" #line 496 "./parser.l"
{ /* hex escape sequence */ { /* hex escape sequence */
int result; int result;
result = strtol(yytext+2, 0, 16); result = strtol(yytext+2, 0, 16);
@ -7858,67 +7844,67 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 58: case 58:
YY_RULE_SETUP YY_RULE_SETUP
#line 501 "parser.l" #line 501 "./parser.l"
{ yyerror("Invalid hex escape sequence '%s'", yytext); } { yyerror("Invalid hex escape sequence '%s'", yytext); }
YY_BREAK YY_BREAK
case 59: case 59:
YY_RULE_SETUP YY_RULE_SETUP
#line 503 "parser.l" #line 503 "./parser.l"
yyerror("Bad escape sequence"); yyerror("Bad escape sequence");
YY_BREAK YY_BREAK
case 60: case 60:
YY_RULE_SETUP YY_RULE_SETUP
#line 504 "parser.l" #line 504 "./parser.l"
line_number++; char_number = 1; /* backslash at EOL continues string after leading whitespace on next line */ line_number++; char_number = 1; /* backslash at EOL continues string after leading whitespace on next line */
YY_BREAK YY_BREAK
case 61: case 61:
YY_RULE_SETUP YY_RULE_SETUP
#line 505 "parser.l" #line 505 "./parser.l"
addcchar('\a'); addcchar('\a');
YY_BREAK YY_BREAK
case 62: case 62:
YY_RULE_SETUP YY_RULE_SETUP
#line 506 "parser.l" #line 506 "./parser.l"
addcchar('\b'); addcchar('\b');
YY_BREAK YY_BREAK
case 63: case 63:
YY_RULE_SETUP YY_RULE_SETUP
#line 507 "parser.l" #line 507 "./parser.l"
addcchar('\f'); addcchar('\f');
YY_BREAK YY_BREAK
case 64: case 64:
YY_RULE_SETUP YY_RULE_SETUP
#line 508 "parser.l" #line 508 "./parser.l"
addcchar('\n'); addcchar('\n');
YY_BREAK YY_BREAK
case 65: case 65:
YY_RULE_SETUP YY_RULE_SETUP
#line 509 "parser.l" #line 509 "./parser.l"
addcchar('\r'); addcchar('\r');
YY_BREAK YY_BREAK
case 66: case 66:
YY_RULE_SETUP YY_RULE_SETUP
#line 510 "parser.l" #line 510 "./parser.l"
addcchar('\t'); addcchar('\t');
YY_BREAK YY_BREAK
case 67: case 67:
YY_RULE_SETUP YY_RULE_SETUP
#line 511 "parser.l" #line 511 "./parser.l"
addcchar('\v'); addcchar('\v');
YY_BREAK YY_BREAK
case 68: case 68:
YY_RULE_SETUP YY_RULE_SETUP
#line 512 "parser.l" #line 512 "./parser.l"
addcchar(yytext[1]); addcchar(yytext[1]);
YY_BREAK YY_BREAK
case 69: case 69:
YY_RULE_SETUP YY_RULE_SETUP
#line 513 "parser.l" #line 513 "./parser.l"
addcchar(yytext[2]); line_number++; char_number = 1; addcchar(yytext[2]); line_number++; char_number = 1;
YY_BREAK YY_BREAK
case 70: case 70:
YY_RULE_SETUP YY_RULE_SETUP
#line 514 "parser.l" #line 514 "./parser.l"
{ {
char *yptr = yytext; char *yptr = yytext;
while(*yptr) while(*yptr)
@ -7927,22 +7913,22 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 71: case 71:
YY_RULE_SETUP YY_RULE_SETUP
#line 519 "parser.l" #line 519 "./parser.l"
addcchar('\"'); /* "bla""bla" -> "bla\"bla" */ addcchar('\"'); /* "bla""bla" -> "bla\"bla" */
YY_BREAK YY_BREAK
case 72: case 72:
YY_RULE_SETUP YY_RULE_SETUP
#line 520 "parser.l" #line 520 "./parser.l"
addcchar('\"'); /* "bla\""bla" -> "bla\"bla" */ addcchar('\"'); /* "bla\""bla" -> "bla\"bla" */
YY_BREAK YY_BREAK
case 73: case 73:
YY_RULE_SETUP YY_RULE_SETUP
#line 521 "parser.l" #line 521 "./parser.l"
; /* "bla" "bla" -> "blabla" */ ; /* "bla" "bla" -> "blabla" */
YY_BREAK YY_BREAK
case 74: case 74:
YY_RULE_SETUP YY_RULE_SETUP
#line 522 "parser.l" #line 522 "./parser.l"
yyerror("Unterminated string"); yyerror("Unterminated string");
YY_BREAK YY_BREAK
/* /*
@ -7950,12 +7936,12 @@ yyerror("Unterminated string");
*/ */
case 75: case 75:
YY_RULE_SETUP YY_RULE_SETUP
#line 527 "parser.l" #line 527 "./parser.l"
yy_push_state(yyrcd); cbufidx = 0; yy_push_state(yyrcd); cbufidx = 0;
YY_BREAK YY_BREAK
case 76: case 76:
YY_RULE_SETUP YY_RULE_SETUP
#line 528 "parser.l" #line 528 "./parser.l"
{ {
yy_pop_state(); yy_pop_state();
yylval.raw = new_raw_data(); yylval.raw = new_raw_data();
@ -7967,7 +7953,7 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 77: case 77:
YY_RULE_SETUP YY_RULE_SETUP
#line 536 "parser.l" #line 536 "./parser.l"
{ {
int result; int result;
result = strtol(yytext, 0, 16); result = strtol(yytext, 0, 16);
@ -7976,17 +7962,17 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 78: case 78:
YY_RULE_SETUP YY_RULE_SETUP
#line 541 "parser.l" #line 541 "./parser.l"
; /* Ignore space */ ; /* Ignore space */
YY_BREAK YY_BREAK
case 79: case 79:
YY_RULE_SETUP YY_RULE_SETUP
#line 542 "parser.l" #line 542 "./parser.l"
line_number++; char_number = 1; line_number++; char_number = 1;
YY_BREAK YY_BREAK
case 80: case 80:
YY_RULE_SETUP YY_RULE_SETUP
#line 543 "parser.l" #line 543 "./parser.l"
yyerror("Malformed data-line"); yyerror("Malformed data-line");
YY_BREAK YY_BREAK
/* /*
@ -7995,7 +7981,7 @@ yyerror("Malformed data-line");
*/ */
case 81: case 81:
YY_RULE_SETUP YY_RULE_SETUP
#line 549 "parser.l" #line 549 "./parser.l"
{ {
yy_push_state(comment); yy_push_state(comment);
save_wanted_id = wanted_id; save_wanted_id = wanted_id;
@ -8005,37 +7991,37 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 82: case 82:
YY_RULE_SETUP YY_RULE_SETUP
#line 555 "parser.l" #line 555 "./parser.l"
; ;
YY_BREAK YY_BREAK
case 83: case 83:
YY_RULE_SETUP YY_RULE_SETUP
#line 556 "parser.l" #line 556 "./parser.l"
; ;
YY_BREAK YY_BREAK
case 84: case 84:
YY_RULE_SETUP YY_RULE_SETUP
#line 557 "parser.l" #line 557 "./parser.l"
line_number++; char_number = 1; line_number++; char_number = 1;
YY_BREAK YY_BREAK
case 85: case 85:
YY_RULE_SETUP YY_RULE_SETUP
#line 558 "parser.l" #line 558 "./parser.l"
yy_pop_state(); want_id = save_wanted_id; yy_pop_state(); want_id = save_wanted_id;
YY_BREAK YY_BREAK
case 86: case 86:
YY_RULE_SETUP YY_RULE_SETUP
#line 560 "parser.l" #line 560 "./parser.l"
want_id = wanted_id; /* not really comment, but left-over c-junk */ want_id = wanted_id; /* not really comment, but left-over c-junk */
YY_BREAK YY_BREAK
case 87: case 87:
YY_RULE_SETUP YY_RULE_SETUP
#line 561 "parser.l" #line 561 "./parser.l"
want_id = wanted_id; if(!no_preprocess) yywarning("Found comments after preprocessing, please report"); want_id = wanted_id; if(!no_preprocess) yywarning("Found comments after preprocessing, please report");
YY_BREAK YY_BREAK
case 88: case 88:
YY_RULE_SETUP YY_RULE_SETUP
#line 563 "parser.l" #line 563 "./parser.l"
{ {
want_id = wanted_id; want_id = wanted_id;
line_number++; line_number++;
@ -8049,12 +8035,12 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 89: case 89:
YY_RULE_SETUP YY_RULE_SETUP
#line 573 "parser.l" #line 573 "./parser.l"
want_id = wanted_id; /* Eat whitespace */ want_id = wanted_id; /* Eat whitespace */
YY_BREAK YY_BREAK
case 90: case 90:
YY_RULE_SETUP YY_RULE_SETUP
#line 575 "parser.l" #line 575 "./parser.l"
return yytext[0]; return yytext[0];
YY_BREAK YY_BREAK
case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(INITIAL):
@ -8069,7 +8055,7 @@ case YY_STATE_EOF(pp_stripp_final):
case YY_STATE_EOF(pp_line): case YY_STATE_EOF(pp_line):
case YY_STATE_EOF(pp_pragma): case YY_STATE_EOF(pp_pragma):
case YY_STATE_EOF(pp_code_page): case YY_STATE_EOF(pp_code_page):
#line 577 "parser.l" #line 577 "./parser.l"
{ {
if(YY_START == pp_strips || YY_START == pp_stripe || YY_START == pp_stripp || YY_START == pp_stripp_final) if(YY_START == pp_strips || YY_START == pp_stripe || YY_START == pp_stripp || YY_START == pp_stripp_final)
yyerror("Unexpected end of file during c-junk scanning (started at %d)", cjunk_tagline); yyerror("Unexpected end of file during c-junk scanning (started at %d)", cjunk_tagline);
@ -8079,7 +8065,7 @@ case YY_STATE_EOF(pp_code_page):
YY_BREAK YY_BREAK
case 91: case 91:
YY_RULE_SETUP YY_RULE_SETUP
#line 584 "parser.l" #line 584 "./parser.l"
{ {
/* Catch all rule to find any unmatched text */ /* Catch all rule to find any unmatched text */
if(*yytext == '\n') if(*yytext == '\n')
@ -8093,10 +8079,10 @@ YY_RULE_SETUP
YY_BREAK YY_BREAK
case 92: case 92:
YY_RULE_SETUP YY_RULE_SETUP
#line 595 "parser.l" #line 595 "./parser.l"
ECHO; ECHO;
YY_BREAK YY_BREAK
#line 8100 "lex.yy.c" #line 8086 "lex.yy.c"
case YY_END_OF_BUFFER: case YY_END_OF_BUFFER:
{ {
@ -8472,6 +8458,7 @@ register char *yy_bp;
#endif /* ifndef YY_NO_UNPUT */ #endif /* ifndef YY_NO_UNPUT */
#ifndef YY_NO_INPUT
#ifdef __cplusplus #ifdef __cplusplus
static int yyinput() static int yyinput()
#else #else
@ -8544,7 +8531,7 @@ static int input()
return c; return c;
} }
#endif /* YY_NO_INPUT */
#ifdef YY_USE_PROTOS #ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file ) void yyrestart( FILE *input_file )
@ -8655,15 +8642,6 @@ YY_BUFFER_STATE b;
} }
#ifndef _WIN32
#include <unistd.h>
#else
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif
#endif
#ifdef YY_USE_PROTOS #ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
@ -8981,7 +8959,7 @@ int main()
return 0; return 0;
} }
#endif #endif
#line 595 "parser.l" #line 595 "./parser.l"
#ifndef yywrap #ifndef yywrap

View file

@ -858,8 +858,8 @@ ani_curico_t *new_ani_curico(enum res_e type, raw_data_t *rd, int *memopt)
/* We only go through the RIFF file if we need to swap /* We only go through the RIFF file if we need to swap
* bytes in words/dwords. Else we couldn't care less * bytes in words/dwords. Else we couldn't care less
* what the file contains. This is consistent with * what the file contains. This is consistent with
* MS' rc.exe, which doesn't complain at all, eventhough * MS' rc.exe, which doesn't complain at all, even though
* the fileformat might not be entirely correct. * the file format might not be entirely correct.
*/ */
rtp++; /* Skip the "RIFF" tag */ rtp++; /* Skip the "RIFF" tag */

View file

@ -1283,12 +1283,12 @@ item_definitions
*/ */
item_options item_options
: /* Empty */ { $$ = 0; } : /* Empty */ { $$ = 0; }
| ',' tCHECKED item_options { $$ = $3 | MF_CHECKED; } | opt_comma tCHECKED item_options { $$ = $3 | MF_CHECKED; }
| ',' tGRAYED item_options { $$ = $3 | MF_GRAYED; } | opt_comma tGRAYED item_options { $$ = $3 | MF_GRAYED; }
| ',' tHELP item_options { $$ = $3 | MF_HELP; } | opt_comma tHELP item_options { $$ = $3 | MF_HELP; }
| ',' tINACTIVE item_options { $$ = $3 | MF_DISABLED; } | opt_comma tINACTIVE item_options { $$ = $3 | MF_DISABLED; }
| ',' tMENUBARBREAK item_options { $$ = $3 | MF_MENUBARBREAK; } | opt_comma tMENUBARBREAK item_options { $$ = $3 | MF_MENUBARBREAK; }
| ',' tMENUBREAK item_options { $$ = $3 | MF_MENUBREAK; } | opt_comma tMENUBREAK item_options { $$ = $3 | MF_MENUBREAK; }
; ;
/* ------------------------------ MenuEx ------------------------------ */ /* ------------------------------ MenuEx ------------------------------ */

File diff suppressed because it is too large Load diff

View file

@ -1,207 +1,8 @@
/* A Bison parser, made by GNU Bison 1.875b. */ #ifndef BISON_Y_TAB_H
# define BISON_Y_TAB_H
/* Skeleton parser for Yacc-like parsing with Bison, #ifndef YYSTYPE
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. typedef union{
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* As a special exception, when this file is copied by Bison into a
Bison output file, you may use that output file without restriction.
This special exception was added by the Free Software Foundation
in version 1.24 of Bison. */
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
tNL = 258,
tNUMBER = 259,
tLNUMBER = 260,
tSTRING = 261,
tIDENT = 262,
tFILENAME = 263,
tRAWDATA = 264,
tACCELERATORS = 265,
tBITMAP = 266,
tCURSOR = 267,
tDIALOG = 268,
tDIALOGEX = 269,
tMENU = 270,
tMENUEX = 271,
tMESSAGETABLE = 272,
tRCDATA = 273,
tVERSIONINFO = 274,
tSTRINGTABLE = 275,
tFONT = 276,
tFONTDIR = 277,
tICON = 278,
tAUTO3STATE = 279,
tAUTOCHECKBOX = 280,
tAUTORADIOBUTTON = 281,
tCHECKBOX = 282,
tDEFPUSHBUTTON = 283,
tPUSHBUTTON = 284,
tRADIOBUTTON = 285,
tSTATE3 = 286,
tGROUPBOX = 287,
tCOMBOBOX = 288,
tLISTBOX = 289,
tSCROLLBAR = 290,
tCONTROL = 291,
tEDITTEXT = 292,
tRTEXT = 293,
tCTEXT = 294,
tLTEXT = 295,
tBLOCK = 296,
tVALUE = 297,
tSHIFT = 298,
tALT = 299,
tASCII = 300,
tVIRTKEY = 301,
tGRAYED = 302,
tCHECKED = 303,
tINACTIVE = 304,
tNOINVERT = 305,
tPURE = 306,
tIMPURE = 307,
tDISCARDABLE = 308,
tLOADONCALL = 309,
tPRELOAD = 310,
tFIXED = 311,
tMOVEABLE = 312,
tCLASS = 313,
tCAPTION = 314,
tCHARACTERISTICS = 315,
tEXSTYLE = 316,
tSTYLE = 317,
tVERSION = 318,
tLANGUAGE = 319,
tFILEVERSION = 320,
tPRODUCTVERSION = 321,
tFILEFLAGSMASK = 322,
tFILEOS = 323,
tFILETYPE = 324,
tFILEFLAGS = 325,
tFILESUBTYPE = 326,
tMENUBARBREAK = 327,
tMENUBREAK = 328,
tMENUITEM = 329,
tPOPUP = 330,
tSEPARATOR = 331,
tHELP = 332,
tTOOLBAR = 333,
tBUTTON = 334,
tBEGIN = 335,
tEND = 336,
tDLGINIT = 337,
tNOT = 338,
pUPM = 339
};
#endif
#define tNL 258
#define tNUMBER 259
#define tLNUMBER 260
#define tSTRING 261
#define tIDENT 262
#define tFILENAME 263
#define tRAWDATA 264
#define tACCELERATORS 265
#define tBITMAP 266
#define tCURSOR 267
#define tDIALOG 268
#define tDIALOGEX 269
#define tMENU 270
#define tMENUEX 271
#define tMESSAGETABLE 272
#define tRCDATA 273
#define tVERSIONINFO 274
#define tSTRINGTABLE 275
#define tFONT 276
#define tFONTDIR 277
#define tICON 278
#define tAUTO3STATE 279
#define tAUTOCHECKBOX 280
#define tAUTORADIOBUTTON 281
#define tCHECKBOX 282
#define tDEFPUSHBUTTON 283
#define tPUSHBUTTON 284
#define tRADIOBUTTON 285
#define tSTATE3 286
#define tGROUPBOX 287
#define tCOMBOBOX 288
#define tLISTBOX 289
#define tSCROLLBAR 290
#define tCONTROL 291
#define tEDITTEXT 292
#define tRTEXT 293
#define tCTEXT 294
#define tLTEXT 295
#define tBLOCK 296
#define tVALUE 297
#define tSHIFT 298
#define tALT 299
#define tASCII 300
#define tVIRTKEY 301
#define tGRAYED 302
#define tCHECKED 303
#define tINACTIVE 304
#define tNOINVERT 305
#define tPURE 306
#define tIMPURE 307
#define tDISCARDABLE 308
#define tLOADONCALL 309
#define tPRELOAD 310
#define tFIXED 311
#define tMOVEABLE 312
#define tCLASS 313
#define tCAPTION 314
#define tCHARACTERISTICS 315
#define tEXSTYLE 316
#define tSTYLE 317
#define tVERSION 318
#define tLANGUAGE 319
#define tFILEVERSION 320
#define tPRODUCTVERSION 321
#define tFILEFLAGSMASK 322
#define tFILEOS 323
#define tFILETYPE 324
#define tFILEFLAGS 325
#define tFILESUBTYPE 326
#define tMENUBARBREAK 327
#define tMENUBREAK 328
#define tMENUITEM 329
#define tPOPUP 330
#define tSEPARATOR 331
#define tHELP 332
#define tTOOLBAR 333
#define tBUTTON 334
#define tBEGIN 335
#define tEND 336
#define tDLGINIT 337
#define tNOT 338
#define pUPM 339
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
#line 240 "parser.y"
typedef union YYSTYPE {
string_t *str; string_t *str;
int num; int num;
int *iptr; int *iptr;
@ -242,15 +43,94 @@ typedef union YYSTYPE {
style_pair_t *styles; style_pair_t *styles;
style_t *style; style_t *style;
ani_any_t *ani; ani_any_t *ani;
} YYSTYPE; } yystype;
/* Line 1252 of yacc.c. */ # define YYSTYPE yystype
#line 248 "y.tab.h"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1 # define YYSTYPE_IS_TRIVIAL 1
#endif #endif
# define tNL 257
# define tNUMBER 258
# define tLNUMBER 259
# define tSTRING 260
# define tIDENT 261
# define tFILENAME 262
# define tRAWDATA 263
# define tACCELERATORS 264
# define tBITMAP 265
# define tCURSOR 266
# define tDIALOG 267
# define tDIALOGEX 268
# define tMENU 269
# define tMENUEX 270
# define tMESSAGETABLE 271
# define tRCDATA 272
# define tVERSIONINFO 273
# define tSTRINGTABLE 274
# define tFONT 275
# define tFONTDIR 276
# define tICON 277
# define tAUTO3STATE 278
# define tAUTOCHECKBOX 279
# define tAUTORADIOBUTTON 280
# define tCHECKBOX 281
# define tDEFPUSHBUTTON 282
# define tPUSHBUTTON 283
# define tRADIOBUTTON 284
# define tSTATE3 285
# define tGROUPBOX 286
# define tCOMBOBOX 287
# define tLISTBOX 288
# define tSCROLLBAR 289
# define tCONTROL 290
# define tEDITTEXT 291
# define tRTEXT 292
# define tCTEXT 293
# define tLTEXT 294
# define tBLOCK 295
# define tVALUE 296
# define tSHIFT 297
# define tALT 298
# define tASCII 299
# define tVIRTKEY 300
# define tGRAYED 301
# define tCHECKED 302
# define tINACTIVE 303
# define tNOINVERT 304
# define tPURE 305
# define tIMPURE 306
# define tDISCARDABLE 307
# define tLOADONCALL 308
# define tPRELOAD 309
# define tFIXED 310
# define tMOVEABLE 311
# define tCLASS 312
# define tCAPTION 313
# define tCHARACTERISTICS 314
# define tEXSTYLE 315
# define tSTYLE 316
# define tVERSION 317
# define tLANGUAGE 318
# define tFILEVERSION 319
# define tPRODUCTVERSION 320
# define tFILEFLAGSMASK 321
# define tFILEOS 322
# define tFILETYPE 323
# define tFILEFLAGS 324
# define tFILESUBTYPE 325
# define tMENUBARBREAK 326
# define tMENUBREAK 327
# define tMENUITEM 328
# define tPOPUP 329
# define tSEPARATOR 330
# define tHELP 331
# define tTOOLBAR 332
# define tBUTTON 333
# define tBEGIN 334
# define tEND 335
# define tDLGINIT 336
# define tNOT 337
# define pUPM 338
extern YYSTYPE yylval; extern YYSTYPE yylval;
#endif /* not BISON_Y_TAB_H */