~ubuntu-branches/ubuntu/precise/xterm/precise-updates

« back to all changes in this revision

Viewing changes to ptyx.h

  • Committer: Bazaar Package Importer
  • Author(s): Lorenzo De Liso
  • Date: 2011-02-12 15:58:09 UTC
  • mfrom: (1.5.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: james.westby@ubuntu.com-20110212155809-vxve6aexyvm7aoh3
Tags: upstream-268
ImportĀ upstreamĀ versionĀ 268

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XTermId: ptyx.h,v 1.675 2010/10/11 08:25:53 tom Exp $ */
 
1
/* $XTermId: ptyx.h,v 1.682 2011/01/21 00:41:45 tom Exp $ */
2
2
 
3
3
/*
4
 
 * Copyright 1999-2009,2010 by Thomas E. Dickey
 
4
 * Copyright 1999-2010,2011 by Thomas E. Dickey
5
5
 *
6
6
 *                         All Rights Reserved
7
7
 *
60
60
#endif
61
61
 
62
62
/* ptyx.h */
 
63
/* *INDENT-OFF* */
63
64
/* @(#)ptyx.h   X10/6.6 11/10/86 */
64
65
 
65
66
#include <X11/IntrinsicP.h>
91
92
 
92
93
#define TypeRealloc(type,n,p)   (type *)realloc(p, (n) * sizeof(type))
93
94
 
 
95
#define TypeXtReallocN(t,p,n)   (t *)(void *)XtRealloc((char *)(p), (Cardinal)(sizeof(t) * (size_t) (n)))
 
96
 
 
97
#define TypeXtMallocX(type,n)   (type *)(void *)XtMalloc((Cardinal)(sizeof(type) + (size_t) (n)))
 
98
#define TypeXtMallocN(type,n)   (type *)(void *)XtMalloc((Cardinal)(sizeof(type) * (size_t) (n)))
 
99
#define TypeXtMalloc(type)      TypeXtMallocN(type, 1)
 
100
 
94
101
/* use these to allocate partly-structured data */
95
102
#define CastMallocN(type,n)     (type *)malloc(sizeof(type) + (size_t) (n))
96
103
#define CastMalloc(type)        CastMallocN(type,0)
1650
1657
 
1651
1658
        Boolean         awaitInput;     /* select-timeout mode          */
1652
1659
        Boolean         grabbedKbd;     /* keyboard is grabbed          */
 
1660
#if OPT_MAXIMIZE
 
1661
        Boolean         fullscreen;     /* window is fullscreen         */
 
1662
#endif
1653
1663
#ifdef ALLOWLOGGING
1654
1664
        int             logging;        /* logging mode                 */
1655
1665
        int             logfd;          /* file descriptor of log       */
2455
2465
 * These definitions do not depend on whether xterm supports active-icon.
2456
2466
 */
2457
2467
#define VWindow(screen)         WhichVWin(screen)->window
2458
 
#define VShellWindow            XtWindow(SHELL_OF(term))
 
2468
#define VShellWindow(xw)        XtWindow(SHELL_OF(xw))
2459
2469
#define TWindow(screen)         WhichTWin(screen)->window
2460
2470
#define TShellWindow            XtWindow(SHELL_OF(tekWidget))
2461
2471
 
2508
2518
 
2509
2519
#if OPT_TOOLBAR
2510
2520
#define ToolbarHeight(w)        ((resource.toolBar) \
2511
 
                                 ? (term->VT100_TB_INFO(menu_height) \
2512
 
                                  + term->VT100_TB_INFO(menu_border) * 2) \
 
2521
                                 ? ((w)->VT100_TB_INFO(menu_height) \
 
2522
                                  + (w)->VT100_TB_INFO(menu_border) * 2) \
2513
2523
                                 : 0)
2514
2524
#else
2515
2525
#define ToolbarHeight(w) 0
2603
2613
#define TRACE2(p) /*nothing*/
2604
2614
#endif
2605
2615
 
 
2616
/* *INDENT-ON* */
 
2617
 
2606
2618
#endif /* included_ptyx_h */