[liblouis-liblouisxml] Change format of lou_checktable error messages?

  • From: Christian Egli <christian.egli@xxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Thu, 07 Jan 2010 11:56:08 +0100

Hi

If the error messages that are produced by lou_checktable were in a more
standard format (e.g. the format that gcc produces) then I could jump
directly to the error in the table when using lou_checktable from within
Emacs. So would it be ok to produce an error message as follows:

"<filename>:<linenumber>:<error>" instead of 
"File <filename> line <linenumber>: <error>"

The patch below implements this. Can I check it in?

--- liblouis/compileTranslationTable.c  (revision 320)
+++ liblouis/compileTranslationTable.c  (working copy)
@@ -643,7 +643,7 @@
 #endif
   va_end (arguments);
   if (nested)
-    lou_logPrint ("File %s line %d: %s",
+    lou_logPrint ("%s:%d:%s",
                  nested->fileName, nested->lineNumber, buffer);
   else
     lou_logPrint ("%s", buffer);

Thanks
Christian
-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland
For a description of the software and to download it go to
http://www.jjb-software.com

Other related posts: