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

Comparing rxvt-unicode/src/rxvtlib.h.in (file contents):
Revision 1.55 by root, Sat Dec 31 16:06:48 2005 UTC vs.
Revision 1.59 by root, Thu Jan 5 21:21:49 2006 UTC

77typedef uint32_t text_t; 77typedef uint32_t text_t;
78#else 78#else
79typedef uint16_t text_t; // saves lots of memory 79typedef uint16_t text_t; // saves lots of memory
80#endif 80#endif
81typedef uint32_t rend_t; 81typedef uint32_t rend_t;
82typedef int32_t tlen_t; // was int16_t, but this result sin smaller code and memory use 82typedef int32_t tlen_t; // was int16_t, but this results in smaller code and memory use
83typedef int32_t tlen_t_; // specifically for use in the line_t structure
83 84
84#define LINE_CONT -1
85
86struct line_t { 85struct line_t;
87 text_t *t; // terminal the text
88 rend_t *r; // rendition, uses RS_ flags
89 tlen_t l; // length of each text line, LINE_CONT == continued on next line
90
91 bool is_longer ()
92 {
93 return l < 0;
94 }
95
96 void set_is_longer ()
97 {
98 l = LINE_CONT;
99 }
100
101 void clear ()
102 {
103 t = 0;
104 r = 0;
105 l = 0;
106 }
107};
108 86
109/* 87/*
110 * terminal limits: 88 * terminal limits:
111 * 89 *
112 * width : 1 <= width 90 * width : 1 <= width
252#define Opt_secondaryScroll (1UL<<21) 230#define Opt_secondaryScroll (1UL<<21)
253#define Opt_pastableTabs (1UL<<22) 231#define Opt_pastableTabs (1UL<<22)
254#define Opt_cursorUnderline (1UL<<23) 232#define Opt_cursorUnderline (1UL<<23)
255#if ENABLE_FRILLS 233#if ENABLE_FRILLS
256# define Opt_insecure (1UL<<24) // insecure esc sequences 234# define Opt_insecure (1UL<<24) // insecure esc sequences
257# define Opt_borderLess (1UL<<25) // mem borderless hints 235# define Opt_borderLess (1UL<<25) // mwm borderless hints
258# define Opt_hold (1UL<<26) // hold window open after exit 236# define Opt_hold (1UL<<26) // hold window open after exit
237# define Opt_skipBuiltinGlyphs (1UL<<27) // do not use internal glyphs
259#else 238#else
260# define Opt_insecure 0 239# define Opt_insecure 0
261# define Opt_borderLess 0 240# define Opt_borderLess 0
262# define Opt_hold 0 241# define Opt_hold 0
242# define Opt_skipBuiltinGlyphs 0
263#endif 243#endif
264#if ENABLE_STYLES 244#if ENABLE_STYLES
265# define Opt_intensityStyles (1UL<<27) // font styles imply intensity 245# define Opt_intensityStyles (1UL<<28) // font styles imply intensity
266#else 246#else
267# define Opt_intensityStyles 0 247# define Opt_intensityStyles 0
268#endif 248#endif
269/* place holder used for parsing command-line options */
270#define Opt_Reverse (1UL<<30)
271#define Opt_Boolean (1UL<<31)
272 249
250#define SET_OPTION(opt) (options |= (opt))
251#define CLR_OPTION(opt) (options &= ~(opt))
252#define OPTION(opt) (options & (opt))
253#define OPTION_R(opt) (r->options & (opt))
273#define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ 254#define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \
274 | Opt_jumpScroll | Opt_secondaryScreen \ 255 | Opt_jumpScroll | Opt_secondaryScreen \
275 | Opt_pastableTabs | Opt_intensityStyles) 256 | Opt_pastableTabs | Opt_intensityStyles)
276 257
277/* ------------------------------------------------------------------------- */ 258/* ------------------------------------------------------------------------- */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines