… | |
… | |
759 | #define strdup(x) strdup((const char *)(x)) |
759 | #define strdup(x) strdup((const char *)(x)) |
760 | #define strlen(x) strlen((const char *)(x)) |
760 | #define strlen(x) strlen((const char *)(x)) |
761 | #define strchr(x, y) strchr((const char *)(x), (int)(y)) |
761 | #define strchr(x, y) strchr((const char *)(x), (int)(y)) |
762 | #define strrchr(x, y) strrchr((const char *)(x), (int)(y)) |
762 | #define strrchr(x, y) strrchr((const char *)(x), (int)(y)) |
763 | |
763 | |
|
|
764 | #define dDisp Display *disp = display->display |
|
|
765 | |
764 | /* convert pixel dimensions to row/column values. Everything as int32_t */ |
766 | /* convert pixel dimensions to row/column values. Everything as int32_t */ |
765 | #define Pixel2Col(x) Pixel2Width((int32_t)(x)) |
767 | #define Pixel2Col(x) Pixel2Width((int32_t)(x)) |
766 | #define Pixel2Row(y) Pixel2Height((int32_t)(y)) |
768 | #define Pixel2Row(y) Pixel2Height((int32_t)(y)) |
767 | #define Pixel2Width(x) ((int32_t)(x) / (int32_t)TermWin.fwidth) |
769 | #define Pixel2Width(x) ((int32_t)(x) / (int32_t)TermWin.fwidth) |
768 | #define Pixel2Height(y) ((int32_t)(y) / (int32_t)TermWin.fheight) |
770 | #define Pixel2Height(y) ((int32_t)(y) / (int32_t)TermWin.fheight) |
… | |
… | |
865 | #ifdef XPM_BACKGROUND |
867 | #ifdef XPM_BACKGROUND |
866 | # define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g)) |
868 | # define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g)) |
867 | #else |
869 | #else |
868 | # define XPMClearArea(a, b, c, d, e, f, g) |
870 | # define XPMClearArea(a, b, c, d, e, f, g) |
869 | #endif |
871 | #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 | |
872 | |
878 | #ifdef UTMP_SUPPORT |
873 | #ifdef UTMP_SUPPORT |
879 | # if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX) |
874 | # if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX) |
880 | # undef HAVE_UTMPX_H |
875 | # undef HAVE_UTMPX_H |
881 | # undef HAVE_STRUCT_UTMPX |
876 | # undef HAVE_STRUCT_UTMPX |
… | |
… | |
1283 | void tt_winch (); |
1278 | void tt_winch (); |
1284 | |
1279 | |
1285 | rxvt_term (); |
1280 | rxvt_term (); |
1286 | ~rxvt_term (); |
1281 | ~rxvt_term (); |
1287 | void destroy (); |
1282 | void destroy (); |
|
|
1283 | void emergency_cleanup (); |
1288 | |
1284 | |
1289 | bool init (int argc, const char *const *argv); |
1285 | bool init (int argc, const char *const *argv); |
1290 | bool init_vars (); |
1286 | bool init_vars (); |
1291 | |
1287 | |
1292 | bool pty_fill (); |
1288 | bool pty_fill (); |
… | |
… | |
1516 | |
1512 | |
1517 | // xdefaults.C |
1513 | // xdefaults.C |
1518 | void get_options (int argc, const char *const *argv); |
1514 | void get_options (int argc, const char *const *argv); |
1519 | int parse_keysym (const char *str, const char *arg); |
1515 | int parse_keysym (const char *str, const char *arg); |
1520 | void get_xdefaults (FILE *stream, const char *name); |
1516 | void get_xdefaults (FILE *stream, const char *name); |
1521 | void extract_resources (Display *display, const char *name); |
1517 | void extract_resources (); |
1522 | // xpm.C |
1518 | // xpm.C |
1523 | int scale_pixmap (const char *geom); |
1519 | int scale_pixmap (const char *geom); |
1524 | void resize_pixmap (); |
1520 | void resize_pixmap (); |
1525 | Pixmap set_bgPixmap (const char *file); |
1521 | Pixmap set_bgPixmap (const char *file); |
1526 | }; |
1522 | }; |