texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[8433] parsetexi some error messages


From: gavinsmith0123
Subject: [8433] parsetexi some error messages
Date: Sat, 27 Oct 2018 18:03:58 -0400 (EDT)

Revision: 8433
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8433
Author:   gavin
Date:     2018-10-27 18:03:58 -0400 (Sat, 27 Oct 2018)
Log Message:
-----------
parsetexi some error messages

Modified Paths:
--------------
    trunk/tp/Texinfo/XS/parsetexi/errors.c
    trunk/tp/Texinfo/XS/parsetexi/input.c

Modified: trunk/tp/Texinfo/XS/parsetexi/errors.c
===================================================================
--- trunk/tp/Texinfo/XS/parsetexi/errors.c      2018-10-27 21:23:09 UTC (rev 
8432)
+++ trunk/tp/Texinfo/XS/parsetexi/errors.c      2018-10-27 22:03:58 UTC (rev 
8433)
@@ -117,15 +117,16 @@
 static void
 bug_message_internal (char *format, va_list v)
 {
-  printf ("You found a bug: ");
-  vprintf (format, v);
-  printf ("\n");
+  fprintf (stderr, "You found a bug: ");
+  vfprintf (stderr, format, v);
+  fprintf (stderr, "\n");
   if (line_nr.file_name)
     {
-      printf ("last location %s:%d", line_nr.file_name, line_nr.line_nr);
+      fprintf (stderr,
+               "last location %s:%d", line_nr.file_name, line_nr.line_nr);
       if (line_nr.macro)
-        printf (" (possibly involving @%s)", line_nr.macro);
-      printf ("\n");
+        fprintf (stderr, " (possibly involving @%s)", line_nr.macro);
+      fprintf (stderr, "\n");
     }
   exit (1);
 }

Modified: trunk/tp/Texinfo/XS/parsetexi/input.c
===================================================================
--- trunk/tp/Texinfo/XS/parsetexi/input.c       2018-10-27 21:23:09 UTC (rev 
8432)
+++ trunk/tp/Texinfo/XS/parsetexi/input.c       2018-10-27 22:03:58 UTC (rev 
8433)
@@ -407,7 +407,9 @@
           if (file != stdin)
             {
               if (fclose (input_stack[input_number - 1].file) == EOF)
-                abort (); // FIXME: error
+                fprintf (stderr, "error on closing %s: %s",
+                        input_stack[input_number - 1].line_nr.file_name,
+                        strerror (errno));
             }
         }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]