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
fc8c8a52
Commit
fc8c8a52
authored
Jul 16, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: Report an error when encountering non-ASCII characters.
parent
5d569956
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
parser.l
tools/wrc/parser.l
+3
-3
No files found.
tools/wrc/parser.l
View file @
fc8c8a52
...
@@ -573,7 +573,7 @@ L\" {
...
@@ -573,7 +573,7 @@ L\" {
}
}
{ws}+ want_id = wanted_id; /* Eat whitespace */
{ws}+ want_id = wanted_id; /* Eat whitespace */
<INITIAL>
.
return yytext[0];
<INITIAL>
[ -~]
return yytext[0];
<*>.|\n {
<*>.|\n {
/* Catch all rule to find any unmatched text */
/* Catch all rule to find any unmatched text */
...
@@ -582,8 +582,8 @@ L\" {
...
@@ -582,8 +582,8 @@ L\" {
line_number++;
line_number++;
char_number = 1;
char_number = 1;
}
}
parser_
warning("Unmatched text '%c' (0x%02x) YY_START=%d\n
",
parser_
error("Unmatched text '%c' (0x%02x) YY_START=%d
",
isprint(*yytext & 0xff
) ? *yytext : '.', *yytext, YY_START);
isprint((unsigned char)*yytext
) ? *yytext : '.', *yytext, YY_START);
}
}
<<EOF>> current_codepage = -1; yyterminate();
<<EOF>> current_codepage = -1; yyterminate();
...
...
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