… | |
… | |
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, |
611 | #endif |
614 | #endif |
612 | Rs_cutchars, |
615 | Rs_cutchars, |
613 | Rs_modifier, |
616 | Rs_modifier, |
614 | Rs_answerbackstring, |
617 | Rs_answerbackstring, |
615 | Rs_tripleclickwords, |
618 | Rs_tripleclickwords, |
… | |
… | |
696 | priv_modes |= (bit); \ |
699 | priv_modes |= (bit); \ |
697 | else \ |
700 | else \ |
698 | priv_modes &= ~(bit) |
701 | priv_modes &= ~(bit) |
699 | |
702 | |
700 | #ifdef ALLOW_132_MODE |
703 | #ifdef ALLOW_132_MODE |
701 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
704 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
702 | #else |
705 | #else |
703 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
706 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
704 | #endif |
707 | #endif |
705 | |
708 | |
706 | // do not change these constants lightly, there are many interdependencies |
709 | // do not change these constants lightly, there are many interdependencies |
707 | #define IMBUFSIZ 128 // input modifier buffer sizes |
710 | #define IMBUFSIZ 128 // input modifier buffer sizes |
708 | #define KBUFSZ 512 // size of keyboard mapping buffer |
711 | #define KBUFSZ 512 // size of keyboard mapping buffer |
… | |
… | |
759 | #define strdup(x) strdup((const char *)(x)) |
762 | #define strdup(x) strdup((const char *)(x)) |
760 | #define strlen(x) strlen((const char *)(x)) |
763 | #define strlen(x) strlen((const char *)(x)) |
761 | #define strchr(x, y) strchr((const char *)(x), (int)(y)) |
764 | #define strchr(x, y) strchr((const char *)(x), (int)(y)) |
762 | #define strrchr(x, y) strrchr((const char *)(x), (int)(y)) |
765 | #define strrchr(x, y) strrchr((const char *)(x), (int)(y)) |
763 | |
766 | |
|
|
767 | #define dDisp Display *disp = display->display |
|
|
768 | |
764 | /* convert pixel dimensions to row/column values. Everything as int32_t */ |
769 | /* convert pixel dimensions to row/column values. Everything as int32_t */ |
765 | #define Pixel2Col(x) Pixel2Width((int32_t)(x)) |
770 | #define Pixel2Col(x) Pixel2Width((int32_t)(x)) |
766 | #define Pixel2Row(y) Pixel2Height((int32_t)(y)) |
771 | #define Pixel2Row(y) Pixel2Height((int32_t)(y)) |
767 | #define Pixel2Width(x) ((int32_t)(x) / (int32_t)TermWin.fwidth) |
772 | #define Pixel2Width(x) ((int32_t)(x) / (int32_t)TermWin.fwidth) |
768 | #define Pixel2Height(y) ((int32_t)(y) / (int32_t)TermWin.fheight) |
773 | #define Pixel2Height(y) ((int32_t)(y) / (int32_t)TermWin.fheight) |
… | |
… | |
865 | #ifdef XPM_BACKGROUND |
870 | #ifdef XPM_BACKGROUND |
866 | # define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g)) |
871 | # define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g)) |
867 | #else |
872 | #else |
868 | # define XPMClearArea(a, b, c, d, e, f, g) |
873 | # define XPMClearArea(a, b, c, d, e, f, g) |
869 | #endif |
874 | #endif |
870 | |
|
|
871 | #ifndef STRICT_FONT_CHECKING |
|
|
872 | # define rxvt_get_fontwidest(font) ((font)->max_bounds.width) |
|
|
873 | #endif |
|
|
874 | |
|
|
875 | #define rxvt_Gr_ButtonPress(x,y) rxvt_Gr_ButtonReport (R, 'P',(x),(y)) |
|
|
876 | #define rxvt_Gr_ButtonRelease(x,y) rxvt_Gr_ButtonReport (R, 'R',(x),(y)) |
|
|
877 | |
875 | |
878 | #ifdef UTMP_SUPPORT |
876 | #ifdef UTMP_SUPPORT |
879 | # if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX) |
877 | # if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX) |
880 | # undef HAVE_UTMPX_H |
878 | # undef HAVE_UTMPX_H |
881 | # undef HAVE_STRUCT_UTMPX |
879 | # undef HAVE_STRUCT_UTMPX |
… | |
… | |
1283 | void tt_winch (); |
1281 | void tt_winch (); |
1284 | |
1282 | |
1285 | rxvt_term (); |
1283 | rxvt_term (); |
1286 | ~rxvt_term (); |
1284 | ~rxvt_term (); |
1287 | void destroy (); |
1285 | void destroy (); |
|
|
1286 | void emergency_cleanup (); |
1288 | |
1287 | |
1289 | bool init (int argc, const char *const *argv); |
1288 | bool init (int argc, const char *const *argv); |
1290 | bool init_vars (); |
1289 | bool init_vars (); |
1291 | |
1290 | |
1292 | bool pty_fill (); |
1291 | bool pty_fill (); |
… | |
… | |
1516 | |
1515 | |
1517 | // xdefaults.C |
1516 | // xdefaults.C |
1518 | void get_options (int argc, const char *const *argv); |
1517 | void get_options (int argc, const char *const *argv); |
1519 | int parse_keysym (const char *str, const char *arg); |
1518 | int parse_keysym (const char *str, const char *arg); |
1520 | void get_xdefaults (FILE *stream, const char *name); |
1519 | void get_xdefaults (FILE *stream, const char *name); |
1521 | void extract_resources (Display *display, const char *name); |
1520 | void extract_resources (); |
1522 | // xpm.C |
1521 | // xpm.C |
1523 | int scale_pixmap (const char *geom); |
1522 | int scale_pixmap (const char *geom); |
1524 | void resize_pixmap (); |
1523 | void resize_pixmap (); |
1525 | Pixmap set_bgPixmap (const char *file); |
1524 | Pixmap set_bgPixmap (const char *file); |
1526 | }; |
1525 | }; |