ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvt.h
(Generate patch)

Comparing rxvt-unicode/src/rxvt.h (file contents):
Revision 1.294 by sasha, Fri Aug 17 22:01:33 2007 UTC vs.
Revision 1.298 by ayin, Sun Aug 26 17:56:19 2007 UTC

99 ***************************************************************************** 99 *****************************************************************************
100 * PROTOTYPES 100 * PROTOTYPES
101 ***************************************************************************** 101 *****************************************************************************
102 */ 102 */
103// main.C 103// main.C
104RETSIGTYPE rxvt_Child_signal (int sig) NOTHROW;
105RETSIGTYPE rxvt_Exit_signal (int sig) NOTHROW;
106void rxvt_clean_exit () NOTHROW;
107void * rxvt_malloc (size_t size); 104void * rxvt_malloc (size_t size);
108void * rxvt_calloc (size_t number, size_t size); 105void * rxvt_calloc (size_t number, size_t size);
109void * rxvt_realloc (void *ptr, size_t size); 106void * rxvt_realloc (void *ptr, size_t size);
110 107
111// misc.C 108// misc.C
134 131
135// temporarily replace the process environment 132// temporarily replace the process environment
136extern char **environ; 133extern char **environ;
137extern char **rxvt_environ; // the original environ pointer 134extern char **rxvt_environ; // the original environ pointer
138 135
139inline void set_environ (stringvec *envv) 136static inline void set_environ (stringvec *envv)
140{ 137{
141#if ENABLE_PERL 138#if ENABLE_PERL
142 assert (envv); 139 assert (envv);
143#else 140#else
144 if (envv) 141 if (envv)
145#endif 142#endif
146 environ = (char **)envv->begin (); 143 environ = (char **)envv->begin ();
147} 144}
148 145
149inline void set_environ (char **envv) 146static inline void set_environ (char **envv)
150{ 147{
151#if ENABLE_PERL 148#if ENABLE_PERL
152 assert (envv); 149 assert (envv);
153#else 150#else
154 if (envv) 151 if (envv)
181 propScale = (1UL<<1), 178 propScale = (1UL<<1),
182 geometryFlags = (geometrySet|propScale), 179 geometryFlags = (geometrySet|propScale),
183 180
184 tintSet = (1UL<<8), 181 tintSet = (1UL<<8),
185 tintNeeded = (1UL<<9), 182 tintNeeded = (1UL<<9),
183 tintWholesome = (1UL<<10),
186 tintServerSide = (1UL<<10), 184 tintServerSide = (1UL<<11),
187 tintFlags = (tintSet|tintServerSide|tintNeeded), 185 tintFlags = (tintSet|tintServerSide|tintNeeded|tintWholesome),
188 blurNeeded = (1UL<<11), 186 blurNeeded = (1UL<<12),
189 187
190 isTransparent = (1UL<<16), 188 isTransparent = (1UL<<16),
191 isInvalid = (1UL<<17) 189 isInvalid = (1UL<<17)
192 }; 190 };
193 191
698#define PrivMode_LFNL (1UL<<19) 696#define PrivMode_LFNL (1UL<<19)
699/* too annoying to implement X11 highlight tracking */ 697/* too annoying to implement X11 highlight tracking */
700/* #define PrivMode_MouseX11Track (1LU<<20) */ 698/* #define PrivMode_MouseX11Track (1LU<<20) */
701 699
702#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11) 700#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11)
703#define PrivMode(test,bit) \
704 if (test) \
705 priv_modes |= (bit); \
706 else \
707 priv_modes &= ~(bit)
708 701
709#ifdef ALLOW_132_MODE 702#ifdef ALLOW_132_MODE
710# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) 703# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK)
711#else 704#else
712# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) 705# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor)
1397 { 1390 {
1398 if (set) 1391 if (set)
1399 options[opt >> 3] |= (1 << (opt & 7)); 1392 options[opt >> 3] |= (1 << (opt & 7));
1400 else 1393 else
1401 options[opt >> 3] &= ~(1 << (opt & 7)); 1394 options[opt >> 3] &= ~(1 << (opt & 7));
1395 }
1396
1397 void PrivMode (int set, unsigned bit) NOTHROW
1398 {
1399 if (set)
1400 priv_modes |= bit;
1401 else
1402 priv_modes &= ~bit;
1402 } 1403 }
1403 1404
1404 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; 1405 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW;
1405 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; 1406 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW;
1406 int scr_scroll_text (int row1, int row2, int count) NOTHROW; 1407 int scr_scroll_text (int row1, int row2, int count) NOTHROW;
1516 // xpm.C 1517 // xpm.C
1517 void get_window_origin (int &x, int &y); 1518 void get_window_origin (int &x, int &y);
1518 Pixmap get_pixmap_property (int prop_id); 1519 Pixmap get_pixmap_property (int prop_id);
1519}; 1520};
1520 1521
1521/*
1522 *****************************************************************************
1523 * PROTOTYPES
1524 *****************************************************************************
1525 */
1526#ifdef PROTOTYPES
1527# define __PROTO(p) p
1528#else
1529# define __PROTO(p) ()
1530#endif
1531
1532#endif /* _RXVT_H_ */ 1522#endif /* _RXVT_H_ */
1533 1523

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines