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.424 by sf-exg, Tue Dec 21 10:37:42 2010 UTC vs.
Revision 1.427 by sf-exg, Mon Jan 10 14:07:19 2011 UTC

27#else 27#else
28// stdlib.h might provide it 28// stdlib.h might provide it
29#endif 29#endif
30 30
31using namespace std; 31using namespace std;
32
33// we assume that Xlib.h defines XPointer, and it does since at least 1994...
32 34
33extern "C" { 35extern "C" {
34#include <X11/Xlib.h> 36#include <X11/Xlib.h>
35#include <X11/Xutil.h> 37#include <X11/Xutil.h>
36#include <X11/Xresource.h> 38#include <X11/Xresource.h>
97/* 99/*
98 ***************************************************************************** 100 *****************************************************************************
99 * SYSTEM HACKS 101 * SYSTEM HACKS
100 ***************************************************************************** 102 *****************************************************************************
101 */ 103 */
102
103#ifndef HAVE_XPOINTER
104typedef char *XPointer;
105#endif
106 104
107#include <termios.h> 105#include <termios.h>
108 106
109#include "background.h" 107#include "background.h"
110 108
155void rxvt_warn (const char *fmt,...) NOTHROW; 153void rxvt_warn (const char *fmt,...) NOTHROW;
156void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN; 154void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN;
157void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; 155void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN;
158 156
159char * rxvt_strtrim (char *str) NOTHROW; 157char * rxvt_strtrim (char *str) NOTHROW;
160char ** rxvt_splitcommastring (const char *cs) NOTHROW; 158char ** rxvt_strsplit (char delim, const char *str) NOTHROW;
161void rxvt_freecommastring (char **cs) NOTHROW; 159
160static inline void
161rxvt_free_strsplit (char **ptr) NOTHROW
162{
163 free (ptr[0]);
164 free (ptr);
165}
162 166
163void * rxvt_malloc (size_t size); 167void * rxvt_malloc (size_t size);
164void * rxvt_calloc (size_t number, size_t size); 168void * rxvt_calloc (size_t number, size_t size);
165void * rxvt_realloc (void *ptr, size_t size); 169void * rxvt_realloc (void *ptr, size_t size);
166 170
1293 void process_window_ops (const int *args, unsigned int nargs); 1297 void process_window_ops (const int *args, unsigned int nargs);
1294 char *get_to_st (unicode_t &ends_how); 1298 char *get_to_st (unicode_t &ends_how);
1295 void process_dcs_seq (); 1299 void process_dcs_seq ();
1296 void process_osc_seq (); 1300 void process_osc_seq ();
1297 void process_color_seq (int report, int color, const char *str, char resp); 1301 void process_color_seq (int report, int color, const char *str, char resp);
1298 void process_xterm_seq (int op, const char *str, char resp); 1302 void process_xterm_seq (int op, char *str, char resp);
1299 int privcases (int mode, unsigned long bit); 1303 int privcases (int mode, unsigned long bit);
1300 void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg); 1304 void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg);
1301 void process_sgr_mode (unsigned int nargs, const int *arg); 1305 void process_sgr_mode (unsigned int nargs, const int *arg);
1302 void process_graphics (); 1306 void process_graphics ();
1303 // init.C 1307 // init.C

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines