[uim-commit] r2004 - in trunk: doc uim

yamaken at freedesktop.org yamaken at freedesktop.org
Sat Nov 5 07:18:08 PST 2005


Author: yamaken
Date: 2005-11-05 07:18:04 -0800 (Sat, 05 Nov 2005)
New Revision: 2004

Modified:
   trunk/doc/COMPATIBILITY
   trunk/uim/slib.c
   trunk/uim/uim-scm.c
Log:
* This commit fixes unstable result of the testing framework

* doc/COMPATIBILITY
  - Add new section "Verbose level of backtrace has been changed"
* uim/uim-scm.c
  - (uim_scm_init): Change default verbose level to 2 from 0
* uim/slib.c
  - (my_err): Change verbose level for show_backtrace() to 2 from 1


Modified: trunk/doc/COMPATIBILITY
===================================================================
--- trunk/doc/COMPATIBILITY	2005-11-05 14:50:27 UTC (rev 2003)
+++ trunk/doc/COMPATIBILITY	2005-11-05 15:18:04 UTC (rev 2004)
@@ -57,6 +57,22 @@
 
 The changes are described below in most recently updated order.
 ------------------------------------------------------------------------------
+Summary: Verbose level of backtrace has been changed
+Affects: uim developers, bridge developers
+Updates: Internal behavior of libuim
+Version: 0.5.1
+Revision: ac2004
+Date: 2005-11-05
+Modifier: YamaKen
+Related: 
+URL:
+Changes:
+Description:
+  To fix unstable result of the testing framework, backtrace printing
+  has been suppressed at verbose level 1. Now verbose level 2 is
+  required to print backtrace, and libuim's default is also changed to
+  2. So ordinary users and developers don't needed to mind it.
+------------------------------------------------------------------------------
 Summary: Notification of changes in input context configuration
 Affects: Bridge developers
 Updates: C API

Modified: trunk/uim/slib.c
===================================================================
--- trunk/uim/slib.c	2005-11-05 14:50:27 UTC (rev 2003)
+++ trunk/uim/slib.c	2005-11-05 15:18:04 UTC (rev 2004)
@@ -474,8 +474,14 @@
       fprintf (siod_output, "%s\n", siod_err_msg);
       fflush (siod_output);
     }
-  if (siod_verbose_level >= 1)
+
+  /*
+   * Don't change the verbose level 2. This is used to suppress backtrace
+   * when run by the testing framework. -- YamaKen 2005-11-05
+   */
+  if (siod_verbose_level >= 2)
     show_backtrace();
+
   if (errjmp_ok == 1)
     {
       /* prevent recording of bogus debug info */

Modified: trunk/uim/uim-scm.c
===================================================================
--- trunk/uim/uim-scm.c	2005-11-05 14:50:27 UTC (rev 2003)
+++ trunk/uim/uim-scm.c	2005-11-05 15:18:04 UTC (rev 2004)
@@ -558,14 +558,14 @@
   char *siod_argv[] =
     {
       "siod",
-      "-v0",          /* siod_verbose_level */
+      "-v2",          /* siod_verbose_level */
       "-h16384:64",   /* heap_size(unit: lisp objects):nheaps */
       "-t16384",      /* heap_alloc_threshold (unit: lisp objects) */
       "-o1024",       /* obarray_dim (hash size of symbol table) */
       "-s262144",     /* stack_size (unit: bytes) */
       "-n128"         /* inums_dim (preallocated fixnum objects) */
     };
-  char verbose_argv[] = "-v4";
+  char verbose_argv[] = "-v2";
   int siod_argc, warnflag = 1;
 
   if (!uim_output) {



More information about the uim-commit mailing list