Alexandre Julliard : wmc: Store input file location for each individual message.

Alexandre Julliard julliard at winehq.org
Tue Jan 25 12:01:37 CST 2011


Module: wine
Branch: master
Commit: 45dc5bf6b2bcaf5fd882cf69fc65cab2e7196bc8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=45dc5bf6b2bcaf5fd882cf69fc65cab2e7196bc8

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan 24 20:05:34 2011 +0100

wmc: Store input file location for each individual message.

---

 tools/wmc/mcy.y      |    4 +++-
 tools/wmc/wmctypes.h |    2 ++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/tools/wmc/mcy.y b/tools/wmc/mcy.y
index 5de67c9..54403d5 100644
--- a/tools/wmc/mcy.y
+++ b/tools/wmc/mcy.y
@@ -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;
diff --git a/tools/wmc/wmctypes.h b/tools/wmc/wmctypes.h
index 0b38089..483507a 100644
--- a/tools/wmc/wmctypes.h
+++ b/tools/wmc/wmctypes.h
@@ -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 {




More information about the wine-cvs mailing list