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.296 by ayin, Sun Aug 26 16:25:59 2007 UTC vs.
Revision 1.300 by ayin, Mon Aug 27 20:53:16 2007 UTC

118void rxvt_log (const char *fmt,...) NOTHROW; 118void rxvt_log (const char *fmt,...) NOTHROW;
119void rxvt_warn (const char *fmt,...) NOTHROW; 119void rxvt_warn (const char *fmt,...) NOTHROW;
120void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN; 120void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN;
121void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; 121void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN;
122 122
123int rxvt_Str_match (const char *s1, const char *s2) NOTHROW;
124const char * rxvt_Str_skip_space (const char *str) NOTHROW;
125char * rxvt_Str_trim (char *str) NOTHROW; 123char * rxvt_Str_trim (char *str) NOTHROW;
126int rxvt_Str_escaped (char *str) NOTHROW; 124int rxvt_Str_escaped (char *str) NOTHROW;
127char ** rxvt_splitcommastring (const char *cs) NOTHROW; 125char ** rxvt_splitcommastring (const char *cs) NOTHROW;
128void rxvt_freecommastring (char **cs) NOTHROW; 126void rxvt_freecommastring (char **cs) NOTHROW;
129 127
131 129
132// temporarily replace the process environment 130// temporarily replace the process environment
133extern char **environ; 131extern char **environ;
134extern char **rxvt_environ; // the original environ pointer 132extern char **rxvt_environ; // the original environ pointer
135 133
136inline void set_environ (stringvec *envv) 134static inline void set_environ (stringvec *envv)
137{ 135{
138#if ENABLE_PERL 136#if ENABLE_PERL
139 assert (envv); 137 assert (envv);
140#else 138#else
141 if (envv) 139 if (envv)
142#endif 140#endif
143 environ = (char **)envv->begin (); 141 environ = (char **)envv->begin ();
144} 142}
145 143
146inline void set_environ (char **envv) 144static inline void set_environ (char **envv)
147{ 145{
148#if ENABLE_PERL 146#if ENABLE_PERL
149 assert (envv); 147 assert (envv);
150#else 148#else
151 if (envv) 149 if (envv)
696#define PrivMode_LFNL (1UL<<19) 694#define PrivMode_LFNL (1UL<<19)
697/* too annoying to implement X11 highlight tracking */ 695/* too annoying to implement X11 highlight tracking */
698/* #define PrivMode_MouseX11Track (1LU<<20) */ 696/* #define PrivMode_MouseX11Track (1LU<<20) */
699 697
700#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11) 698#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11)
701#define PrivMode(test,bit) \
702 if (test) \
703 priv_modes |= (bit); \
704 else \
705 priv_modes &= ~(bit)
706 699
707#ifdef ALLOW_132_MODE 700#ifdef ALLOW_132_MODE
708# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) 701# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK)
709#else 702#else
710# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) 703# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor)
1395 { 1388 {
1396 if (set) 1389 if (set)
1397 options[opt >> 3] |= (1 << (opt & 7)); 1390 options[opt >> 3] |= (1 << (opt & 7));
1398 else 1391 else
1399 options[opt >> 3] &= ~(1 << (opt & 7)); 1392 options[opt >> 3] &= ~(1 << (opt & 7));
1393 }
1394
1395 void PrivMode (int set, unsigned bit) NOTHROW
1396 {
1397 if (set)
1398 priv_modes |= bit;
1399 else
1400 priv_modes &= ~bit;
1400 } 1401 }
1401 1402
1402 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; 1403 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW;
1403 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; 1404 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW;
1404 int scr_scroll_text (int row1, int row2, int count) NOTHROW; 1405 int scr_scroll_text (int row1, int row2, int count) NOTHROW;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines