=item B<RXVT_SOCKET>
Both @@RXVT_NAME@@c and @@RXVT_NAME@@d use the environment variable
-F<RXVT_SOCKET> to create a listening socket and to contact
-the @@RXVT_NAME@@d, respectively. If the variable is missing,
-F<<< $HOME/.rxvt-unicode-I<< <nodename> >> >>> is used.
+F<RXVT_SOCKET> to create a listening socket and to contact the
+@@RXVT_NAME@@d, respectively. If the variable is missing,
+F<<< $HOME/.rxvt-unicode-I<< <nodename> >> >>> is used. The variable must
+specify the absolute path of the socket to create.
=back
=item B<RXVT_SOCKET>
-Both B<@@RXVT_NAME@@c> and B<@@RXVT_NAME@@d> use the environment variable
-F<RXVT_SOCKET> to create a listening socket and to contact
+Both B<@@RXVT_NAME@@c> and B<@@RXVT_NAME@@d> use the environment
+variable F<RXVT_SOCKET> to create a listening socket and to contact
the @@RXVT_NAME@@d, respectively. If the variable is missing,
-F<<< $HOME/.rxvt-unicode-I<< <nodename> >> >>> is used.
+F<<< $HOME/.rxvt-unicode-I<< <nodename> >> >>> is used. The variable must
+specify the absolute path of the socket to create.
=item B<DISPLAY>
# just set some compiler options
if [ "x$HOSTNAME" = xcerebro -o "x$HOSTNAME" = xfuji ]; then
- CC=ccache\ gcc-3.4
- CXX=ccache\ g++-3.4
+ CC=ccache\ gcc-4.0
+ CXX=ccache\ g++-4.0
export CC CXX
fi
////////////////////////////////////////////////////////////////////////////////
// return: #bits of '1'
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3)
-# define bitcount(n) (__extension__ ({ uint32_t n__ = (n); __builtin_popcount (n); }))
+# define bitcount(n) (__extension__ ({ uint32_t n__ = (n); __builtin_popcount (n__); }))
#else
static int
bitcount (uint16_t n)
/*----------------------------------------------------------------------*/
/* set_fonts () - load and set the various fonts
-/*
+ *
* init = 1 - initialize
*
* fontname == FONT_UP - switch to bigger font
void
rxvt_term::im_cb ()
{
- int i, found, had_im;
+ int i;
const char *p;
char **s;
char buf[IMBUFSIZ];
c.send ("CWD"), c.send (cwd);
- for (char **var = environ; *environ; environ++)
- c.send ("ENV"), c.send (*environ);
+ for (char **var = environ; *var; var++)
+ c.send ("ENV"), c.send (*var);
const char *base = strrchr (argv[0], '/');
base = base ? base + 1 : argv[0];
/////////////////////////////////////////////////////////////////////////////
rxvt_fontset::rxvt_fontset (rxvt_t r)
-: r (r), fontdesc (0)
+: fontdesc (0), r (r)
{
clear ();
}
struct rxvt_drawable {
rxvt_display *display;
- Drawable drawable;
#if XFT
XftDraw *xftdrawable;
operator XftDraw *();
#endif
+ Drawable drawable;
rxvt_drawable (rxvt_display *display, Drawable drawable)
: display(display),
} byteorder;
template<typename T, typename U>
-static inline T min (T a, U b) { return a < b ? a : (T)b; }
+static inline T min (T a, U b) { return a < (T)b ? a : (T)b; }
template<typename T, typename U>
-static inline T max (T a, U b) { return a > b ? a : (T)b; }
+static inline T max (T a, U b) { return a > (T)b ? a : (T)b; }
template<typename T>
static inline void swap (T& a, T& b) { T t=a; a=b; b=t; }
rxvt_term::scr_release ()
{
unsigned int total_rows;
- int i;
total_rows = TermWin.nrow + TermWin.saveLines;
unsigned char checksel;
unicode_t c;
- int i, row, last_col;
+ int row, last_col;
text_t *stp;
rend_t *srp;
const unicode_t *strend = str + len;
scr_swap_overlay ();
#endif
- rend_t *drp, *srp; /* drawn-rend-pointer, screen-rend-pointer */
- text_t *dtp, *stp; /* drawn-text-pointer, screen-text-pointer */
-
#ifndef NO_SLOW_LINK_SUPPORT
/*
* D: CopyArea pass - very useful for slower links
int entry;
# ifdef XrmEnumOneLevel
- int i;
char *displayResource, *xe;
XrmName name_prefix[3];
XrmClass class_prefix[3];