changeset 32448:a7a7ac88fdc4

Make some warning and error messages leading letter lowercase * pt-bytecode-vm.cc: Make leading letter lowercase. * pt-bytecode-walk.cc * pt-bytecode-walk.h
author Petter T. <petter.vilhelm@gmail.com>
date Fri, 27 Oct 2023 18:20:21 +0200
parents 53920541c0b8
children 36d6af1923f7
files libinterp/parse-tree/pt-bytecode-vm.cc libinterp/parse-tree/pt-bytecode-walk.cc libinterp/parse-tree/pt-bytecode-walk.h
diffstat 3 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-bytecode-vm.cc	Fri Oct 27 18:20:14 2023 +0200
+++ b/libinterp/parse-tree/pt-bytecode-vm.cc	Fri Oct 27 18:20:21 2023 +0200
@@ -492,7 +492,7 @@
             else
               {
                 if (p + 3 >= code + n)
-                  error ("Invalid bytecode\n");
+                  error ("invalid bytecode");
                 int i = chars_to_uint (p + 1);
                 s += " ROWS"; PINT ();
                 s += " COLS";
@@ -543,7 +543,7 @@
 
           default:
             CHECK_END ();
-            error ("Unknown op: %d\n", *p);
+            error ("unknown op: %d", *p);
             break;
         }
       p++;
@@ -7462,7 +7462,7 @@
       delete [] buff;
 
       if (n_needed < 0)
-        error ("Profiler internal error: Invalid call to x_snprintf()");
+        error ("profiler internal error: Invalid call to x_snprintf()");
       if (n_needed < n)
         return ret;
 
@@ -7850,7 +7850,7 @@
 void
 vm_profiler::purge_shadow_stack ()
 {
-  warning ("Profiler shadow stack got messed up. Measurement results might be inaccurate.");
+  warning ("profiler shadow stack got messed up. Measurement results might be inaccurate");
 
   m_shadow_call_stack.clear ();
 
@@ -8056,7 +8056,7 @@
         }
       catch (std::exception &e)
         {
-          warning ("Auto-compilation of %s failed with message %s", fn->name().c_str (), e.what ());
+          warning ("auto-compilation of %s failed with message %s", fn->name().c_str (), e.what ());
           fn->m_compilation_failed = true;
           return false;
         }
--- a/libinterp/parse-tree/pt-bytecode-walk.cc	Fri Oct 27 18:20:14 2023 +0200
+++ b/libinterp/parse-tree/pt-bytecode-walk.cc	Fri Oct 27 18:20:21 2023 +0200
@@ -45,10 +45,10 @@
 #define CHECK(cond)                                                            \
   do {                                                                         \
     if (!(cond))                                                               \
-      ERR("Internal VM compiler consistency check failed, " #cond);             \
+      ERR("internal VM compiler consistency check failed, " #cond);             \
   } while ((0))
 
-#define CHECK_NONNULL(ptr) if (!ptr) error ("Unexpected null %d", __LINE__)
+#define CHECK_NONNULL(ptr) if (!ptr) error ("unexpected null %d", __LINE__)
 
 // Compiles an anonymous function.
 //
@@ -62,7 +62,7 @@
         error ("compile_anon_user_function (): Function is not anonymous");
 
       if (ufn.is_classdef_constructor ())
-        error ("Classdef constructors are not supported by the VM yet"); // Needs special handling
+        error ("classdef constructors are not supported by the VM yet"); // Needs special handling
 
       // Begin with clearing the old bytecode, if any
       ufn.clear_bytecode ();
@@ -101,7 +101,7 @@
   try
     {
       if (ufn.is_classdef_constructor ())
-        error ("Classdef constructors are not supported by the VM yet"); // Needs special handling
+        error ("classdef constructors are not supported by the VM yet"); // Needs special handling
       CHECK (ufn.is_nested_function ());
 
       // Begin with clearing the old bytecode, if any
@@ -147,7 +147,7 @@
   try
     {
       if (ufn.is_classdef_constructor ())
-        error ("Classdef constructors are not supported by the VM yet"); // Needs special handling
+        error ("classdef constructors are not supported by the VM yet"); // Needs special handling
 
       // Begin with clearing the old bytecode, if any
       ufn.clear_bytecode ();
--- a/libinterp/parse-tree/pt-bytecode-walk.h	Fri Oct 27 18:20:14 2023 +0200
+++ b/libinterp/parse-tree/pt-bytecode-walk.h	Fri Oct 27 18:20:21 2023 +0200
@@ -38,7 +38,7 @@
 class octave_user_function;
 
 #define ERROR_NOT_IMPLEMENTED \
-{ error("Not implemented %s:%d", __FILE__, __LINE__); }
+{ error("not implemented %s:%d", __FILE__, __LINE__); }
 
 namespace octave
 {