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
45dc5bf6
Commit
45dc5bf6
authored
Jan 24, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmc: Store input file location for each individual message.
parent
46ecc16d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
mcy.y
tools/wmc/mcy.y
+3
-1
wmctypes.h
tools/wmc/wmctypes.h
+2
-0
No files found.
tools/wmc/mcy.y
View file @
45dc5bf6
...
...
@@ -441,6 +441,8 @@ static lanmsg_t *new_lanmsg(lan_cp_t *lcp, WCHAR *msg)
lmp->cp = lcp->codepage;
lmp->msg = msg;
lmp->len = unistrlen(msg) + 1; /* Include termination */
lmp->file = input_name;
lmp->line = line_number;
if(lmp->len > 4096)
mcy_warning("Message exceptionally long; might be a missing termination\n");
return lmp;
...
...
@@ -522,7 +524,7 @@ static void test_id(int id)
static int check_languages(node_t *head)
{
static const char err_missing[] = "Missing definition for language 0x%x; MessageID %d, facility 0x%x, severity 0x%x";
static const char err_missing[] = "Missing definition for language 0x%x; MessageID %d, facility 0x%x, severity 0x%x
\n
";
node_t *ndp;
int nm = 0;
msg_t *msg = NULL;
...
...
tools/wmc/wmctypes.h
View file @
45dc5bf6
...
...
@@ -73,6 +73,8 @@ typedef struct lanmsg {
int
cp
;
/* Codepage of message */
WCHAR
*
msg
;
/* Message text */
int
len
;
/* Message length including trailing '\0' */
const
char
*
file
;
/* File location for definition */
int
line
;
}
lanmsg_t
;
typedef
struct
msg
{
...
...
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