WISH: look into XAddConnectionWatch, does anybody need that?
DUMB: support tex fonts
-TODO: exg-- patch
-TODO: selection_beg/end should set screen, or so
TODO: perl-shell-window?
TODO: zweimal numlock? falsche codes rxvt urxvt for numpad?
- port to glibc-2.10 changes (strchr etc. returning const char *
- setting the selection from perl will now reset the selection screen
to the current screen. the srceen can be manipulated using
the new ->selection_screen method.
+ - implement --enable-assert configure option and get rid of DEBUG_STRICT
+ (based on patch by exg).
+ - upgrade to libev-3.9 prerelease.
9.06 Sat Nov 8 17:47:18 CET 2008
- NOTICE: this release updates terminfo/termcap.
/* Define to use wheel events (button4 and button5) to scroll */
#undef MOUSE_WHEEL
+/* Disable assertions (good for debugging) */
+#undef NDEBUG
+
/* Support NeXT style scrollbars */
#undef NEXT_SCROLLBAR
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-everything enable standard non-multichoice features
NOTE: this option is order dependent
+ --enable-assert enable assertions
--enable-warnings turn on g++ warnings
--enable-unicode3 use 21 instead of 16 bits to represent unicode characters
--enable-combining enable composition of base and combining characters
fi
+ASSERTIONS=no
+# Check whether --enable-assert was given.
+if test "${enable_assert+set}" = set; then
+ enableval=$enable_assert; if test x$enableval = xyes; then
+ ASSERTIONS=yes
+ fi
+fi
+
+if test x$ASSERTIONS = xno; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NDEBUG 1
+_ACEOF
+
+fi
+
WARNINGS=no
# Check whether --enable-warnings was given.
if test "${enable_warnings+set}" = set; then
fi
])
+ASSERTIONS=no
+AC_ARG_ENABLE(assert,
+ [ --enable-assert enable assertions],
+ [if test x$enableval = xyes; then
+ ASSERTIONS=yes
+ fi])
+if test x$ASSERTIONS = xno; then
+ AC_DEFINE(NDEBUG, 1, Disable assertions (good for debugging))
+fi
+
WARNINGS=no
AC_ARG_ENABLE(warnings,
[ --enable-warnings turn on g++ warnings],
=item --enable-everything
-Add (or remove) support for all non-multichoice options listed in "./configure
---help".
+Add (or remove) support for all non-multichoice options listed in
+C<./configure --help>, except for C<--enable-assert>.
You can specify this and then disable options you do not like by
I<following> this with the appropriate C<--disable-...> arguments,
C<-pe "" --perl-ext-common "">, so it should be safe to enable from a
resource standpoint.
+=item --enable-assert (default: off)
+
+Enables the assertions in the code, normally disabled. This switch is only
+useful when developing rxvt-unicode.
+
=item --with-afterimage-config=DIR
Look for the libAfterImage config script in DIR.
LIBS = @LIBS@
XINC = @X_CFLAGS@ @AFTERIMAGE_CFLAGS@
XLIB = @X_LIBS@ @AFTERIMAGE_LIBS@ -lX11 @X_EXTRA_LIBS@
-COMPILE = $(CXX) -I.. -I$(srcdir) -I. -I$(srcdir)/../libev $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(DEBUG) $(XINC)
+COMPILE = $(CXX) -I.. -I$(srcdir) -I. -I$(srcdir)/../libev $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(XINC)
LINK = @LINKER@ $(LDFLAGS)
srcdir = @srcdir@
VPATH = @srcdir@
-DEBUG=-DDEBUG_STRICT
-
first_rule: all
dummy:
keymap.swap (sorted_keymap);
-#ifdef DEBUG_STRICT
+#ifndef NDEBUG
// check for invariants
for (i = 0; i < KEYSYM_HASH_BUDGETS; ++i)
{
do
{
p = MOD (p - 1, prev_total_rows);
-#ifdef DEBUG_STRICT
assert (old_buf [MOD (p, prev_total_rows)].t);
-#endif
int plines = 1;
int llen = old_buf [MOD (p, prev_total_rows)].l;
/* boundary check in case screen size changed between SAVE and RESTORE */
min_it (s->cur.row, nrow - 1);
min_it (s->cur.col, ncol - 1);
-#ifdef DEBUG_STRICT
assert (s->cur.row >= 0);
assert (s->cur.col >= 0);
-#endif
}
void
}
}
-#ifdef DEBUG_STRICT
assert (screen.cur.col < ncol);
assert (screen.cur.row < nrow
&& screen.cur.row >= top_row);
-#endif
int row = screen.cur.row;
checksel = selection.op && current_screen == selection.screen ? 1 : 0;
max_it (line->l, screen.cur.col);
-#ifdef DEBUG_STRICT
assert (screen.cur.row >= 0);
-#endif
}
/* ------------------------------------------------------------------------- */
// VERSION _must_ be \d.\d+
-#define VERSION "9.06"
-#define DATE "2008-06-15"
+#define VERSION "9.07"
+#define DATE "2009-12-27"
if (optList[i].arg)
len = strlen (optList[i].arg) + 1;
-#ifdef DEBUG_STRICT
assert (optList[i].opt != NULL);
-#endif
len += 4 + strlen (optList[i].opt) + (optList_isBool (i) ? 2: 0);
col += len;
if (col > 79)
for (i = 0; i < optList_size; i++)
if (optList[i].desc != NULL)
{
-#ifdef DEBUG_STRICT
assert (optList[i].opt != NULL);
-#endif
rxvt_log (" %s%s %-*s%s%s\n",
(optList_isBool (i) ? "-/+" : "-"), optList[i].opt,
(INDENT - strlen (optList[i].opt)