… | |
… | |
80 | /* |
80 | /* |
81 | ***************************************************************************** |
81 | ***************************************************************************** |
82 | * PROTOTYPES |
82 | * PROTOTYPES |
83 | ***************************************************************************** |
83 | ***************************************************************************** |
84 | */ |
84 | */ |
|
|
85 | // main.C |
85 | RETSIGTYPE rxvt_Child_signal (int sig); |
86 | RETSIGTYPE rxvt_Child_signal (int sig); |
86 | RETSIGTYPE rxvt_Exit_signal (int sig); |
87 | RETSIGTYPE rxvt_Exit_signal (int sig); |
87 | void rxvt_clean_exit (); |
88 | void rxvt_clean_exit (); |
88 | void * rxvt_malloc (size_t size); |
89 | void * rxvt_malloc (size_t size); |
89 | void * rxvt_calloc (size_t number, size_t size); |
90 | void * rxvt_calloc (size_t number, size_t size); |
90 | void * rxvt_realloc (void *ptr, size_t size); |
91 | void * rxvt_realloc (void *ptr, size_t size); |
|
|
92 | void rxvt_privileges (rxvt_privaction action); |
|
|
93 | |
|
|
94 | // util.C |
91 | char * rxvt_wcstombs (const wchar_t *str, int len = -1); |
95 | char * rxvt_wcstombs (const wchar_t *str, int len = -1); |
92 | wchar_t * rxvt_mbstowcs (const char *str, int len = -1); |
96 | wchar_t * rxvt_mbstowcs (const char *str, int len = -1); |
93 | char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1); |
97 | char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1); |
94 | wchar_t * rxvt_utf8towcs (const char *str, int len = -1); |
98 | wchar_t * rxvt_utf8towcs (const char *str, int len = -1); |
95 | char * rxvt_strdup (const char *str); |
99 | char * rxvt_strdup (const char *str); |
|
|
100 | |
|
|
101 | // misc.C |
96 | char * rxvt_r_basename (const char *str); |
102 | char * rxvt_r_basename (const char *str); |
97 | void rxvt_vlog (const char *fmt, va_list arg_ptr); |
103 | void rxvt_vlog (const char *fmt, va_list arg_ptr); |
98 | void rxvt_log (const char *fmt,...); |
104 | void rxvt_log (const char *fmt,...); |
99 | void rxvt_warn (const char *fmt,...); |
105 | void rxvt_warn (const char *fmt,...); |
100 | void rxvt_fatal (const char *fmt,...); |
106 | void rxvt_fatal (const char *fmt,...); |
… | |
… | |
106 | char ** rxvt_splitcommastring (const char *cs); |
112 | char ** rxvt_splitcommastring (const char *cs); |
107 | void rxvt_freecommastring (char **cs); |
113 | void rxvt_freecommastring (char **cs); |
108 | char * rxvt_File_find (const char *file, const char *ext, const char *path); |
114 | char * rxvt_File_find (const char *file, const char *ext, const char *path); |
109 | void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h); |
115 | void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h); |
110 | void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type); |
116 | void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type); |
111 | |
|
|
112 | void rxvt_privileges (rxvt_privaction action); |
|
|
113 | |
117 | |
114 | /* |
118 | /* |
115 | ***************************************************************************** |
119 | ***************************************************************************** |
116 | * STRUCTURES AND TYPEDEFS |
120 | * STRUCTURES AND TYPEDEFS |
117 | ***************************************************************************** |
121 | ***************************************************************************** |
… | |
… | |
603 | #endif |
607 | #endif |
604 | #if ENABLE_FRILLS |
608 | #if ENABLE_FRILLS |
605 | Rs_ext_bwidth, |
609 | Rs_ext_bwidth, |
606 | Rs_int_bwidth, |
610 | Rs_int_bwidth, |
607 | Rs_borderLess, |
611 | Rs_borderLess, |
608 | #endif |
|
|
609 | #if ENABLE_FRILLS |
|
|
610 | Rs_lineSpace, |
612 | Rs_lineSpace, |
|
|
613 | Rs_embed, |
|
|
614 | Rs_pty_fd, |
611 | #endif |
615 | #endif |
612 | Rs_cutchars, |
616 | Rs_cutchars, |
613 | Rs_modifier, |
617 | Rs_modifier, |
614 | Rs_answerbackstring, |
618 | Rs_answerbackstring, |
615 | Rs_tripleclickwords, |
619 | Rs_tripleclickwords, |
… | |
… | |
696 | priv_modes |= (bit); \ |
700 | priv_modes |= (bit); \ |
697 | else \ |
701 | else \ |
698 | priv_modes &= ~(bit) |
702 | priv_modes &= ~(bit) |
699 | |
703 | |
700 | #ifdef ALLOW_132_MODE |
704 | #ifdef ALLOW_132_MODE |
701 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
705 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
702 | #else |
706 | #else |
703 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
707 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
704 | #endif |
708 | #endif |
705 | |
709 | |
706 | // do not change these constants lightly, there are many interdependencies |
710 | // do not change these constants lightly, there are many interdependencies |
707 | #define IMBUFSIZ 128 // input modifier buffer sizes |
711 | #define IMBUFSIZ 128 // input modifier buffer sizes |
708 | #define KBUFSZ 512 // size of keyboard mapping buffer |
712 | #define KBUFSZ 512 // size of keyboard mapping buffer |