… | |
… | |
157 | |
157 | |
158 | const char * rxvt_basename (const char *str) NOTHROW; |
158 | const char * rxvt_basename (const char *str) NOTHROW; |
159 | void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW; |
159 | void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW; |
160 | void rxvt_log (const char *fmt,...) NOTHROW; |
160 | void rxvt_log (const char *fmt,...) NOTHROW; |
161 | void rxvt_warn (const char *fmt,...) NOTHROW; |
161 | void rxvt_warn (const char *fmt,...) NOTHROW; |
162 | void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN; |
162 | void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) ecb_noreturn; |
163 | void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; |
163 | void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) ecb_noreturn; |
164 | |
164 | |
165 | char * rxvt_strtrim (char *str) NOTHROW; |
165 | char * rxvt_strtrim (char *str) NOTHROW; |
166 | char ** rxvt_strsplit (char delim, const char *str) NOTHROW; |
166 | char ** rxvt_strsplit (char delim, const char *str) NOTHROW; |
167 | |
167 | |
168 | static inline void |
168 | static inline void |
… | |
… | |
667 | |
667 | |
668 | #define GET_ATTR(x) (((x) & RS_attrMask)) |
668 | #define GET_ATTR(x) (((x) & RS_attrMask)) |
669 | // return attributes defining the background, encoding doesn't matter |
669 | // return attributes defining the background, encoding doesn't matter |
670 | // depends on RS_fgShift > RS_bgShift |
670 | // depends on RS_fgShift > RS_bgShift |
671 | #define GET_BGATTR(x) \ |
671 | #define GET_BGATTR(x) \ |
672 | (expect_false ((x) & RS_RVid) \ |
672 | (ecb_unlikely ((x) & RS_RVid) \ |
673 | ? (((x) & (RS_attrMask & ~RS_RVid)) \ |
673 | ? (((x) & (RS_attrMask & ~RS_RVid)) \ |
674 | | (((x) & RS_fgMask) >> (RS_fgShift - RS_bgShift))) \ |
674 | | (((x) & RS_fgMask) >> (RS_fgShift - RS_bgShift))) \ |
675 | : ((x) & (RS_attrMask | RS_bgMask))) |
675 | : ((x) & (RS_attrMask | RS_bgMask))) |
676 | #define SET_FGCOLOR(x,fg) (((x) & ~RS_fgMask) | ((fg) << RS_fgShift)) |
676 | #define SET_FGCOLOR(x,fg) (((x) & ~RS_fgMask) | ((fg) << RS_fgShift)) |
677 | #define SET_BGCOLOR(x,bg) (((x) & ~RS_bgMask) | ((bg) << RS_bgShift)) |
677 | #define SET_BGCOLOR(x,bg) (((x) & ~RS_bgMask) | ((bg) << RS_bgShift)) |