~ubuntu-branches/ubuntu/edgy/wine/edgy-backports

« back to all changes in this revision

Viewing changes to tools/wrc/wrc.c

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2006-09-14 14:39:06 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20060914143906-mvd49fm9tm5aeep9
Tags: 0.9.21-0ubuntu1
* New upstream version
* Changelog from Upstream:
  - OpenGL restructurations.
  - The usual assortment of MSI improvements.
  - Several Richedit fixes.
  - WCMD Winelib app renamed to CMD for compatibility.
  - Many improvements to the Wintrust DLL.
  - Some code cleanups.
  - Lots of bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
char *cmdline;                  /* The entire commandline */
167
167
time_t now;                     /* The time of start of wrc */
168
168
 
169
 
int yy_flex_debug;
 
169
int parser_debug, yy_flex_debug;
170
170
 
171
171
resource_t *resource_top;       /* The top of the parsed resources */
172
172
 
266
266
        cmdlen = 4; /* for "wrc " */
267
267
        for(i = 1; i < argc; i++)
268
268
                cmdlen += strlen(argv[i]) + 1;
269
 
        cmdline = (char *)xmalloc(cmdlen);
 
269
        cmdline = xmalloc(cmdlen);
270
270
        strcpy(cmdline, "wrc ");
271
271
        for(i = 1; i < argc; i++)
272
272
        {
424
424
                setbuf(stderr,0);
425
425
        }
426
426
 
427
 
        yydebug = debuglevel & DEBUGLEVEL_TRACE ? 1 : 0;
 
427
        parser_debug = debuglevel & DEBUGLEVEL_TRACE ? 1 : 0;
428
428
        yy_flex_debug = debuglevel & DEBUGLEVEL_TRACE ? 1 : 0;
429
429
 
430
430
        wpp_set_debug( (debuglevel & DEBUGLEVEL_PPLEX) != 0,
486
486
        /* Go from .rc to .res */
487
487
        chat("Starting parse");
488
488
 
489
 
        if(!(yyin = fopen(input_name, "rb")))
 
489
        if(!(parser_in = fopen(input_name, "rb")))
490
490
                error("Could not open %s for input\n", input_name);
491
491
 
492
 
        ret = yyparse();
 
492
        ret = parser_parse();
493
493
 
494
 
        if(input_name) fclose(yyin);
 
494
        if(input_name) fclose(parser_in);
495
495
 
496
496
        if(ret) exit(1); /* Error during parse */
497
497