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.299 by ayin, Mon Aug 27 20:00:27 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
122void rxvt_warn (const char *fmt,...) NOTHROW; 119void rxvt_warn (const char *fmt,...) NOTHROW;
123void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN; 120void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN;
124void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; 121void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN;
125 122
126int rxvt_Str_match (const char *s1, const char *s2) NOTHROW; 123int rxvt_Str_match (const char *s1, const char *s2) NOTHROW;
127const char * rxvt_Str_skip_space (const char *str) NOTHROW;
128char * rxvt_Str_trim (char *str) NOTHROW; 124char * rxvt_Str_trim (char *str) NOTHROW;
129int rxvt_Str_escaped (char *str) NOTHROW; 125int rxvt_Str_escaped (char *str) NOTHROW;
130char ** rxvt_splitcommastring (const char *cs) NOTHROW; 126char ** rxvt_splitcommastring (const char *cs) NOTHROW;
131void rxvt_freecommastring (char **cs) NOTHROW; 127void rxvt_freecommastring (char **cs) NOTHROW;
132 128
134 130
135// temporarily replace the process environment 131// temporarily replace the process environment
136extern char **environ; 132extern char **environ;
137extern char **rxvt_environ; // the original environ pointer 133extern char **rxvt_environ; // the original environ pointer
138 134
139inline void set_environ (stringvec *envv) 135static inline void set_environ (stringvec *envv)
140{ 136{
141#if ENABLE_PERL 137#if ENABLE_PERL
142 assert (envv); 138 assert (envv);
143#else 139#else
144 if (envv) 140 if (envv)
145#endif 141#endif
146 environ = (char **)envv->begin (); 142 environ = (char **)envv->begin ();
147} 143}
148 144
149inline void set_environ (char **envv) 145static inline void set_environ (char **envv)
150{ 146{
151#if ENABLE_PERL 147#if ENABLE_PERL
152 assert (envv); 148 assert (envv);
153#else 149#else
154 if (envv) 150 if (envv)
181 propScale = (1UL<<1), 177 propScale = (1UL<<1),
182 geometryFlags = (geometrySet|propScale), 178 geometryFlags = (geometrySet|propScale),
183 179
184 tintSet = (1UL<<8), 180 tintSet = (1UL<<8),
185 tintNeeded = (1UL<<9), 181 tintNeeded = (1UL<<9),
182 tintWholesome = (1UL<<10),
186 tintServerSide = (1UL<<10), 183 tintServerSide = (1UL<<11),
187 tintFlags = (tintSet|tintServerSide|tintNeeded), 184 tintFlags = (tintSet|tintServerSide|tintNeeded|tintWholesome),
188 blurNeeded = (1UL<<11), 185 blurNeeded = (1UL<<12),
189 186
190 isTransparent = (1UL<<16), 187 isTransparent = (1UL<<16),
191 isInvalid = (1UL<<17) 188 isInvalid = (1UL<<17)
192 }; 189 };
193 190
698#define PrivMode_LFNL (1UL<<19) 695#define PrivMode_LFNL (1UL<<19)
699/* too annoying to implement X11 highlight tracking */ 696/* too annoying to implement X11 highlight tracking */
700/* #define PrivMode_MouseX11Track (1LU<<20) */ 697/* #define PrivMode_MouseX11Track (1LU<<20) */
701 698
702#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11) 699#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 700
709#ifdef ALLOW_132_MODE 701#ifdef ALLOW_132_MODE
710# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) 702# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK)
711#else 703#else
712# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) 704# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor)
1397 { 1389 {
1398 if (set) 1390 if (set)
1399 options[opt >> 3] |= (1 << (opt & 7)); 1391 options[opt >> 3] |= (1 << (opt & 7));
1400 else 1392 else
1401 options[opt >> 3] &= ~(1 << (opt & 7)); 1393 options[opt >> 3] &= ~(1 << (opt & 7));
1394 }
1395
1396 void PrivMode (int set, unsigned bit) NOTHROW
1397 {
1398 if (set)
1399 priv_modes |= bit;
1400 else
1401 priv_modes &= ~bit;
1402 } 1402 }
1403 1403
1404 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; 1404 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; 1405 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; 1406 int scr_scroll_text (int row1, int row2, int count) NOTHROW;
1516 // xpm.C 1516 // xpm.C
1517 void get_window_origin (int &x, int &y); 1517 void get_window_origin (int &x, int &y);
1518 Pixmap get_pixmap_property (int prop_id); 1518 Pixmap get_pixmap_property (int prop_id);
1519}; 1519};
1520 1520
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_ */ 1521#endif /* _RXVT_H_ */
1533 1522

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines