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

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Thu, 7 Jan 2010 05:07:26 -0600

Christian,

Yes. Go ahead and check in the patch. 

Thanks,
John

On Thu, Jan 07, 2010 at 11:56:08AM +0100, Christian Egli wrote:
> 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

-- 
John J. boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities

For a description of the software and to download it go to
http://www.jjb-software.com

Other related posts: