… | |
… | |
589 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
589 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
590 | |
590 | |
591 | return p; |
591 | return p; |
592 | } |
592 | } |
593 | |
593 | |
594 | /* INTPROTO */ |
|
|
595 | void * |
594 | void * |
596 | rxvt_calloc (size_t number, size_t size) |
595 | rxvt_calloc (size_t number, size_t size) |
597 | { |
596 | { |
598 | void *p = calloc (number, size); |
597 | void *p = calloc (number, size); |
599 | |
598 | |
… | |
… | |
601 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
600 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
602 | |
601 | |
603 | return p; |
602 | return p; |
604 | } |
603 | } |
605 | |
604 | |
606 | /* INTPROTO */ |
|
|
607 | void * |
605 | void * |
608 | rxvt_realloc (void *ptr, size_t size) |
606 | rxvt_realloc (void *ptr, size_t size) |
609 | { |
607 | { |
610 | void *p = realloc (ptr, size); |
608 | void *p = realloc (ptr, size); |
611 | |
609 | |
… | |
… | |
847 | (void)ioctl (pty.pty, TIOCSWINSZ, &ws); |
845 | (void)ioctl (pty.pty, TIOCSWINSZ, &ws); |
848 | |
846 | |
849 | #if 0 |
847 | #if 0 |
850 | // TIOCSWINSZ⎈ is supposed to do this automatically and correctly |
848 | // TIOCSWINSZ⎈ is supposed to do this automatically and correctly |
851 | if (cmd_pid) /* force through to the command */ |
849 | if (cmd_pid) /* force through to the command */ |
852 | kill (cmd_pid, SIGWINCH); |
850 | kill (-cmd_pid, SIGWINCH); |
853 | #endif |
851 | #endif |
854 | } |
852 | } |
855 | |
853 | |
856 | /*----------------------------------------------------------------------*/ |
854 | /*----------------------------------------------------------------------*/ |
857 | /* set_fonts () - load and set the various fonts |
855 | /* set_fonts () - load and set the various fonts |