[liblouis-liblouisxml] [liblouisutdml] push by mwhapples - Change file2brl to use logging callback API on 2014-05-05 11:21 GMT

  • From: liblouisutdml@xxxxxxxxxxxxxx
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 05 May 2014 11:22:02 +0000

Revision: f636e9306f35
Branch:   default
Author:   Michael Whapples
Date:     Mon May  5 11:31:58 2014 UTC
Log:      Change file2brl to use logging callback API
http://code.google.com/p/liblouisutdml/source/detail?r=f636e9306f35

Modified:
 /tools/file2brl.c

=======================================
--- /tools/file2brl.c   Wed Apr 16 16:11:48 2014 UTC
+++ /tools/file2brl.c   Mon May  5 11:31:58 2014 UTC
@@ -211,7 +211,7 @@
     {
       if (!(inputFile = fopen (inputFileName, "r")))
        {
-         lou_logPrint ("Can't open input file %s.\n", inputFileName);
+         lou_log (LOG_FATAL, "Can't open input file %s.\n", inputFileName);
          exit (EXIT_FAILURE);
        }
     }
@@ -222,7 +222,7 @@
   strcat (tempFileName, "file2brl.temp");
   if (!(tempFile = fopen (tempFileName, "w")))
     {
-      lou_logPrint ("Can't open temporary file.\n");
+      lou_log (LOG_FATAL, "Can't open temporary file.\n");
       exit (EXIT_FAILURE);
     }
   if (whichProc == 'p')
@@ -351,7 +351,7 @@
          exit (EXIT_FAILURE);
        break;
       default:
-       lou_logPrint ("Program bug %c\n", whichProc);
+       lou_log (LOG_FATAL, "Program bug %c\n", whichProc);
        break;
       }
   lbu_free ();
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts:

  • » [liblouis-liblouisxml] [liblouisutdml] push by mwhapples - Change file2brl to use logging callback API on 2014-05-05 11:21 GMT - liblouisutdml