… | |
… | |
106 | ***************************************************************************** |
106 | ***************************************************************************** |
107 | * PROTOTYPES |
107 | * PROTOTYPES |
108 | ***************************************************************************** |
108 | ***************************************************************************** |
109 | */ |
109 | */ |
110 | // main.C |
110 | // main.C |
111 | void * rxvt_malloc (size_t size); |
111 | #define SET_LOCALE(locale) rxvt_set_locale (locale) |
112 | void * rxvt_calloc (size_t number, size_t size); |
112 | extern bool rxvt_set_locale (const char *locale) NOTHROW; |
113 | void * rxvt_realloc (void *ptr, size_t size); |
113 | extern void rxvt_push_locale (const char *locale) NOTHROW; |
|
|
114 | extern void rxvt_pop_locale () NOTHROW; |
114 | |
115 | |
115 | // misc.C |
116 | // misc.C |
116 | char * rxvt_wcstombs (const wchar_t *str, int len = -1); |
117 | char * rxvt_wcstombs (const wchar_t *str, int len = -1); |
117 | wchar_t * rxvt_mbstowcs (const char *str, int len = -1); |
118 | wchar_t * rxvt_mbstowcs (const char *str, int len = -1); |
118 | char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1); |
119 | char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1); |
… | |
… | |
126 | void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; |
127 | void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; |
127 | |
128 | |
128 | char * rxvt_strtrim (char *str) NOTHROW; |
129 | char * rxvt_strtrim (char *str) NOTHROW; |
129 | char ** rxvt_splitcommastring (const char *cs) NOTHROW; |
130 | char ** rxvt_splitcommastring (const char *cs) NOTHROW; |
130 | void rxvt_freecommastring (char **cs) NOTHROW; |
131 | void rxvt_freecommastring (char **cs) NOTHROW; |
|
|
132 | |
|
|
133 | void * rxvt_malloc (size_t size); |
|
|
134 | void * rxvt_calloc (size_t number, size_t size); |
|
|
135 | void * rxvt_realloc (void *ptr, size_t size); |
131 | |
136 | |
132 | ///////////////////////////////////////////////////////////////////////////// |
137 | ///////////////////////////////////////////////////////////////////////////// |
133 | |
138 | |
134 | // temporarily replace the process environment |
139 | // temporarily replace the process environment |
135 | extern char **environ; |
140 | extern char **environ; |
… | |
… | |
723 | - scrollbar_minheight ()) |
728 | - scrollbar_minheight ()) |
724 | |
729 | |
725 | typedef callback<void (const char *)> log_callback; |
730 | typedef callback<void (const char *)> log_callback; |
726 | typedef callback<int (int)> getfd_callback; |
731 | typedef callback<int (int)> getfd_callback; |
727 | |
732 | |
728 | #define SET_LOCALE(locale) rxvt_set_locale (locale) |
|
|
729 | extern bool rxvt_set_locale (const char *locale) NOTHROW; |
|
|
730 | extern void rxvt_push_locale (const char *locale) NOTHROW; |
|
|
731 | extern void rxvt_pop_locale () NOTHROW; |
|
|
732 | |
|
|
733 | /****************************************************************************/ |
733 | /****************************************************************************/ |
734 | |
734 | |
735 | #define LINE_LONGER 0x0001 // line is continued on the next row |
735 | #define LINE_LONGER 0x0001 // line is continued on the next row |
736 | #define LINE_FILTERED 0x0002 // line has been filtered |
736 | #define LINE_FILTERED 0x0002 // line has been filtered |
737 | #define LINE_COMPRESSED 0x0004 // line has been compressed (NYI) |
737 | #define LINE_COMPRESSED 0x0004 // line has been compressed (NYI) |