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

« back to all changes in this revision

Viewing changes to programs/winedbg/dbg.y

  • 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:
24
24
#include "config.h"
25
25
#include "wine/port.h"
26
26
 
 
27
#include <stdio.h>
27
28
#include <stdlib.h>
28
29
#include <string.h>
29
30
#ifdef HAVE_UNISTD_H
34
35
#include "wine/exception.h"
35
36
#include "expr.h"
36
37
 
37
 
int yylex(void);
38
 
int yyerror(const char*);
 
38
int dbg_lex(void);
 
39
static int dbg_error(const char*);
39
40
 
40
41
%}
41
42
 
509
510
    HANDLE              in_copy  = dbg_parser_input;
510
511
    HANDLE              out_copy = dbg_parser_output;
511
512
 
512
 
#ifdef YYDEBUG
513
 
    yydebug = 0;
514
 
#endif
515
 
 
516
513
    ret_ok = FALSE;
517
514
 
518
515
    if (input != INVALID_HANDLE_VALUE)
531
528
       __TRY
532
529
       {
533
530
          ret_ok = TRUE;
534
 
          yyparse();
 
531
          dbg_parse();
535
532
       }
536
533
       __EXCEPT(wine_dbg_cmd)
537
534
       {
555
552
    }
556
553
}
557
554
 
558
 
int yyerror(const char* s)
 
555
int dbg_error(const char* s)
559
556
{
560
557
    dbg_printf("%s\n", s);
561
558
    return 0;