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.197 by root, Wed Jan 11 05:29:40 2006 UTC vs.
Revision 1.198 by root, Thu Jan 12 00:35:39 2006 UTC

112void rxvt_freecommastring (char **cs); 112void rxvt_freecommastring (char **cs);
113char * rxvt_File_find (const char *file, const char *ext, const char *path); 113char * rxvt_File_find (const char *file, const char *ext, const char *path);
114void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h); 114void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h);
115void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type); 115void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type);
116void rxvt_usleep (int usecs); 116void rxvt_usleep (int usecs);
117
118/////////////////////////////////////////////////////////////////////////////
119
120// temporarily replace the process environment
121extern char **environ;
122extern char **rxvt_environ; // the original environ pointer
123
124struct temp_environ
125{
126 char **prev;
127
128 temp_environ (const stringvec *envv)
129 : prev(environ)
130 {
131 if (envv)
132 environ = (char **)envv->begin ();
133 }
134
135 temp_environ (char **env)
136 : prev(environ)
137 {
138 if (env)
139 environ = env;
140 }
141
142 ~temp_environ ()
143 {
144 environ = prev;
145 }
146};
147
148#define TEMP_ENV temp_environ temp_environ (envv)
117 149
118/* 150/*
119 ***************************************************************************** 151 *****************************************************************************
120 * STRUCTURES AND TYPEDEFS 152 * STRUCTURES AND TYPEDEFS
121 ***************************************************************************** 153 *****************************************************************************
698#define Col2Pixel(col) ((int32_t)Width2Pixel(col)) 730#define Col2Pixel(col) ((int32_t)Width2Pixel(col))
699#define Row2Pixel(row) ((int32_t)Height2Pixel(row)) 731#define Row2Pixel(row) ((int32_t)Height2Pixel(row))
700#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) 732#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth)
701#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) 733#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight)
702 734
703#define TEMP_ENV temp_environ temp_environ (envv)
704
705#define OPTION(opt) (options & (opt)) 735#define OPTION(opt) (options & (opt))
706#define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ 736#define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \
707 | Opt_jumpScroll | Opt_secondaryScreen \ 737 | Opt_jumpScroll | Opt_secondaryScreen \
708 | Opt_pastableTabs | Opt_intensityStyles) 738 | Opt_pastableTabs | Opt_intensityStyles)
709 739

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines