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.14 by pcg, Wed Mar 3 01:45:14 2004 UTC vs.
Revision 1.16 by pcg, Sat Mar 6 00:05:01 2004 UTC

1#ifndef _RXVTLIB_H_ /* include once only */ 1#ifndef _RXVTLIB_H_ /* include once only */
2#define _RXVTLIB_H_ 2#define _RXVTLIB_H_
3 3
4#include <stdio.h> 4#include <cstdio>
5#include <ctype.h> 5#include <cctype>
6#include <errno.h> 6#include <cerrno>
7@include_stdarg_h@ 7@include_stdarg_h@
8@include_stdlib_h@ 8@include_stdlib_h@
9@include_stdint_h@ 9@include_stdint_h@
10#include <sys/types.h> 10#include <sys/types.h>
11@include_unistd_h@ 11@include_unistd_h@
20@include_sys_strredir_h@ 20@include_sys_strredir_h@
21 21
22#include <sys/wait.h> 22#include <sys/wait.h>
23#include <sys/stat.h> 23#include <sys/stat.h>
24 24
25#include <cwchar>
26
25extern "C" { 27extern "C" {
26#include <X11/Intrinsic.h> /* Xlib, Xutil, Xresource, Xfuncproto */ 28#include <X11/Intrinsic.h> /* Xlib, Xutil, Xresource, Xfuncproto */
27} 29}
28 30
29/* 31/*
61typedef struct { 63typedef struct {
62 int32_t row; 64 int32_t row;
63 int32_t col; 65 int32_t col;
64} row_col_t; 66} row_col_t;
65 67
66#if UNICODE3 68#if UNICODE_3
67typedef uint32_t text_t; 69typedef uint32_t text_t;
68#else 70#else
69typedef uint16_t text_t; // saves lots of memory 71typedef uint16_t text_t; // saves lots of memory
70#endif 72#endif
71typedef uint32_t rend_t; 73typedef uint32_t rend_t;
157 SELECTION_CONT, /* continued selection */ 159 SELECTION_CONT, /* continued selection */
158 SELECTION_DONE /* selection put in CUT_BUFFER0 */ 160 SELECTION_DONE /* selection put in CUT_BUFFER0 */
159}; 161};
160 162
161typedef struct { 163typedef struct {
162 unsigned char *text; /* selected text */ 164 wchar_t *text; /* selected text */
163 uint32_t len; /* length of selected text */ 165 uint32_t len; /* length of selected text */
164 short screen; /* screen being used */ 166 short screen; /* screen being used */
165 short clicks; /* number of clicks */ 167 short clicks; /* number of clicks */
166 selection_op_t op; /* current operation */ 168 selection_op_t op; /* current operation */
167 row_col_t beg; /* beginning of selection <= mark */ 169 row_col_t beg; /* beginning of selection <= mark */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines