Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1be6e9a6
Commit
1be6e9a6
authored
Sep 12, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Change the prefix on bison-generated names to avoid the name-prefix directive.
parent
2d1b6182
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
19 deletions
+17
-19
dbg.y
programs/winedbg/dbg.y
+4
-6
debug.l
programs/winedbg/debug.l
+13
-13
No files found.
programs/winedbg/dbg.y
View file @
1be6e9a6
...
...
@@ -35,13 +35,11 @@
#include "wine/exception.h"
#include "expr.h"
int
yy
lex(void);
int yy
error(const char*);
int
dbg_
lex(void);
static int dbg_
error(const char*);
%}
%name-prefix="yy"
%union
{
struct dbg_lvalue lvalue;
...
...
@@ -530,7 +528,7 @@ void parser_handle(HANDLE input)
__TRY
{
ret_ok = TRUE;
yy
parse();
dbg_
parse();
}
__EXCEPT(wine_dbg_cmd)
{
...
...
@@ -554,7 +552,7 @@ void parser(const char* filename)
}
}
int
yy
error(const char* s)
int
dbg_
error(const char* s)
{
dbg_printf("%s\n", s);
return 0;
...
...
programs/winedbg/debug.l
View file @
1be6e9a6
...
...
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
%option nounput interactive 8bit
%option nounput interactive 8bit
prefix="dbg_"
%{
#include <stdlib.h>
...
...
@@ -104,7 +104,7 @@ STRING \"[^\n"]+\"
/* This rule must precede the ones below, */
/* otherwise paths like '/' or '0x9' would */
/* get parsed as an operator or tNUM */
<PATH_EXPECTED>{PATHNAME} {
yy
lval.string = lexeme_alloc(yytext); return tPATH; }
<PATH_EXPECTED>{PATHNAME} {
dbg_
lval.string = lexeme_alloc(yytext); return tPATH; }
"||" { return OP_LOR; }
"&&" { return OP_LAND; }
...
...
@@ -120,19 +120,19 @@ STRING \"[^\n"]+\"
"[" { return *yytext; }
"]" { return *yytext; }
"0x"{HEXDIGIT}+ { sscanf(yytext, "%x", &
yy
lval.integer); return tNUM; }
{DIGIT}+ { sscanf(yytext, "%d", &
yy
lval.integer); return tNUM; }
"0x"{HEXDIGIT}+ { sscanf(yytext, "%x", &
dbg_
lval.integer); return tNUM; }
{DIGIT}+ { sscanf(yytext, "%d", &
dbg_
lval.integer); return tNUM; }
<FORMAT_EXPECTED>"/"{DIGIT}+{FORMAT} { char* last;
yy
lval.integer = strtol(yytext+1, &last, 0) << 8;
yy
lval.integer |= *last;
dbg_
lval.integer = strtol(yytext+1, &last, 0) << 8;
dbg_
lval.integer |= *last;
return tFORMAT; }
<FORMAT_EXPECTED>"/"{FORMAT} {
yy
lval.integer = (1 << 8) | yytext[1]; return tFORMAT; }
<FORMAT_EXPECTED>"/"{FORMAT} {
dbg_
lval.integer = (1 << 8) | yytext[1]; return tFORMAT; }
{STRING} {
yylval.string = lexeme_alloc(yytext + 1); yylval.string[strlen(yy
lval.string) - 1] = '\0'; return tSTRING; }
{STRING} {
dbg_lval.string = lexeme_alloc(yytext + 1); dbg_lval.string[strlen(dbg_
lval.string) - 1] = '\0'; return tSTRING; }
<ASTRING_EXPECTED>[^\n]+ { char* p = yytext; while (*p == ' ' || *p == '\t') p++;
yy
lval.string = lexeme_alloc(p); return tSTRING; }
dbg_
lval.string = lexeme_alloc(p); return tSTRING; }
<INITIAL,NOPROCESS>info|inf|in { BEGIN(INFO_CMD); return tINFO; }
<INITIAL>up { BEGIN(NOCMD); return tUP; }
...
...
@@ -214,8 +214,8 @@ union { return tUNION; }
enum { return tENUM; }
all { return tALL; }
{IDENTIFIER} {
yy
lval.string = lexeme_alloc(yytext); return tIDENTIFIER; }
"$"{IDENTIFIER} {
yy
lval.string = lexeme_alloc(yytext+1); return tINTVAR; }
{IDENTIFIER} {
dbg_
lval.string = lexeme_alloc(yytext); return tIDENTIFIER; }
"$"{IDENTIFIER} {
dbg_
lval.string = lexeme_alloc(yytext+1); return tINTVAR; }
<*>[ \t\r]+ /* Eat up whitespace and DOS LF */
...
...
@@ -223,8 +223,8 @@ all { return tALL; }
<*>. { if (syntax_error == 0) { syntax_error++; dbg_printf("Syntax Error (%s)\n", yytext); } }
%%
#ifndef
yy
wrap
int
yy
wrap(void) { return 1; }
#ifndef
dbg_
wrap
int
dbg_
wrap(void) { return 1; }
#endif
static char** local_lexemes /* = NULL */;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment