*** empty log message ***
authorroot <root>
Tue, 24 Jan 2006 19:40:12 +0000 (19:40 +0000)
committerroot <root>
Tue, 24 Jan 2006 19:40:12 +0000 (19:40 +0000)
src/Makefile.in
src/command.C
src/keyboard.C
src/main.C
src/misc.C
src/rxvt.h
src/scrollbar.C
src/xdefaults.C

index 1075e0bdc4cd172cb2f7071916653ead5e8634d4..5a486369736b83a79978878b303aa8740496739c 100644 (file)
@@ -39,11 +39,7 @@ top_builddir = ..
 basedir = ..
 thisdir = src
 
-# for developers: the following debug options may be used
-#      -DDEBUG_CMD -DDEBUG_MAIN -DDEBUG_RESOURCES
-#      -DDEBUG_SEARCH_PATH -DDEBUG_SIZE -DDEBUG_TTY -DDEBUG_TTYMODE
-#      -DDEBUG_KEYBOARD -DDEBUG_STRICT
-DEBUG=-DDEBUG_STRICT @DEBUG@
+DEBUG=-DDEBUG_STRICT
 
 first_rule: all
 dummy:
index 3dbbaf883719b6b91d3810325a085a939d40658f..a5b468e3627e834a9033bb0bc75f586af04ddd19 100644 (file)
@@ -301,9 +301,6 @@ rxvt_term::lookup_key (XKeyEvent &ev)
   int ctrl, meta, shft, len;
   unsigned int newlen;
   KeySym keysym;
-#ifdef DEBUG_CMD
-  static int debug_key = 1;    /* accessible by a debugger only */
-#endif
   int valid_keysym;
   char kbuf[KBUFSZ];
 
@@ -904,16 +901,6 @@ rxvt_term::lookup_key (XKeyEvent &ev)
       tt_write (&ch, 1);
     }
 
-#if defined(DEBUG_CMD)
-  /* Display keyboard buffer contents */
-  unsigned char *p;
-  int i;
-
-  fprintf (stderr, "key 0x%04X [%d]: `", (unsigned int)keysym, len);
-  for (i = 0, p = kbuf; i < len; i++, p++)
-    fprintf (stderr, (*p >= ' ' && *p < '\177' ? "%c" : "\\%03o"), *p);
-  fprintf (stderr, "'\n");
-#endif                         /* DEBUG_CMD */
   tt_write (kbuf, (unsigned int)len);
 }
 /*}}} */
@@ -3294,13 +3281,6 @@ rxvt_term::process_csi_seq ()
     if (arg[p] == -1)
       arg[p] = ndef;
 
-#ifdef DEBUG_CMD
-  fprintf (stderr, "CSI ");
-  for (p = 0; p < nargs; p++)
-    fprintf (stderr, "%d%s", arg[p], p < nargs - 1 ? ";" : "");
-  fprintf (stderr, "%c\n", ch);
-#endif
-
   /*
    * private mode handling
    */
index 6b16670d42a700f4cac1d7765da2e22d1eaa033c..736528434c61db68114324f7318c6bd6a25aacbf 100644 (file)
@@ -422,7 +422,7 @@ keyboard_manager::setup_hash ()
 
   keymap.swap (sorted_keymap);
 
-#if defined (DEBUG_STRICT) || defined (DEBUG_KEYBOARD)
+#ifdef DEBUG_STRICT
   // check for invariants
   for (i = 0; i < KEYSYM_HASH_BUDGETS; ++i)
     {
index 8a018f8fa0621cbb02f90debebaf5526453d4400..94571ef03056d1c39d55a78f56cd36098c09a0c4 100644 (file)
@@ -532,9 +532,6 @@ static struct sig_handlers
   void
   sig_term (sig_watcher &w)
   {
-#ifdef DEBUG_CMD
-    rxvt_warn ("caught signal %d, exiting.\n", w.signum);
-#endif
     rxvt_emergency_cleanup ();
     signal (w.signum, SIG_DFL);
     kill (getpid (), w.signum);
@@ -622,9 +619,6 @@ rxvt_term::window_calc (unsigned int newwidth, unsigned int newheight)
   unsigned int max_width, max_height;
   dDisp;
 
-  D_SIZE ((stderr, "< Cols/Rows: %3d x %3d ; Width/Height: %4d x %4d",
-          ncol, nrow, szHint.width, szHint.height));
-
   szHint.flags = PMinSize | PResizeInc | PBaseSize | PWinGravity;
   szHint.win_gravity = NorthWestGravity;
   /* szHint.min_aspect.x = szHint.min_aspect.y = 1; */
@@ -736,10 +730,6 @@ rxvt_term::window_calc (unsigned int newwidth, unsigned int newheight)
 
   ncol = width / fwidth;
   nrow = height / fheight;
-  D_SIZE ((stderr, "> Cols/Rows: %3d x %3d ; Width/Height: %4d x %4d",
-          ncol, nrow, szHint.width,
-          szHint.height));
-  return;
 }
 
 /*----------------------------------------------------------------------*/
@@ -1275,7 +1265,6 @@ rxvt_term::IM_get_IC (const char *modifiers)
   if (! ((p = XSetLocaleModifiers (modifiers)) && *p))
     return false;
 
-  D_MAIN ((stderr, "rxvt_IM_get_IC ()"));
   input_method = display->get_xim (locale, modifiers);
   if (input_method == NULL)
     return false;
@@ -1437,7 +1426,6 @@ foundpet:
   if (input_style & XIMPreeditArea)
     IMSetStatusPosition ();
 
-  D_MAIN ((stderr, "rxvt_IM_get_IC () - successful connection"));
   return true;
 }
 
@@ -1453,7 +1441,6 @@ rxvt_term::im_cb ()
 
   im_destroy ();
 
-  D_MAIN ((stderr, "rxvt_IMInstantiateCallback ()"));
   if (Input_Context)
     return;
 
index 407d7ed078be8f1896cd161d915a62c867153d69..3205fe0b5e75d2107b36636199153c65ec52ecfd 100644 (file)
@@ -431,8 +431,6 @@ rxvt_freecommastring (char **cs) NOTHROW
  * file searching
  */
 
-/* #define DEBUG_SEARCH_PATH */
-
 #ifdef XPM_BACKGROUND
 /*
  * search for FILE in the current working directory, and within the
@@ -440,7 +438,7 @@ rxvt_freecommastring (char **cs) NOTHROW
  *
  * FILE is either semi-colon or zero terminated
  */
-char           *
+char *
 rxvt_File_search_path (const char *pathlist, const char *file, const char *ext) NOTHROW
 {
   int             maxpath, len;
@@ -456,12 +454,6 @@ rxvt_File_search_path (const char *pathlist, const char *file, const char *ext)
   else
     len = strlen (file);
 
-#ifdef DEBUG_SEARCH_PATH
-  getcwd (name, sizeof (name));
-  fprintf (stderr, "pwd: \"%s\"\n", name);
-  fprintf (stderr, "find: \"%.*s\"\n", len, file);
-#endif
-
   /* leave room for an extra '/' and trailing '\0' */
   maxpath = sizeof (name) - (len + (ext ? strlen (ext) : 0) + 2);
   if (maxpath <= 0)
@@ -512,7 +504,7 @@ rxvt_File_search_path (const char *pathlist, const char *file, const char *ext)
   return NULL;
 }
 
-char           *
+char *
 rxvt_File_find (const char *file, const char *ext, const char *path) NOTHROW
 {
   char           *f;
@@ -522,11 +514,6 @@ rxvt_File_find (const char *file, const char *ext, const char *path) NOTHROW
 
   f = rxvt_File_search_path (path, file, ext);
 
-#ifdef DEBUG_SEARCH_PATH
-  if (f)
-    fprintf (stderr, "found: \"%s\"\n", f);
-#endif
-
   return f;
 }
 #endif
index 65d676bec8d4f1a0eea6e6055cd35cb1df5a2d3f..fec8febfe1514c2eb8ec726ffffe7e2da821a003 100644 (file)
@@ -825,27 +825,6 @@ enum {
 # define XPMClearArea(a, b, c, d, e, f, g)
 #endif
 
-#ifdef DEBUG_CMD
-# define D_CMD(x)               fprintf x ; fputc('\n', stderr)
-#else
-# define D_CMD(x)
-#endif
-#ifdef DEBUG_INIT
-# define D_INIT(x)              fprintf x ; fputc('\n', stderr)
-#else
-# define D_INIT(x)
-#endif
-#ifdef DEBUG_MAIN
-# define D_MAIN(x)              fprintf x ; fputc('\n', stderr)
-#else
-# define D_MAIN(x)
-#endif
-#ifdef DEBUG_SIZE
-# define D_SIZE(x)              fprintf x ; fputc('\n', stderr)
-#else
-# define D_SIZE(x)
-#endif
-
 typedef callback1<void, const char *> log_callback;
 typedef callback1<int, int> getfd_callback;
 
index ae4c71d9d8c9c1e4d165917ecbb5e6d73f15edbf..cbfa10f21e1732afe965e2de48d3da1850bf4661 100644 (file)
@@ -119,9 +119,6 @@ rxvt_term::resize_scrollbar ()
                                            0,
                                            pix_colors[Color_fg],
                                            pix_colors[Color_border]);
-#ifdef DEBUG_X
-      XStoreName (display->display, scrollBar.win, "scrollbar");
-#endif
       XDefineCursor (display->display, scrollBar.win, leftptr_cursor);
 
       XSelectInput (display->display, scrollBar.win,
index ca9276f890cfb37f07a7a2528c11bc1583a2b007..c4bc03815582e3df4a8030d199f58d02db3e0c73 100644 (file)
@@ -36,8 +36,6 @@
 #define Optflag_Boolean              0x80000000UL
 #define Optflag_mask                 0x3fffffffUL
 
-/* #define DEBUG_RESOURCES */
-
 /*{{{ monolithic option/resource structure: */
 /*
  * `string' options MUST have a usage argument
@@ -494,9 +492,7 @@ rxvt_term::get_options (int argc, const char *const *argv)
       const char *flag, *opt;
 
       opt = argv[i];
-#ifdef DEBUG_RESOURCES
-      fprintf (stderr, "argv[%d] = %s: ", i, opt);
-#endif
+
       if (*opt == '-')
         {
           flag = On;
@@ -547,10 +543,6 @@ rxvt_term::get_options (int argc, const char *const *argv)
             }
           else
             {          /* boolean value */
-#ifdef DEBUG_RESOURCES
-              fprintf (stderr, "boolean (%s,%s) = %s\n",
-                      optList[entry].opt, optList[entry].kw, flag);
-#endif
               set_option (optList[entry].flag & Optflag_mask, flag == On);
 
               if (optList[entry].doff != -1)