ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.137 by root, Tue Feb 15 16:04:45 2005 UTC vs.
Revision 1.141 by root, Sat Feb 19 01:07:58 2005 UTC

30 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 30 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 *---------------------------------------------------------------------*/ 31 *---------------------------------------------------------------------*/
32 32
33#include "../config.h" /* NECESSARY */ 33#include "../config.h" /* NECESSARY */
34#include "rxvt.h" /* NECESSARY */ 34#include "rxvt.h" /* NECESSARY */
35#include "main.intpro" /* PROTOS for internal routines */
36 35
37#include <csignal> 36#include <csignal>
38#include <cstring> 37#include <cstring>
39 38
40#ifdef TTY_GID_SUPPORT 39#ifdef TTY_GID_SUPPORT
254 // XDestroyWindow (disp, menuBar.win); 253 // XDestroyWindow (disp, menuBar.win);
255#endif 254#endif
256 delete TermWin.drawable; 255 delete TermWin.drawable;
257 // destroy all windows 256 // destroy all windows
258 if (TermWin.parent[0] 257 if (TermWin.parent[0]
259#if ENABLE_FRILLS 258#if ENABLE_XEMBED
260 && !rs[Rs_embed] 259 && !rs[Rs_embed]
261#endif 260#endif
262 ) 261 )
263 XDestroyWindow (disp, TermWin.parent[0]); 262 XDestroyWindow (disp, TermWin.parent[0]);
264 } 263 }
590 rxvt_fatal ("memory allocation failure. aborting.\n"); 589 rxvt_fatal ("memory allocation failure. aborting.\n");
591 590
592 return p; 591 return p;
593} 592}
594 593
595/* INTPROTO */
596void * 594void *
597rxvt_calloc (size_t number, size_t size) 595rxvt_calloc (size_t number, size_t size)
598{ 596{
599 void *p = calloc (number, size); 597 void *p = calloc (number, size);
600 598
602 rxvt_fatal ("memory allocation failure. aborting.\n"); 600 rxvt_fatal ("memory allocation failure. aborting.\n");
603 601
604 return p; 602 return p;
605} 603}
606 604
607/* INTPROTO */
608void * 605void *
609rxvt_realloc (void *ptr, size_t size) 606rxvt_realloc (void *ptr, size_t size)
610{ 607{
611 void *p = realloc (ptr, size); 608 void *p = realloc (ptr, size);
612 609
848 (void)ioctl (pty.pty, TIOCSWINSZ, &ws); 845 (void)ioctl (pty.pty, TIOCSWINSZ, &ws);
849 846
850#if 0 847#if 0
851 // TIOCSWINSZ⎈ is supposed to do this automatically and correctly 848 // TIOCSWINSZ⎈ is supposed to do this automatically and correctly
852 if (cmd_pid) /* force through to the command */ 849 if (cmd_pid) /* force through to the command */
853 kill (cmd_pid, SIGWINCH); 850 kill (-cmd_pid, SIGWINCH);
854#endif 851#endif
855} 852}
856 853
857/*----------------------------------------------------------------------*/ 854/*----------------------------------------------------------------------*/
858/* set_fonts () - load and set the various fonts 855/* set_fonts () - load and set the various fonts

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines