--- rxvt-unicode/src/rxvttoolkit.h 2007/12/04 14:50:44 1.36 +++ rxvt-unicode/src/rxvttoolkit.h 2007/12/14 04:26:23 1.37 @@ -103,7 +103,8 @@ struct xevent_watcher; template -struct event_vec : vector { +struct event_vec : vector +{ void erase_unordered (unsigned int pos) { watcher *w = (*this)[this->size () - 1]; @@ -115,7 +116,8 @@ } }; -struct rxvt_watcher { +struct rxvt_watcher +{ int active; /* 0 == inactive, else index into respective vector */ bool is_active () { return active; } @@ -123,7 +125,8 @@ rxvt_watcher () : active (0) { } }; -struct refcounted { +struct refcounted +{ int referenced; char *id; @@ -134,7 +137,8 @@ }; template -struct refcache : vector { +struct refcache : vector +{ T *get (const char *id); void put (T *obj); void clear (); @@ -149,7 +153,8 @@ struct rxvt_screen; -struct rxvt_drawable { +struct rxvt_drawable +{ rxvt_screen *screen; Drawable drawable; operator Drawable() { return drawable; } @@ -175,7 +180,8 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef USE_XIM -struct rxvt_xim : refcounted { +struct rxvt_xim : refcounted +{ void destroy (); rxvt_display *display; @@ -188,7 +194,8 @@ }; #endif -struct rxvt_screen { +struct rxvt_screen +{ rxvt_display *display; Display *dpy; int depth; @@ -210,7 +217,8 @@ void clear (); }; -struct rxvt_display : refcounted { +struct rxvt_display : refcounted +{ event_vec xw; ev::io x_ev; void x_cb (ev::io &w, int revents); @@ -270,7 +278,8 @@ }; #endif -struct xevent_watcher : rxvt_watcher, callback { +struct xevent_watcher : rxvt_watcher, callback +{ Window window; void start (rxvt_display *display, Window window) @@ -291,7 +300,8 @@ typedef unsigned long Pixel; -struct rgba { +struct rgba +{ unsigned short r, g, b, a; enum { MIN_CC = 0x0000, MAX_CC = 0xffff }; @@ -304,7 +314,8 @@ { } }; -struct rxvt_color { +struct rxvt_color +{ #if XFT XftColor c; #else