[Fedora-tools-list] gcc-3.4.2 / FC3 Blow up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I get the following:

/usr/bin/g++ -c -fPIC -g -O0 -DALGODEBUG  -D__EXTENSIONS__
-I/usr/X11R6/include -DHAS_SYS_IOCTL_H -UHAS_SYS_FILIO_H -DHAS_STDINT_H
-DHAS_STRING_H -DHAS_ASM_IOCTL_H -DHAS_SYS_STROPTS_H -DHAS_TIME_H
-DHAS_SYS_WAIT_H -DUNIXHOST -DTHREAD -D_PTHREADS -D_REENTRANT
-D_POSIX_C_SOURCE=199506L  -pipe -D_G_NO_EXTERN_TEMPLATES -funroll-loops
-finline-limit=2750 -pipe -ansi -pedantic -Wimplicit -Wconversion
-Wsign-compare -Wno-long-long -Wreorder -Woverloaded-virtual
-Wsign-promo -DIN_IS_LIBRARY -DDPC_DEBUG -DINTERNAL_UNDEFINED_RELEASE
-DX86 -DLINUX -D_BSD_SOURCE -D_XOPEN_SOURCE   -I../.././include
-I../.././include/libinc -I../.././include/localinc
barcode_alert_resources.c -o barcode_alert_resources.sh
barcode_alert_resources.c:225: internal compiler error: Segmentation
fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccn7ws3l.out file, please attach
this to your bugreport.
make: [barcode_alert_resources.sh] Error 1 (ignored)
g++: barcode_alert_resources.sh: No such file or directory
make: [libmvpbarcode.so.10.0.0] Error 1 (ignored)
Installing ../.././lib/libmvpbarcode.so.10.0.0

And the trace file is as follows:

===[ Begin output file ]===

// /usr/libexec/gcc/i386-redhat-linux/3.4.2/cc1plus -quiet
-I/usr/X11R6/include -I../.././include -I../.././include/libinc
-I../.././include/localinc -D_GNU_SOURCE -DALGODEBUG -D__EXTENSIONS__
-DHAS_SYS_IOCTL_H -UHAS_SYS_FILIO_H -DHAS_STDINT_H -DHAS_STRING_H
-DHAS_ASM_IOCTL_H -DHAS_SYS_STROPTS_H -DHAS_TIME_H -DHAS_SYS_WAIT_H
-DUNIXHOST -DTHREAD -D_PTHREADS -D_REENTRANT -D_POSIX_C_SOURCE=199506L
-D_G_NO_EXTERN_TEMPLATES -DIN_IS_LIBRARY -DDPC_DEBUG
-DINTERNAL_UNDEFINED_RELEASE -DX86 -DLINUX -D_BSD_SOURCE -D_XOPEN_SOURCE
barcode_alert_resources.c -quiet -dumpbase barcode_alert_resources.c
-ansi -auxbase-strip shared/barcode_alert_resources.o -g -O0 -pedantic
-Wimplicit -Wconversion -Wsign-compare -Wno-long-long -Wreorder
-Woverloaded-virtual -Wsign-promo -ansi -fPIC -funroll-loops
-finline-limit=2750 -o - -frandom-seed=0
# 1 "barcode_alert_resources.c"
# 1 "/export/home/ultra-trix/brian/mvp/work/pcb-linux/libs/barcode//"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "barcode_alert_resources.c"






# 1 "barcode_alert_resources.h" 1


# 1 "/usr/X11R6/include/Xm/Xm.h" 1
# 56 "/usr/X11R6/include/Xm/Xm.h"
# 1 "/usr/X11R6/include/X11/Intrinsic.h" 1
# 56 "/usr/X11R6/include/X11/Intrinsic.h"
# 1 "/usr/X11R6/include/X11/Xlib.h" 1
# 52 "/usr/X11R6/include/X11/Xlib.h"
# 1 "/usr/include/sys/types.h" 1 3 4
# 27 "/usr/include/sys/types.h" 3 4
# 1 "/usr/include/features.h" 1 3 4
# 310 "/usr/include/features.h" 3 4
# 1 "/usr/include/sys/cdefs.h" 1 3 4
# 311 "/usr/include/features.h" 2 3 4
# 333 "/usr/include/features.h" 3 4
# 1 "/usr/include/gnu/stubs.h" 1 3 4
# 334 "/usr/include/features.h" 2 3 4
# 28 "/usr/include/sys/types.h" 2 3 4

extern "C" {

# 1 "/usr/include/bits/types.h" 1 3 4
# 28 "/usr/include/bits/types.h" 3 4
# 1 "/usr/include/bits/wordsize.h" 1 3 4
# 29 "/usr/include/bits/types.h" 2 3 4


# 1 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 1 3 4
# 213 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 3 4
typedef unsigned int size_t;
# 32 "/usr/include/bits/types.h" 2 3 4


typedef unsigned char __u_char;
typedef unsigned short int __u_short;
typedef unsigned int __u_int;
typedef unsigned long int __u_long;


typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef signed short int __int16_t;
typedef unsigned short int __uint16_t;
typedef signed int __int32_t;
typedef unsigned int __uint32_t;




__extension__ typedef signed long long int __int64_t;
__extension__ typedef unsigned long long int __uint64_t;







__extension__ typedef long long int __quad_t;
__extension__ typedef unsigned long long int __u_quad_t;
# 129 "/usr/include/bits/types.h" 3 4
# 1 "/usr/include/bits/typesizes.h" 1 3 4
# 130 "/usr/include/bits/types.h" 2 3 4






__extension__ typedef __u_quad_t __dev_t;
__extension__ typedef unsigned int __uid_t;
__extension__ typedef unsigned int __gid_t;
__extension__ typedef unsigned long int __ino_t;
__extension__ typedef __u_quad_t __ino64_t;
__extension__ typedef unsigned int __mode_t;
__extension__ typedef unsigned int __nlink_t;
__extension__ typedef long int __off_t;
__extension__ typedef __quad_t __off64_t;
__extension__ typedef int __pid_t;
__extension__ typedef struct { int __val[2]; } __fsid_t;
__extension__ typedef long int __clock_t;
__extension__ typedef unsigned long int __rlim_t;
__extension__ typedef __u_quad_t __rlim64_t;
__extension__ typedef unsigned int __id_t;
__extension__ typedef long int __time_t;
__extension__ typedef unsigned int __useconds_t;
__extension__ typedef long int __suseconds_t;

__extension__ typedef int __daddr_t;
__extension__ typedef long int __swblk_t;
__extension__ typedef int __key_t;


__extension__ typedef int __clockid_t;


__extension__ typedef int __timer_t;


__extension__ typedef long int __blksize_t;




__extension__ typedef long int __blkcnt_t;
__extension__ typedef __quad_t __blkcnt64_t;


__extension__ typedef unsigned long int __fsblkcnt_t;
__extension__ typedef __u_quad_t __fsblkcnt64_t;


__extension__ typedef unsigned long int __fsfilcnt_t;
__extension__ typedef __u_quad_t __fsfilcnt64_t;

__extension__ typedef int __ssize_t;



typedef __off64_t __loff_t;
typedef __quad_t *__qaddr_t;
typedef char *__caddr_t;


__extension__ typedef int __intptr_t;


__extension__ typedef unsigned int __socklen_t;
# 32 "/usr/include/sys/types.h" 2 3 4



typedef __u_char u_char;
typedef __u_short u_short;
typedef __u_int u_int;
typedef __u_long u_long;
typedef __quad_t quad_t;
typedef __u_quad_t u_quad_t;
typedef __fsid_t fsid_t;




typedef __loff_t loff_t;



typedef __ino_t ino_t;






typedef __ino64_t ino64_t;




typedef __dev_t dev_t;




typedef __gid_t gid_t;




typedef __mode_t mode_t;




typedef __nlink_t nlink_t;




typedef __uid_t uid_t;





typedef __off_t off_t;






typedef __off64_t off64_t;




typedef __pid_t pid_t;




typedef __id_t id_t;




typedef __ssize_t ssize_t;





typedef __daddr_t daddr_t;
typedef __caddr_t caddr_t;





typedef __key_t key_t;
# 133 "/usr/include/sys/types.h" 3 4
# 1 "/usr/include/time.h" 1 3 4
# 58 "/usr/include/time.h" 3 4


typedef __clock_t clock_t;



# 74 "/usr/include/time.h" 3 4


typedef __time_t time_t;



# 92 "/usr/include/time.h" 3 4
typedef __clockid_t clockid_t;
# 104 "/usr/include/time.h" 3 4
typedef __timer_t timer_t;
# 134 "/usr/include/sys/types.h" 2 3 4



typedef __useconds_t useconds_t;



typedef __suseconds_t suseconds_t;





# 1 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 1 3 4
# 148 "/usr/include/sys/types.h" 2 3 4



typedef unsigned long int ulong;
typedef unsigned short int ushort;
typedef unsigned int uint;
# 191 "/usr/include/sys/types.h" 3 4
typedef int int8_t __attribute__ ((__mode__ (__QI__)));
typedef int int16_t __attribute__ ((__mode__ (__HI__)));
typedef int int32_t __attribute__ ((__mode__ (__SI__)));
typedef int int64_t __attribute__ ((__mode__ (__DI__)));


typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));

typedef int register_t __attribute__ ((__mode__ (__word__)));
# 213 "/usr/include/sys/types.h" 3 4
# 1 "/usr/include/endian.h" 1 3 4
# 37 "/usr/include/endian.h" 3 4
# 1 "/usr/include/bits/endian.h" 1 3 4
# 38 "/usr/include/endian.h" 2 3 4
# 214 "/usr/include/sys/types.h" 2 3 4


# 1 "/usr/include/sys/select.h" 1 3 4
# 31 "/usr/include/sys/select.h" 3 4
# 1 "/usr/include/bits/select.h" 1 3 4
# 32 "/usr/include/sys/select.h" 2 3 4


# 1 "/usr/include/bits/sigset.h" 1 3 4
# 23 "/usr/include/bits/sigset.h" 3 4
typedef int __sig_atomic_t;




typedef struct
  {
    unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
  } __sigset_t;
# 35 "/usr/include/sys/select.h" 2 3 4



typedef __sigset_t sigset_t;





# 1 "/usr/include/time.h" 1 3 4
# 118 "/usr/include/time.h" 3 4
struct timespec
  {
    __time_t tv_sec;
    long int tv_nsec;
  };
# 45 "/usr/include/sys/select.h" 2 3 4

# 1 "/usr/include/bits/time.h" 1 3 4
# 69 "/usr/include/bits/time.h" 3 4
struct timeval
  {
    __time_t tv_sec;
    __suseconds_t tv_usec;
  };
# 47 "/usr/include/sys/select.h" 2 3 4
# 55 "/usr/include/sys/select.h" 3 4
typedef long int __fd_mask;
# 67 "/usr/include/sys/select.h" 3 4
typedef struct
  {



    __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))];





  } fd_set;






typedef __fd_mask fd_mask;
# 99 "/usr/include/sys/select.h" 3 4
extern "C" {
# 109 "/usr/include/sys/select.h" 3 4
extern int select (int __nfds, fd_set *__restrict __readfds,
     fd_set *__restrict __writefds,
     fd_set *__restrict __exceptfds,
     struct timeval *__restrict __timeout);
# 121 "/usr/include/sys/select.h" 3 4
extern int pselect (int __nfds, fd_set *__restrict __readfds,
      fd_set *__restrict __writefds,
      fd_set *__restrict __exceptfds,
      const struct timespec *__restrict __timeout,
      const __sigset_t *__restrict __sigmask);


}
# 217 "/usr/include/sys/types.h" 2 3 4


# 1 "/usr/include/sys/sysmacros.h" 1 3 4
# 29 "/usr/include/sys/sysmacros.h" 3 4
__extension__
extern __inline unsigned int gnu_dev_major (unsigned long long int
__dev)
     throw ();
__extension__
extern __inline unsigned int gnu_dev_minor (unsigned long long int
__dev)
     throw ();
__extension__
extern __inline unsigned long long int gnu_dev_makedev (unsigned int
__major,
       unsigned int __minor)
     throw ();


__extension__ extern __inline unsigned int
gnu_dev_major (unsigned long long int __dev) throw ()
{
  return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) &
~0xfff);
}

__extension__ extern __inline unsigned int
gnu_dev_minor (unsigned long long int __dev) throw ()
{
  return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
}

__extension__ extern __inline unsigned long long int
gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw ()
{
  return ((__minor & 0xff) | ((__major & 0xfff) << 8)
   | (((unsigned long long int) (__minor & ~0xff)) << 12)
   | (((unsigned long long int) (__major & ~0xfff)) << 32));
}
# 220 "/usr/include/sys/types.h" 2 3 4




typedef __blksize_t blksize_t;






typedef __blkcnt_t blkcnt_t;



typedef __fsblkcnt_t fsblkcnt_t;



typedef __fsfilcnt_t fsfilcnt_t;
# 258 "/usr/include/sys/types.h" 3 4
typedef __blkcnt64_t blkcnt64_t;
typedef __fsblkcnt64_t fsblkcnt64_t;
typedef __fsfilcnt64_t fsfilcnt64_t;





# 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
# 23 "/usr/include/bits/pthreadtypes.h" 3 4
# 1 "/usr/include/bits/sched.h" 1 3 4
# 83 "/usr/include/bits/sched.h" 3 4
struct __sched_param
  {
    int __sched_priority;
  };
# 24 "/usr/include/bits/pthreadtypes.h" 2 3 4


struct _pthread_fastlock
{
  long int __status;
  int __spinlock;

};



typedef struct _pthread_descr_struct *_pthread_descr;





typedef struct __pthread_attr_s
{
  int __detachstate;
  int __schedpolicy;
  struct __sched_param __schedparam;
  int __inheritsched;
  int __scope;
  size_t __guardsize;
  int __stackaddr_set;
  void *__stackaddr;
  size_t __stacksize;
} pthread_attr_t;





__extension__ typedef long long __pthread_cond_align_t;




typedef struct
{
  struct _pthread_fastlock __c_lock;
  _pthread_descr __c_waiting;
  char __padding[48 - sizeof (struct _pthread_fastlock)
   - sizeof (_pthread_descr) - sizeof (__pthread_cond_align_t)];
  __pthread_cond_align_t __align;
} pthread_cond_t;



typedef struct
{
  int __dummy;
} pthread_condattr_t;


typedef unsigned int pthread_key_t;





typedef struct
{
  int __m_reserved;
  int __m_count;
  _pthread_descr __m_owner;
  int __m_kind;
  struct _pthread_fastlock __m_lock;
} pthread_mutex_t;



typedef struct
{
  int __mutexkind;
} pthread_mutexattr_t;



typedef int pthread_once_t;




typedef struct _pthread_rwlock_t
{
  struct _pthread_fastlock __rw_lock;
  int __rw_readers;
  _pthread_descr __rw_writer;
  _pthread_descr __rw_read_waiting;
  _pthread_descr __rw_write_waiting;
  int __rw_kind;
  int __rw_pshared;
} pthread_rwlock_t;



typedef struct
{
  int __lockkind;
  int __pshared;
} pthread_rwlockattr_t;




typedef volatile int pthread_spinlock_t;


typedef struct {
  struct _pthread_fastlock __ba_lock;
  int __ba_required;
  int __ba_present;
  _pthread_descr __ba_waiting;
} pthread_barrier_t;


typedef struct {
  int __pshared;
} pthread_barrierattr_t;





typedef unsigned long int pthread_t;
# 267 "/usr/include/sys/types.h" 2 3 4


}
# 53 "/usr/X11R6/include/X11/Xlib.h" 2







# 1 "/usr/X11R6/include/X11/X.h" 1
# 71 "/usr/X11R6/include/X11/X.h"
typedef unsigned long XID;



typedef unsigned long Mask;



typedef unsigned long Atom;

typedef unsigned long VisualID;
typedef unsigned long Time;
# 101 "/usr/X11R6/include/X11/X.h"
typedef XID Window;
typedef XID Drawable;


typedef XID Font;

typedef XID Pixmap;
typedef XID Cursor;
typedef XID Colormap;
typedef XID GContext;
typedef XID KeySym;

typedef unsigned char KeyCode;
# 61 "/usr/X11R6/include/X11/Xlib.h" 2


# 1 "/usr/X11R6/include/X11/Xfuncproto.h" 1
# 64 "/usr/X11R6/include/X11/Xlib.h" 2
# 1 "/usr/X11R6/include/X11/Xosdefs.h" 1
# 65 "/usr/X11R6/include/X11/Xlib.h" 2
# 77 "/usr/X11R6/include/X11/Xlib.h"
# 1 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 1 3 4
# 151 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 3 4
typedef int ptrdiff_t;
# 78 "/usr/X11R6/include/X11/Xlib.h" 2
# 95 "/usr/X11R6/include/X11/Xlib.h"
extern int
_Xmblen(




    char *str,
    int len

    );





typedef char *XPointer;
# 182 "/usr/X11R6/include/X11/Xlib.h"
typedef struct _XExtData {
 int number;
 struct _XExtData *next;
 int (*free_private)(
 struct _XExtData *extension
 );
 XPointer private_data;
} XExtData;




typedef struct {
 int extension;
 int major_opcode;
 int first_event;
 int first_error;
} XExtCodes;





typedef struct {
    int depth;
    int bits_per_pixel;
    int scanline_pad;
} XPixmapFormatValues;





typedef struct {
 int function;
 unsigned long plane_mask;
 unsigned long foreground;
 unsigned long background;
 int line_width;
 int line_style;
 int cap_style;

 int join_style;
 int fill_style;

 int fill_rule;
 int arc_mode;
 Pixmap tile;
 Pixmap stipple;
 int ts_x_origin;
 int ts_y_origin;
        Font font;
 int subwindow_mode;
 int graphics_exposures;
 int clip_x_origin;
 int clip_y_origin;
 Pixmap clip_mask;
 int dash_offset;
 char dashes;
} XGCValues;






typedef struct _XGC







*GC;




typedef struct {
 XExtData *ext_data;
 VisualID visualid;

 int c_class;



 unsigned long red_mask, green_mask, blue_mask;
 int bits_per_rgb;
 int map_entries;
} Visual;




typedef struct {
 int depth;
 int nvisuals;
 Visual *visuals;
} Depth;







struct _XDisplay;

typedef struct {
 XExtData *ext_data;
 struct _XDisplay *display;
 Window root;
 int width, height;
 int mwidth, mheight;
 int ndepths;
 Depth *depths;
 int root_depth;
 Visual *root_visual;
 GC default_gc;
 Colormap cmap;
 unsigned long white_pixel;
 unsigned long black_pixel;
 int max_maps, min_maps;
 int backing_store;
 int save_unders;
 long root_input_mask;
} Screen;




typedef struct {
 XExtData *ext_data;
 int depth;
 int bits_per_pixel;
 int scanline_pad;
} ScreenFormat;




typedef struct {
    Pixmap background_pixmap;
    unsigned long background_pixel;
    Pixmap border_pixmap;
    unsigned long border_pixel;
    int bit_gravity;
    int win_gravity;
    int backing_store;
    unsigned long backing_planes;
    unsigned long backing_pixel;
    int save_under;
    long event_mask;
    long do_not_propagate_mask;
    int override_redirect;
    Colormap colormap;
    Cursor cursor;
} XSetWindowAttributes;

typedef struct {
    int x, y;
    int width, height;
    int border_width;
    int depth;
    Visual *visual;
    Window root;

    int c_class;



    int bit_gravity;
    int win_gravity;
    int backing_store;
    unsigned long backing_planes;
    unsigned long backing_pixel;
    int save_under;
    Colormap colormap;
    int map_installed;
    int map_state;
    long all_event_masks;
    long your_event_mask;
    long do_not_propagate_mask;
    int override_redirect;
    Screen *screen;
} XWindowAttributes;






typedef struct {
 int family;
 int length;
 char *address;
} XHostAddress;




typedef struct {
 int typelength;
 int valuelength;
 char *type;
 char *value;
} XServerInterpretedAddress;




typedef struct _XImage {
    int width, height;
    int xoffset;
    int format;
    char *data;
    int byte_order;
    int bitmap_unit;
    int bitmap_bit_order;
    int bitmap_pad;
    int depth;
    int bytes_per_line;
    int bits_per_pixel;
    unsigned long red_mask;
    unsigned long green_mask;
    unsigned long blue_mask;
    XPointer obdata;
    struct funcs {
 struct _XImage *(*create_image)(
  struct _XDisplay* ,
  Visual* ,
  unsigned int ,
  int ,
  int ,
  char* ,
  unsigned int ,
  unsigned int ,
  int ,
  int );
 int (*destroy_image) (struct _XImage *);
 unsigned long (*get_pixel) (struct _XImage *, int, int);
 int (*put_pixel) (struct _XImage *, int, int, unsigned long);
 struct _XImage *(*sub_image)(struct _XImage *, int, int, unsigned int,
unsigned int);
 int (*add_pixel) (struct _XImage *, long);
 } f;
} XImage;




typedef struct {
    int x, y;
    int width, height;
    int border_width;
    Window sibling;
    int stack_mode;
} XWindowChanges;




typedef struct {
 unsigned long pixel;
 unsigned short red, green, blue;
 char flags;
 char pad;
} XColor;






typedef struct {
    short x1, y1, x2, y2;
} XSegment;

typedef struct {
    short x, y;
} XPoint;

typedef struct {
    short x, y;
    unsigned short width, height;
} XRectangle;

typedef struct {
    short x, y;
    unsigned short width, height;
    short angle1, angle2;
} XArc;




typedef struct {
        int key_click_percent;
        int bell_percent;
        int bell_pitch;
        int bell_duration;
        int led;
        int led_mode;
        int key;
        int auto_repeat_mode;
} XKeyboardControl;



typedef struct {
        int key_click_percent;
 int bell_percent;
 unsigned int bell_pitch, bell_duration;
 unsigned long led_mask;
 int global_auto_repeat;
 char auto_repeats[32];
} XKeyboardState;



typedef struct {
        Time time;
 short x, y;
} XTimeCoord;



typedef struct {
  int max_keypermod;
  KeyCode *modifiermap;
} XModifierKeymap;
# 521 "/usr/X11R6/include/X11/Xlib.h"
typedef struct _XDisplay Display;


struct _XPrivate;
struct _XrmHashBucketRec;

typedef struct



{
 XExtData *ext_data;
 struct _XPrivate *private1;
 int fd;
 int private2;
 int proto_major_version;
 int proto_minor_version;
 char *vendor;
        XID private3;
 XID private4;
 XID private5;
 int private6;
 XID (*resource_alloc)(
  struct _XDisplay*
 );
 int byte_order;
 int bitmap_unit;
 int bitmap_pad;
 int bitmap_bit_order;
 int nformats;
 ScreenFormat *pixmap_format;
 int private8;
 int release;
 struct _XPrivate *private9, *private10;
 int qlen;
 unsigned long last_request_read;
 unsigned long request;
 XPointer private11;
 XPointer private12;
 XPointer private13;
 XPointer private14;
 unsigned max_request_size;
 struct _XrmHashBucketRec *db;
 int (*private15)(
  struct _XDisplay*
  );
 char *display_name;
 int default_screen;
 int nscreens;
 Screen *screens;
 unsigned long motion_buffer;
 unsigned long private16;
 int min_keycode;
 int max_keycode;
 XPointer private17;
 XPointer private18;
 int private19;
 char *xdefaults;

}



*_XPrivDisplay;






typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 Window root;
 Window subwindow;
 Time time;
 int x, y;
 int x_root, y_root;
 unsigned int state;
 unsigned int keycode;
 int same_screen;
} XKeyEvent;
typedef XKeyEvent XKeyPressedEvent;
typedef XKeyEvent XKeyReleasedEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 Window root;
 Window subwindow;
 Time time;
 int x, y;
 int x_root, y_root;
 unsigned int state;
 unsigned int button;
 int same_screen;
} XButtonEvent;
typedef XButtonEvent XButtonPressedEvent;
typedef XButtonEvent XButtonReleasedEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 Window root;
 Window subwindow;
 Time time;
 int x, y;
 int x_root, y_root;
 unsigned int state;
 char is_hint;
 int same_screen;
} XMotionEvent;
typedef XMotionEvent XPointerMovedEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 Window root;
 Window subwindow;
 Time time;
 int x, y;
 int x_root, y_root;
 int mode;
 int detail;




 int same_screen;
 int focus;
 unsigned int state;
} XCrossingEvent;
typedef XCrossingEvent XEnterWindowEvent;
typedef XCrossingEvent XLeaveWindowEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 int mode;
 int detail;





} XFocusChangeEvent;
typedef XFocusChangeEvent XFocusInEvent;
typedef XFocusChangeEvent XFocusOutEvent;


typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 char key_vector[32];
} XKeymapEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 int x, y;
 int width, height;
 int count;
} XExposeEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Drawable drawable;
 int x, y;
 int width, height;
 int count;
 int major_code;
 int minor_code;
} XGraphicsExposeEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Drawable drawable;
 int major_code;
 int minor_code;
} XNoExposeEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 int state;
} XVisibilityEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window parent;
 Window window;
 int x, y;
 int width, height;
 int border_width;
 int override_redirect;
} XCreateWindowEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window event;
 Window window;
} XDestroyWindowEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window event;
 Window window;
 int from_configure;
} XUnmapEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window event;
 Window window;
 int override_redirect;
} XMapEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window parent;
 Window window;
} XMapRequestEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window event;
 Window window;
 Window parent;
 int x, y;
 int override_redirect;
} XReparentEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window event;
 Window window;
 int x, y;
 int width, height;
 int border_width;
 Window above;
 int override_redirect;
} XConfigureEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window event;
 Window window;
 int x, y;
} XGravityEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 int width, height;
} XResizeRequestEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window parent;
 Window window;
 int x, y;
 int width, height;
 int border_width;
 Window above;
 int detail;
 unsigned long value_mask;
} XConfigureRequestEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window event;
 Window window;
 int place;
} XCirculateEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window parent;
 Window window;
 int place;
} XCirculateRequestEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 Atom atom;
 Time time;
 int state;
} XPropertyEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 Atom selection;
 Time time;
} XSelectionClearEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window owner;
 Window requestor;
 Atom selection;
 Atom target;
 Atom property;
 Time time;
} XSelectionRequestEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window requestor;
 Atom selection;
 Atom target;
 Atom property;
 Time time;
} XSelectionEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 Colormap colormap;

 int c_new;



 int state;
} XColormapEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 Atom message_type;
 int format;
 union {
  char b[20];
  short s[10];
  long l[5];
  } data;
} XClientMessageEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
 int request;

 int first_keycode;
 int count;
} XMappingEvent;

typedef struct {
 int type;
 Display *display;
 XID resourceid;
 unsigned long serial;
 unsigned char error_code;
 unsigned char request_code;
 unsigned char minor_code;
} XErrorEvent;

typedef struct {
 int type;
 unsigned long serial;
 int send_event;
 Display *display;
 Window window;
} XAnyEvent;





typedef union _XEvent {
        int type;
 XAnyEvent xany;
 XKeyEvent xkey;
 XButtonEvent xbutton;
 XMotionEvent xmotion;
 XCrossingEvent xcrossing;
 XFocusChangeEvent xfocus;
 XExposeEvent xexpose;
 XGraphicsExposeEvent xgraphicsexpose;
 XNoExposeEvent xnoexpose;
 XVisibilityEvent xvisibility;
 XCreateWindowEvent xcreatewindow;
 XDestroyWindowEvent xdestroywindow;
 XUnmapEvent xunmap;
 XMapEvent xmap;
 XMapRequestEvent xmaprequest;
 XReparentEvent xreparent;
 XConfigureEvent xconfigure;
 XGravityEvent xgravity;
 XResizeRequestEvent xresizerequest;
 XConfigureRequestEvent xconfigurerequest;
 XCirculateEvent xcirculate;
 XCirculateRequestEvent xcirculaterequest;
 XPropertyEvent xproperty;
 XSelectionClearEvent xselectionclear;
 XSelectionRequestEvent xselectionrequest;
 XSelectionEvent xselection;
 XColormapEvent xcolormap;
 XClientMessageEvent xclient;
 XMappingEvent xmapping;
 XErrorEvent xerror;
 XKeymapEvent xkeymap;
 long pad[24];
} XEvent;







typedef struct {
    short lbearing;
    short rbearing;
    short width;
    short ascent;
    short descent;
    unsigned short attributes;
} XCharStruct;





typedef struct {
    Atom name;
    unsigned long card32;
} XFontProp;

typedef struct {
    XExtData *ext_data;
    Font fid;
    unsigned direction;
    unsigned min_char_or_byte2;
    unsigned max_char_or_byte2;
    unsigned min_byte1;
    unsigned max_byte1;
    int all_chars_exist;
    unsigned default_char;
    int n_properties;
    XFontProp *properties;
    XCharStruct min_bounds;
    XCharStruct max_bounds;
    XCharStruct *per_char;
    int ascent;
    int descent;
} XFontStruct;




typedef struct {
    char *chars;
    int nchars;
    int delta;
    Font font;
} XTextItem;

typedef struct {
    unsigned char byte1;
    unsigned char byte2;
} XChar2b;

typedef struct {
    XChar2b *chars;
    int nchars;
    int delta;
    Font font;
} XTextItem16;


typedef union { Display *display;
  GC gc;
  Visual *visual;
  Screen *screen;
  ScreenFormat *pixmap_format;
  XFontStruct *font; } XEDataObject;

typedef struct {
    XRectangle max_ink_extent;
    XRectangle max_logical_extent;
} XFontSetExtents;





typedef struct _XOM *XOM;
typedef struct _XOC *XOC, *XFontSet;

typedef struct {
    char *chars;
    int nchars;
    int delta;
    XFontSet font_set;
} XmbTextItem;

typedef struct {
    wchar_t *chars;
    int nchars;
    int delta;
    XFontSet font_set;
} XwcTextItem;
# 1125 "/usr/X11R6/include/X11/Xlib.h"
typedef struct {
    int charset_count;
    char **charset_list;
} XOMCharSetList;

typedef enum {
    XOMOrientation_LTR_TTB,
    XOMOrientation_RTL_TTB,
    XOMOrientation_TTB_LTR,
    XOMOrientation_TTB_RTL,
    XOMOrientation_Context
} XOrientation;

typedef struct {
    int num_orientation;
    XOrientation *orientation;
} XOMOrientation;

typedef struct {
    int num_font;
    XFontStruct **font_struct_list;
    char **font_name_list;
} XOMFontInfo;

typedef struct _XIM *XIM;
typedef struct _XIC *XIC;

typedef void (*XIMProc)(
    XIM,
    XPointer,
    XPointer
);

typedef int (*XICProc)(
    XIC,
    XPointer,
    XPointer
);

typedef void (*XIDProc)(
    Display*,
    XPointer,
    XPointer
);

typedef unsigned long XIMStyle;

typedef struct {
    unsigned short count_styles;
    XIMStyle *supported_styles;
} XIMStyles;
# 1237 "/usr/X11R6/include/X11/Xlib.h"
typedef void *XVaNestedList;

typedef struct {
    XPointer client_data;
    XIMProc callback;
} XIMCallback;

typedef struct {
    XPointer client_data;
    XICProc callback;
} XICCallback;

typedef unsigned long XIMFeedback;
# 1261 "/usr/X11R6/include/X11/Xlib.h"
typedef struct _XIMText {
    unsigned short length;
    XIMFeedback *feedback;
    int encoding_is_wchar;
    union {
 char *multi_byte;
 wchar_t *wide_char;
    } string;
} XIMText;

typedef unsigned long XIMPreeditState;





typedef struct _XIMPreeditStateNotifyCallbackStruct {
    XIMPreeditState state;
} XIMPreeditStateNotifyCallbackStruct;

typedef unsigned long XIMResetState;




typedef unsigned long XIMStringConversionFeedback;
# 1295 "/usr/X11R6/include/X11/Xlib.h"
typedef struct _XIMStringConversionText {
    unsigned short length;
    XIMStringConversionFeedback *feedback;
    int encoding_is_wchar;
    union {
 char *mbs;
 wchar_t *wcs;
    } string;
} XIMStringConversionText;

typedef unsigned short XIMStringConversionPosition;

typedef unsigned short XIMStringConversionType;






typedef unsigned short XIMStringConversionOperation;




typedef enum {
    XIMForwardChar, XIMBackwardChar,
    XIMForwardWord, XIMBackwardWord,
    XIMCaretUp, XIMCaretDown,
    XIMNextLine, XIMPreviousLine,
    XIMLineStart, XIMLineEnd,
    XIMAbsolutePosition,
    XIMDontChange
} XIMCaretDirection;

typedef struct _XIMStringConversionCallbackStruct {
    XIMStringConversionPosition position;
    XIMCaretDirection direction;
    XIMStringConversionOperation operation;
    unsigned short factor;
    XIMStringConversionText *text;
} XIMStringConversionCallbackStruct;

typedef struct _XIMPreeditDrawCallbackStruct {
    int caret;
    int chg_first;
    int chg_length;
    XIMText *text;
} XIMPreeditDrawCallbackStruct;

typedef enum {
    XIMIsInvisible,
    XIMIsPrimary,
    XIMIsSecondary
} XIMCaretStyle;

typedef struct _XIMPreeditCaretCallbackStruct {
    int position;
    XIMCaretDirection direction;
    XIMCaretStyle style;
} XIMPreeditCaretCallbackStruct;

typedef enum {
    XIMTextType,
    XIMBitmapType
} XIMStatusDataType;

typedef struct _XIMStatusDrawCallbackStruct {
    XIMStatusDataType type;
    union {
 XIMText *text;
 Pixmap bitmap;
    } data;
} XIMStatusDrawCallbackStruct;

typedef struct _XIMHotKeyTrigger {
    KeySym keysym;
    int modifier;
    int modifier_mask;
} XIMHotKeyTrigger;

typedef struct _XIMHotKeyTriggers {
    int num_hot_key;
    XIMHotKeyTrigger *key;
} XIMHotKeyTriggers;

typedef unsigned long XIMHotKeyState;




typedef struct {
    unsigned short count_values;
    char **supported_values;
} XIMValuesList;

extern "C" {





extern int _Xdebug;

extern XFontStruct *XLoadQueryFont(
    Display* ,
    const char*
);

extern XFontStruct *XQueryFont(
    Display* ,
    XID
);


extern XTimeCoord *XGetMotionEvents(
    Display* ,
    Window ,
    Time ,
    Time ,
    int*
);

extern XModifierKeymap *XDeleteModifiermapEntry(
    XModifierKeymap* ,

    unsigned int ,



    int
);

extern XModifierKeymap *XGetModifierMapping(
    Display*
);

extern XModifierKeymap *XInsertModifiermapEntry(
    XModifierKeymap* ,

    unsigned int ,



    int
);

extern XModifierKeymap *XNewModifiermap(
    int
);

extern XImage *XCreateImage(
    Display* ,
    Visual* ,
    unsigned int ,
    int ,
    int ,
    char* ,
    unsigned int ,
    unsigned int ,
    int ,
    int
);
extern int XInitImage(
    XImage*
);
extern XImage *XGetImage(
    Display* ,
    Drawable ,
    int ,
    int ,
    unsigned int ,
    unsigned int ,
    unsigned long ,
    int
);
extern XImage *XGetSubImage(
    Display* ,
    Drawable ,
    int ,
    int ,
    unsigned int ,
    unsigned int ,
    unsigned long ,
    int ,
    XImage* ,
    int ,
    int
);




extern Display *XOpenDisplay(
    const char*
);

extern void XrmInitialize(
    void
);

extern char *XFetchBytes(
    Display* ,
    int*
);
extern char *XFetchBuffer(
    Display* ,
    int* ,
    int
);
extern char *XGetAtomName(
    Display* ,
    Atom
);
extern int XGetAtomNames(
    Display* ,
    Atom* ,
    int ,
    char**
);
extern char *XGetDefault(
    Display* ,
    const char* ,
    const char*
);
extern char *XDisplayName(
    const char*
);
extern char *XKeysymToString(
    KeySym
);

extern int (*XSynchronize(
    Display* ,
    int
))(
    Display*
);
extern int (*XSetAfterFunction(
    Display* ,
    int (*) (
      Display*
            )
))(
    Display*
);
extern Atom XInternAtom(
    Display* ,
    const char* ,
    int
);
extern int XInternAtoms(
    Display* ,
    char** ,
    int ,
    int ,
    Atom*
);
extern Colormap XCopyColormapAndFree(
    Display* ,
    Colormap
);
extern Colormap XCreateColormap(
    Display* ,
    Window ,
    Visual* ,
    int
);
extern Cursor XCreatePixmapCursor(
    Display* ,
    Pixmap ,
    Pixmap ,
    XColor* ,
    XColor* ,
    unsigned int ,
    unsigned int
);
extern Cursor XCreateGlyphCursor(
    Display* ,
    Font ,
    Font ,
    unsigned int ,
    unsigned int ,
    XColor const * ,
    XColor const *
);
extern Cursor XCreateFontCursor(
    Display* ,
    unsigned int
);
extern Font XLoadFont(
    Display* ,
    const char*
);
extern GC XCreateGC(
    Display* ,
    Drawable ,
    unsigned long ,
    XGCValues*
);
extern GContext XGContextFromGC(
    GC
);
extern void XFlushGC(
    Display* ,
    GC
);
extern Pixmap XCreatePixmap(
    Display* ,
    Drawable ,
    unsigned int ,
    unsigned int ,
    unsigned int
);
extern Pixmap XCreateBitmapFromData(
    Display* ,
    Drawable ,
    const char* ,
    unsigned int ,
    unsigned int
);
extern Pixmap XCreatePixmapFromBitmapData(
    Display* ,
    Drawable ,
    char* ,
    unsigned int ,
    unsigned int ,
    unsigned long ,
    unsigned long ,
    unsigned int
);
extern Window XCreateSimpleWindow(
    Display* ,
    Window ,
    int ,
    int ,
    unsigned int ,
    unsigned int ,
    unsigned int ,
    unsigned long ,
    unsigned long
);
extern Window XGetSelectionOwner(
    Display* ,
    Atom
);
extern Window XCreateWindow(
    Display* ,
    Window ,
    int ,
    int ,
    unsigned int ,
    unsigned int ,
    unsigned int ,
    int ,
    unsigned int ,
    Visual* ,
    unsigned long ,
    XSetWindowAttributes*
);
extern Colormap *XListInstalledColormaps(
    Display* ,
    Window ,
    int*
);
extern char **XListFonts(
    Display* ,
    const char* ,
    int ,
    int*
);
extern char **XListFontsWithInfo(
    Display* ,
    const char* ,
    int ,
    int* ,
    XFontStruct**
);
extern char **XGetFontPath(
    Display* ,
    int*
);
extern char **XListExtensions(
    Display* ,
    int*
);
extern Atom *XListProperties(
    Display* ,
    Window ,
    int*
);
extern XHostAddress *XListHosts(
    Display* ,
    int* ,
    int*
);
extern KeySym XKeycodeToKeysym(
    Display* ,

    unsigned int ,



    int
);
extern KeySym XLookupKeysym(
    XKeyEvent* ,
    int
);
extern KeySym *XGetKeyboardMapping(
    Display* ,

    unsigned int ,



    int ,
    int*
);
extern KeySym XStringToKeysym(
    const char*
);
extern long XMaxRequestSize(
    Display*
);
extern long XExtendedMaxRequestSize(
    Display*
);
extern char *XResourceManagerString(
    Display*
);
extern char *XScreenResourceString(
 Screen*
);
extern unsigned long XDisplayMotionBufferSize(
    Display*
);
extern VisualID XVisualIDFromVisual(
    Visual*
);



extern int XInitThreads(
    void
);

extern void XLockDisplay(
    Display*
);

extern void XUnlockDisplay(
    Display*
);



extern XExtCodes *XInitExtension(
    Display* ,
    const char*
);

extern XExtCodes *XAddExtension(
    Display*
);
extern XExtData *XFindOnExtensionList(
    XExtData** ,
    int
);
extern XExtData **XEHeadOfExtensionList(
    XEDataObject
);


extern Window XRootWindow(
    Display* ,
    int
);
extern Window XDefaultRootWindow(
    Display*
);
extern Window XRootWindowOfScreen(
    Screen*
);
extern Visual *XDefaultVisual(
    Display* ,
    int
);
extern Visual *XDefaultVisualOfScreen(
    Screen*
);
extern GC XDefaultGC(
    Display* ,
    int
);
extern GC XDefaultGCOfScreen(
    Screen*
);
extern unsigned long XBlackPixel(
    Display* ,
    int
);
extern unsigned long XWhitePixel(
    Display* ,
    int
);
extern unsigned long XAllPlanes(
    void
);
extern unsigned long XBlackPixelOfScreen(
    Screen*
);
extern unsigned long XWhitePixelOfScreen(
    Screen*
);
extern unsigned long XNextRequest(
    Display*
);
extern unsigned long XLastKnownRequestProcessed(
    Display*
);
extern char *XServerVendor(
    Display*
);
extern char *XDisplayString(
    Display*
);
extern Colormap XDefaultColormap(
    Display* ,
    int
);
extern Colormap XDefaultColormapOfScreen(
    Screen*
);
extern Display *XDisplayOfScreen(
    Screen*
);
extern Screen *XScreenOfDisplay(
    Display* ,
    int
);
extern Screen *XDefaultScreenOfDisplay(
    Display*
);
extern long XEventMaskOfScreen(
    Screen*
);

extern int XScreenNumberOfScreen(
    Screen*
);

typedef int (*XErrorHandler) (
    Display* ,
    XErrorEvent*
);

extern XErrorHandler XSetErrorHandler (
    XErrorHandler
);


typedef int (*XIOErrorHandler) (
    Display*
);

extern XIOErrorHandler XSetIOErrorHandler (
    XIOErrorHandler
);


extern XPixmapFormatValues *XListPixmapFormats(
    Display* ,
    int*
);
extern int *XListDepths(
    Display* ,
    int ,
    int*
);



extern int XReconfigureWMWindow(
    Display* ,
    Window ,
    int ,
    unsigned int ,
    XWindowChanges*
);

extern int XGetWMProtocols(
    Display* ,
    Window ,
    Atom** ,
    int*
);
extern int XSetWMProtocols(
    Display* ,
    Window ,
    Atom* ,
    int
);
extern int XIconifyWindow(
    Display* ,
    Window ,
    int
);
extern int XWithdrawWindow(
    Display* ,
    Window ,
    int
);
extern int XGetCommand(
    Display* ,
    Window ,
    char*** ,
    int*
);
extern int XGetWMColormapWindows(
    Display* ,
    Window ,
    Window** ,
    int*
);
extern int XSetWMColormapWindows(
    Display* ,
    Window ,
    Window* ,
    int
);
extern void XFreeStringList(
    char**
);
extern int XSetTransientForHint(
    Display* ,
    Window ,
    Window
);



extern int XActivateScreenSaver(
    Display*
);

extern int XAddHost(
    Display* ,
    XHostAddress*
);

extern int XAddHosts(
    Display* ,
    XHostAddress* ,
    int
);

extern int XAddToExtensionList(
    struct _XExtData** ,
    XExtData*
);

extern int XAddToSaveSet(
    Display* ,
    Window
);

extern int XAllocColor(
    Display* ,
    Colormap ,
    XColor*
);

extern int XAllocColorCells(
    Display* ,
    Colormap ,
    int ,
    unsigned long* ,
    unsigned int ,
    unsigned long* ,
    unsigned int
);

extern int XAllocColorPlanes(
    Display* ,
    Colormap ,
    int ,
    unsigned long* ,
    int ,
    int ,
    int ,
    int ,
    unsigned long* ,
    unsigned long* ,
    unsigned long*
);

extern int XAllocNamedColor(
    Display* ,
    Colormap ,
    const char* ,
    XColor* ,
    XColor*
);

extern int XAllowEvents(
    Display* ,
    int ,
    Time
);

extern int XAutoRepeatOff(
    Display*
);

extern int XAutoRepeatOn(
    Display*
);

extern int XBell(
    Display* ,
    int
);

extern int XBitmapBitOrder(
    Display*
);

extern int XBitmapPad(
    Display*
);

extern int XBitmapUnit(
    Display*
);

extern int XCellsOfScreen(
    Screen*
);

extern int XChangeActivePointerGrab(
    Display* ,
    unsigned int ,
    Cursor ,
    Time
);

extern int XChangeGC(
    Display* ,
    GC ,
    unsigned long ,
    XGCValues*
);

extern int XChangeKeyboardControl(
    Display* ,
    unsigned long ,
    XKeyboardControl*
);

extern int XChangeKeyboardMapping(
    Display* ,
    int ,
    int ,
    KeySym* ,
    int
);

extern int XChangePointerControl(
    Display* ,
    int ,
    int ,
    int ,
    int ,
    int
);

extern int XChangeProperty(
    Display* ,
    Window ,
    Atom ,
    Atom ,
    int ,
    int ,
    const unsigned char* ,
    int
);

extern int XChangeSaveSet(
    Display* ,
    Window ,
    int
);

extern int XChangeWindowAttributes(
    Display* ,
    Window ,
    unsigned long ,
    XSetWindowAttributes*
);

extern int XCheckIfEvent(
    Display* ,
    XEvent* ,
    int (*) (
        Display* ,
               XEvent* ,
               XPointer
             ) ,
    XPointer
);

extern int XCheckMaskEvent(
    Display* ,
    long ,
    XEvent*
);

extern int XCheckTypedEvent(
    Display* ,
    int ,
    XEvent*
);

extern int XCheckTypedWindowEvent(
    Display* ,
    Window ,
    int ,
    XEvent*
);

extern int XCheckWindowEvent(
    Display* ,
    Window ,
    long ,
    XEvent*
);

extern int XCirculateSubwindows(
    Display* ,
    Window ,
    int
);

extern int XCirculateSubwindowsDown(
    Display* ,
    Window
);

extern int XCirculateSubwindowsUp(
    Display* ,
    Window
);

extern int XClearArea(
    Display* ,
    Window ,
    int ,
    int ,
    unsigned int ,
    unsigned int ,
    int
);

extern int XClearWindow(
    Display* ,
    Window
);

extern int XCloseDisplay(
    Display*
);

extern int XConfigureWindow(
    Display* ,
    Window ,
    unsigned int ,
    XWindowChanges*
);

extern int XConnectionNumber(
    Display*
);

extern int XConvertSelection(
    Display* ,
    Atom ,
    Atom ,
    Atom ,
    Window ,
    Time
);

extern int XCopyArea(
    Display* ,
    Drawable ,
    Drawable ,
    GC ,
    int ,
    int ,
    unsigned int ,
    unsigned int ,
    int ,
    int
);

extern int XCopyGC(
    Display* ,
    GC ,
    unsigned long ,
    GC
);

extern int XCopyPlane(
    Display* ,
    Drawable ,
    Drawable ,
    GC ,
    int ,
    int ,
    unsigned int ,
    unsigned int ,
    int ,
    int ,
    unsigned long
);

extern int XDefaultDepth(
    Display* ,
    int
);

extern int XDefaultDepthOfScreen(
    Screen*
);

extern int XDefaultScreen(
    Display*
);

extern int XDefineCursor(
    Display* ,
    Window ,
    Cursor
);

extern int XDeleteProperty(
    Display* ,
    Window ,
    Atom
);

extern int XDestroyWindow(
    Display* ,
    Window
);

extern int XDestroySubwindows(
    Display* ,
    Window
);

extern int XDoesBackingStore(
    Screen*
);

extern int XDoesSaveUnders(
    Screen*
);

extern int XDisableAccessControl(
    Display*
);


extern int XDisplayCells(
    Display* ,
    int
);

extern int XDisplayHeight(
    Display* ,
    int
);

extern int XDisplayHeightMM(
    Display* ,
    int
);

extern int XDisplayKeycodes(
    Display* ,
    int* ,
    int*
);

extern int XDisplayPlanes(
    Display* ,
    int
);

extern int XDisplayWidth(
    Display* ,
    int
);

extern int XDisplayWidthMM(
    Display* ,
    int
);

extern int XDrawArc(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    unsigned int ,
    unsigned int ,
    int ,
    int
);

extern int XDrawArcs(
    Display* ,
    Drawable ,
    GC ,
    XArc* ,
    int
);

extern int XDrawImageString(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    const char* ,
    int
);

extern int XDrawImageString16(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    const XChar2b* ,
    int
);

extern int XDrawLine(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    int ,
    int
);

extern int XDrawLines(
    Display* ,
    Drawable ,
    GC ,
    XPoint* ,
    int ,
    int
);

extern int XDrawPoint(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int
);

extern int XDrawPoints(
    Display* ,
    Drawable ,
    GC ,
    XPoint* ,
    int ,
    int
);

extern int XDrawRectangle(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    unsigned int ,
    unsigned int
);

extern int XDrawRectangles(
    Display* ,
    Drawable ,
    GC ,
    XRectangle* ,
    int
);

extern int XDrawSegments(
    Display* ,
    Drawable ,
    GC ,
    XSegment* ,
    int
);

extern int XDrawString(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    const char* ,
    int
);

extern int XDrawString16(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    const XChar2b* ,
    int
);

extern int XDrawText(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    XTextItem* ,
    int
);

extern int XDrawText16(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    XTextItem16* ,
    int
);

extern int XEnableAccessControl(
    Display*
);

extern int XEventsQueued(
    Display* ,
    int
);

extern int XFetchName(
    Display* ,
    Window ,
    char**
);

extern int XFillArc(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    unsigned int ,
    unsigned int ,
    int ,
    int
);

extern int XFillArcs(
    Display* ,
    Drawable ,
    GC ,
    XArc* ,
    int
);

extern int XFillPolygon(
    Display* ,
    Drawable ,
    GC ,
    XPoint* ,
    int ,
    int ,
    int
);

extern int XFillRectangle(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    unsigned int ,
    unsigned int
);

extern int XFillRectangles(
    Display* ,
    Drawable ,
    GC ,
    XRectangle* ,
    int
);

extern int XFlush(
    Display*
);

extern int XForceScreenSaver(
    Display* ,
    int
);

extern int XFree(
    void*
);

extern int XFreeColormap(
    Display* ,
    Colormap
);

extern int XFreeColors(
    Display* ,
    Colormap ,
    unsigned long* ,
    int ,
    unsigned long
);

extern int XFreeCursor(
    Display* ,
    Cursor
);

extern int XFreeExtensionList(
    char**
);

extern int XFreeFont(
    Display* ,
    XFontStruct*
);

extern int XFreeFontInfo(
    char** ,
    XFontStruct* ,
    int
);

extern int XFreeFontNames(
    char**
);

extern int XFreeFontPath(
    char**
);

extern int XFreeGC(
    Display* ,
    GC
);

extern int XFreeModifiermap(
    XModifierKeymap*
);

extern int XFreePixmap(
    Display* ,
    Pixmap
);

extern int XGeometry(
    Display* ,
    int ,
    const char* ,
    const char* ,
    unsigned int ,
    unsigned int ,
    unsigned int ,
    int ,
    int ,
    int* ,
    int* ,
    int* ,
    int*
);

extern int XGetErrorDatabaseText(
    Display* ,
    const char* ,
    const char* ,
    const char* ,
    char* ,
    int
);

extern int XGetErrorText(
    Display* ,
    int ,
    char* ,
    int
);

extern int XGetFontProperty(
    XFontStruct* ,
    Atom ,
    unsigned long*
);

extern int XGetGCValues(
    Display* ,
    GC ,
    unsigned long ,
    XGCValues*
);

extern int XGetGeometry(
    Display* ,
    Drawable ,
    Window* ,
    int* ,
    int* ,
    unsigned int* ,
    unsigned int* ,
    unsigned int* ,
    unsigned int*
);

extern int XGetIconName(
    Display* ,
    Window ,
    char**
);

extern int XGetInputFocus(
    Display* ,
    Window* ,
    int*
);

extern int XGetKeyboardControl(
    Display* ,
    XKeyboardState*
);

extern int XGetPointerControl(
    Display* ,
    int* ,
    int* ,
    int*
);

extern int XGetPointerMapping(
    Display* ,
    unsigned char* ,
    int
);

extern int XGetScreenSaver(
    Display* ,
    int* ,
    int* ,
    int* ,
    int*
);

extern int XGetTransientForHint(
    Display* ,
    Window ,
    Window*
);

extern int XGetWindowProperty(
    Display* ,
    Window ,
    Atom ,
    long ,
    long ,
    int ,
    Atom ,
    Atom* ,
    int* ,
    unsigned long* ,
    unsigned long* ,
    unsigned char**
);

extern int XGetWindowAttributes(
    Display* ,
    Window ,
    XWindowAttributes*
);

extern int XGrabButton(
    Display* ,
    unsigned int ,
    unsigned int ,
    Window ,
    int ,
    unsigned int ,
    int ,
    int ,
    Window ,
    Cursor
);

extern int XGrabKey(
    Display* ,
    int ,
    unsigned int ,
    Window ,
    int ,
    int ,
    int
);

extern int XGrabKeyboard(
    Display* ,
    Window ,
    int ,
    int ,
    int ,
    Time
);

extern int XGrabPointer(
    Display* ,
    Window ,
    int ,
    unsigned int ,
    int ,
    int ,
    Window ,
    Cursor ,
    Time
);

extern int XGrabServer(
    Display*
);

extern int XHeightMMOfScreen(
    Screen*
);

extern int XHeightOfScreen(
    Screen*
);

extern int XIfEvent(
    Display* ,
    XEvent* ,
    int (*) (
        Display* ,
               XEvent* ,
               XPointer
             ) ,
    XPointer
);

extern int XImageByteOrder(
    Display*
);

extern int XInstallColormap(
    Display* ,
    Colormap
);

extern KeyCode XKeysymToKeycode(
    Display* ,
    KeySym
);

extern int XKillClient(
    Display* ,
    XID
);

extern int XLookupColor(
    Display* ,
    Colormap ,
    const char* ,
    XColor* ,
    XColor*
);

extern int XLowerWindow(
    Display* ,
    Window
);

extern int XMapRaised(
    Display* ,
    Window
);

extern int XMapSubwindows(
    Display* ,
    Window
);

extern int XMapWindow(
    Display* ,
    Window
);

extern int XMaskEvent(
    Display* ,
    long ,
    XEvent*
);

extern int XMaxCmapsOfScreen(
    Screen*
);

extern int XMinCmapsOfScreen(
    Screen*
);

extern int XMoveResizeWindow(
    Display* ,
    Window ,
    int ,
    int ,
    unsigned int ,
    unsigned int
);

extern int XMoveWindow(
    Display* ,
    Window ,
    int ,
    int
);

extern int XNextEvent(
    Display* ,
    XEvent*
);

extern int XNoOp(
    Display*
);

extern int XParseColor(
    Display* ,
    Colormap ,
    const char* ,
    XColor*
);

extern int XParseGeometry(
    const char* ,
    int* ,
    int* ,
    unsigned int* ,
    unsigned int*
);

extern int XPeekEvent(
    Display* ,
    XEvent*
);

extern int XPeekIfEvent(
    Display* ,
    XEvent* ,
    int (*) (
        Display* ,
               XEvent* ,
               XPointer
             ) ,
    XPointer
);

extern int XPending(
    Display*
);

extern int XPlanesOfScreen(
    Screen*
);

extern int XProtocolRevision(
    Display*
);

extern int XProtocolVersion(
    Display*
);


extern int XPutBackEvent(
    Display* ,
    XEvent*
);

extern int XPutImage(
    Display* ,
    Drawable ,
    GC ,
    XImage* ,
    int ,
    int ,
    int ,
    int ,
    unsigned int ,
    unsigned int
);

extern int XQLength(
    Display*
);

extern int XQueryBestCursor(
    Display* ,
    Drawable ,
    unsigned int ,
    unsigned int ,
    unsigned int* ,
    unsigned int*
);

extern int XQueryBestSize(
    Display* ,
    int ,
    Drawable ,
    unsigned int ,
    unsigned int ,
    unsigned int* ,
    unsigned int*
);

extern int XQueryBestStipple(
    Display* ,
    Drawable ,
    unsigned int ,
    unsigned int ,
    unsigned int* ,
    unsigned int*
);

extern int XQueryBestTile(
    Display* ,
    Drawable ,
    unsigned int ,
    unsigned int ,
    unsigned int* ,
    unsigned int*
);

extern int XQueryColor(
    Display* ,
    Colormap ,
    XColor*
);

extern int XQueryColors(
    Display* ,
    Colormap ,
    XColor* ,
    int
);

extern int XQueryExtension(
    Display* ,
    const char* ,
    int* ,
    int* ,
    int*
);

extern int XQueryKeymap(
    Display* ,
    char [32]
);

extern int XQueryPointer(
    Display* ,
    Window ,
    Window* ,
    Window* ,
    int* ,
    int* ,
    int* ,
    int* ,
    unsigned int*
);

extern int XQueryTextExtents(
    Display* ,
    XID ,
    const char* ,
    int ,
    int* ,
    int* ,
    int* ,
    XCharStruct*
);

extern int XQueryTextExtents16(
    Display* ,
    XID ,
    const XChar2b* ,
    int ,
    int* ,
    int* ,
    int* ,
    XCharStruct*
);

extern int XQueryTree(
    Display* ,
    Window ,
    Window* ,
    Window* ,
    Window** ,
    unsigned int*
);

extern int XRaiseWindow(
    Display* ,
    Window
);

extern int XReadBitmapFile(
    Display* ,
    Drawable ,
    const char* ,
    unsigned int* ,
    unsigned int* ,
    Pixmap* ,
    int* ,
    int*
);

extern int XReadBitmapFileData(
    const char* ,
    unsigned int* ,
    unsigned int* ,
    unsigned char** ,
    int* ,
    int*
);

extern int XRebindKeysym(
    Display* ,
    KeySym ,
    KeySym* ,
    int ,
    const unsigned char* ,
    int
);

extern int XRecolorCursor(
    Display* ,
    Cursor ,
    XColor* ,
    XColor*
);

extern int XRefreshKeyboardMapping(
    XMappingEvent*
);

extern int XRemoveFromSaveSet(
    Display* ,
    Window
);

extern int XRemoveHost(
    Display* ,
    XHostAddress*
);

extern int XRemoveHosts(
    Display* ,
    XHostAddress* ,
    int
);

extern int XReparentWindow(
    Display* ,
    Window ,
    Window ,
    int ,
    int
);

extern int XResetScreenSaver(
    Display*
);

extern int XResizeWindow(
    Display* ,
    Window ,
    unsigned int ,
    unsigned int
);

extern int XRestackWindows(
    Display* ,
    Window* ,
    int
);

extern int XRotateBuffers(
    Display* ,
    int
);

extern int XRotateWindowProperties(
    Display* ,
    Window ,
    Atom* ,
    int ,
    int
);

extern int XScreenCount(
    Display*
);

extern int XSelectInput(
    Display* ,
    Window ,
    long
);

extern int XSendEvent(
    Display* ,
    Window ,
    int ,
    long ,
    XEvent*
);

extern int XSetAccessControl(
    Display* ,
    int
);

extern int XSetArcMode(
    Display* ,
    GC ,
    int
);

extern int XSetBackground(
    Display* ,
    GC ,
    unsigned long
);

extern int XSetClipMask(
    Display* ,
    GC ,
    Pixmap
);

extern int XSetClipOrigin(
    Display* ,
    GC ,
    int ,
    int
);

extern int XSetClipRectangles(
    Display* ,
    GC ,
    int ,
    int ,
    XRectangle* ,
    int ,
    int
);

extern int XSetCloseDownMode(
    Display* ,
    int
);

extern int XSetCommand(
    Display* ,
    Window ,
    char** ,
    int
);

extern int XSetDashes(
    Display* ,
    GC ,
    int ,
    const char* ,
    int
);

extern int XSetFillRule(
    Display* ,
    GC ,
    int
);

extern int XSetFillStyle(
    Display* ,
    GC ,
    int
);

extern int XSetFont(
    Display* ,
    GC ,
    Font
);

extern int XSetFontPath(
    Display* ,
    char** ,
    int
);

extern int XSetForeground(
    Display* ,
    GC ,
    unsigned long
);

extern int XSetFunction(
    Display* ,
    GC ,
    int
);

extern int XSetGraphicsExposures(
    Display* ,
    GC ,
    int
);

extern int XSetIconName(
    Display* ,
    Window ,
    const char*
);

extern int XSetInputFocus(
    Display* ,
    Window ,
    int ,
    Time
);

extern int XSetLineAttributes(
    Display* ,
    GC ,
    unsigned int ,
    int ,
    int ,
    int
);

extern int XSetModifierMapping(
    Display* ,
    XModifierKeymap*
);

extern int XSetPlaneMask(
    Display* ,
    GC ,
    unsigned long
);

extern int XSetPointerMapping(
    Display* ,
    const unsigned char* ,
    int
);

extern int XSetScreenSaver(
    Display* ,
    int ,
    int ,
    int ,
    int
);

extern int XSetSelectionOwner(
    Display* ,
    Atom ,
    Window ,
    Time
);

extern int XSetState(
    Display* ,
    GC ,
    unsigned long ,
    unsigned long ,
    int ,
    unsigned long
);

extern int XSetStipple(
    Display* ,
    GC ,
    Pixmap
);

extern int XSetSubwindowMode(
    Display* ,
    GC ,
    int
);

extern int XSetTSOrigin(
    Display* ,
    GC ,
    int ,
    int
);

extern int XSetTile(
    Display* ,
    GC ,
    Pixmap
);

extern int XSetWindowBackground(
    Display* ,
    Window ,
    unsigned long
);

extern int XSetWindowBackgroundPixmap(
    Display* ,
    Window ,
    Pixmap
);

extern int XSetWindowBorder(
    Display* ,
    Window ,
    unsigned long
);

extern int XSetWindowBorderPixmap(
    Display* ,
    Window ,
    Pixmap
);

extern int XSetWindowBorderWidth(
    Display* ,
    Window ,
    unsigned int
);

extern int XSetWindowColormap(
    Display* ,
    Window ,
    Colormap
);

extern int XStoreBuffer(
    Display* ,
    const char* ,
    int ,
    int
);

extern int XStoreBytes(
    Display* ,
    const char* ,
    int
);

extern int XStoreColor(
    Display* ,
    Colormap ,
    XColor*
);

extern int XStoreColors(
    Display* ,
    Colormap ,
    XColor* ,
    int
);

extern int XStoreName(
    Display* ,
    Window ,
    const char*
);

extern int XStoreNamedColor(
    Display* ,
    Colormap ,
    const char* ,
    unsigned long ,
    int
);

extern int XSync(
    Display* ,
    int
);

extern int XTextExtents(
    XFontStruct* ,
    const char* ,
    int ,
    int* ,
    int* ,
    int* ,
    XCharStruct*
);

extern int XTextExtents16(
    XFontStruct* ,
    const XChar2b* ,
    int ,
    int* ,
    int* ,
    int* ,
    XCharStruct*
);

extern int XTextWidth(
    XFontStruct* ,
    const char* ,
    int
);

extern int XTextWidth16(
    XFontStruct* ,
    const XChar2b* ,
    int
);

extern int XTranslateCoordinates(
    Display* ,
    Window ,
    Window ,
    int ,
    int ,
    int* ,
    int* ,
    Window*
);

extern int XUndefineCursor(
    Display* ,
    Window
);

extern int XUngrabButton(
    Display* ,
    unsigned int ,
    unsigned int ,
    Window
);

extern int XUngrabKey(
    Display* ,
    int ,
    unsigned int ,
    Window
);

extern int XUngrabKeyboard(
    Display* ,
    Time
);

extern int XUngrabPointer(
    Display* ,
    Time
);

extern int XUngrabServer(
    Display*
);

extern int XUninstallColormap(
    Display* ,
    Colormap
);

extern int XUnloadFont(
    Display* ,
    Font
);

extern int XUnmapSubwindows(
    Display* ,
    Window
);

extern int XUnmapWindow(
    Display* ,
    Window
);

extern int XVendorRelease(
    Display*
);

extern int XWarpPointer(
    Display* ,
    Window ,
    Window ,
    int ,
    int ,
    unsigned int ,
    unsigned int ,
    int ,
    int
);

extern int XWidthMMOfScreen(
    Screen*
);

extern int XWidthOfScreen(
    Screen*
);

extern int XWindowEvent(
    Display* ,
    Window ,
    long ,
    XEvent*
);

extern int XWriteBitmapFile(
    Display* ,
    const char* ,
    Pixmap ,
    unsigned int ,
    unsigned int ,
    int ,
    int
);

extern int XSupportsLocale (void);

extern char *XSetLocaleModifiers(
    const char*
);

extern XOM XOpenOM(
    Display* ,
    struct _XrmHashBucketRec* ,
    const char* ,
    const char*
);

extern int XCloseOM(
    XOM
);

extern char *XSetOMValues(
    XOM ,
    ...
);

extern char *XGetOMValues(
    XOM ,
    ...
);

extern Display *XDisplayOfOM(
    XOM
);

extern char *XLocaleOfOM(
    XOM
);

extern XOC XCreateOC(
    XOM ,
    ...
);

extern void XDestroyOC(
    XOC
);

extern XOM XOMOfOC(
    XOC
);

extern char *XSetOCValues(
    XOC ,
    ...
);

extern char *XGetOCValues(
    XOC ,
    ...
);

extern XFontSet XCreateFontSet(
    Display* ,
    const char* ,
    char*** ,
    int* ,
    char**
);

extern void XFreeFontSet(
    Display* ,
    XFontSet
);

extern int XFontsOfFontSet(
    XFontSet ,
    XFontStruct*** ,
    char***
);

extern char *XBaseFontNameListOfFontSet(
    XFontSet
);

extern char *XLocaleOfFontSet(
    XFontSet
);

extern int XContextDependentDrawing(
    XFontSet
);

extern int XDirectionalDependentDrawing(
    XFontSet
);

extern int XContextualDrawing(
    XFontSet
);

extern XFontSetExtents *XExtentsOfFontSet(
    XFontSet
);

extern int XmbTextEscapement(
    XFontSet ,
    const char* ,
    int
);

extern int XwcTextEscapement(
    XFontSet ,
    const wchar_t* ,
    int
);

extern int Xutf8TextEscapement(
    XFontSet ,
    const char* ,
    int
);

extern int XmbTextExtents(
    XFontSet ,
    const char* ,
    int ,
    XRectangle* ,
    XRectangle*
);

extern int XwcTextExtents(
    XFontSet ,
    const wchar_t* ,
    int ,
    XRectangle* ,
    XRectangle*
);

extern int Xutf8TextExtents(
    XFontSet ,
    const char* ,
    int ,
    XRectangle* ,
    XRectangle*
);

extern int XmbTextPerCharExtents(
    XFontSet ,
    const char* ,
    int ,
    XRectangle* ,
    XRectangle* ,
    int ,
    int* ,
    XRectangle* ,
    XRectangle*
);

extern int XwcTextPerCharExtents(
    XFontSet ,
    const wchar_t* ,
    int ,
    XRectangle* ,
    XRectangle* ,
    int ,
    int* ,
    XRectangle* ,
    XRectangle*
);

extern int Xutf8TextPerCharExtents(
    XFontSet ,
    const char* ,
    int ,
    XRectangle* ,
    XRectangle* ,
    int ,
    int* ,
    XRectangle* ,
    XRectangle*
);

extern void XmbDrawText(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    XmbTextItem* ,
    int
);

extern void XwcDrawText(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    XwcTextItem* ,
    int
);

extern void Xutf8DrawText(
    Display* ,
    Drawable ,
    GC ,
    int ,
    int ,
    XmbTextItem* ,
    int
);

extern void XmbDrawString(
    Display* ,
    Drawable ,
    XFontSet ,
    GC ,
    int ,
    int ,
    const char* ,
    int
);

extern void XwcDrawString(
    Display* ,
    Drawable ,
    XFontSet ,
    GC ,
    int ,
    int ,
    const wchar_t* ,
    int
);

extern void Xutf8DrawString(
    Display* ,
    Drawable ,
    XFontSet ,
    GC ,
    int ,
    int ,
    const char* ,
    int
);

extern void XmbDrawImageString(
    Display* ,
    Drawable ,
    XFontSet ,
    GC ,
    int ,
    int ,
    const char* ,
    int
);

extern void XwcDrawImageString(
    Display* ,
    Drawable ,
    XFontSet ,
    GC ,
    int ,
    int ,
    const wchar_t* ,
    int
);

extern void Xutf8DrawImageString(
    Display* ,
    Drawable ,
    XFontSet ,
    GC ,
    int ,
    int ,
    const char* ,
    int
);

extern XIM XOpenIM(
    Display* ,
    struct _XrmHashBucketRec* ,
    char* ,
    char*
);

extern int XCloseIM(
    XIM
);

extern char *XGetIMValues(
    XIM , ...
);

extern char *XSetIMValues(
    XIM , ...
);

extern Display *XDisplayOfIM(
    XIM
);

extern char *XLocaleOfIM(
    XIM
);

extern XIC XCreateIC(
    XIM , ...
);

extern void XDestroyIC(
    XIC
);

extern void XSetICFocus(
    XIC
);

extern void XUnsetICFocus(
    XIC
);

extern wchar_t *XwcResetIC(
    XIC
);

extern char *XmbResetIC(
    XIC
);

extern char *Xutf8ResetIC(
    XIC
);

extern char *XSetICValues(
    XIC , ...
);

extern char *XGetICValues(
    XIC , ...
);

extern XIM XIMOfIC(
    XIC
);

extern int XFilterEvent(
    XEvent* ,
    Window
);

extern int XmbLookupString(
    XIC ,
    XKeyPressedEvent* ,
    char* ,
    int ,
    KeySym* ,
    int*
);

extern int XwcLookupString(
    XIC ,
    XKeyPressedEvent* ,
    wchar_t* ,
    int ,
    KeySym* ,
    int*
);

extern int Xutf8LookupString(
    XIC ,
    XKeyPressedEvent* ,
    char* ,
    int ,
    KeySym* ,
    int*
);

extern XVaNestedList XVaCreateNestedList(
    int , ...
);



extern int XRegisterIMInstantiateCallback(
    Display* ,
    struct _XrmHashBucketRec* ,
    char* ,
    char* ,
    XIDProc ,
    XPointer
);

extern int XUnregisterIMInstantiateCallback(
    Display* ,
    struct _XrmHashBucketRec* ,
    char* ,
    char* ,
    XIDProc ,
    XPointer
);

typedef void (*XConnectionWatchProc)(
    Display* ,
    XPointer ,
    int ,
    int ,
    XPointer*
);


extern int XInternalConnectionNumbers(
    Display* ,
    int** ,
    int*
);

extern void XProcessInternalConnection(
    Display* ,
    int
);

extern int XAddConnectionWatch(
    Display* ,
    XConnectionWatchProc ,
    XPointer
);

extern void XRemoveConnectionWatch(
    Display* ,
    XConnectionWatchProc ,
    XPointer
);

extern void XSetAuthorization(
    char * ,
    int ,
    char * ,
    int
);

extern int _Xmbtowc(
    wchar_t * ,




    char * ,
    int

);

extern int _Xwctomb(
    char * ,
    wchar_t
);

}
# 57 "/usr/X11R6/include/X11/Intrinsic.h" 2
# 1 "/usr/X11R6/include/X11/Xutil.h" 1
# 74 "/usr/X11R6/include/X11/Xutil.h"
typedef struct {
     long flags;
 int x, y;
 int width, height;
 int min_width, min_height;
 int max_width, max_height;
     int width_inc, height_inc;
 struct {
  int x;
  int y;
 } min_aspect, max_aspect;
 int base_width, base_height;
 int win_gravity;
} XSizeHints;
# 112 "/usr/X11R6/include/X11/Xutil.h"
typedef struct {
 long flags;
 int input;

 int initial_state;
 Pixmap icon_pixmap;
 Window icon_window;
 int icon_x, icon_y;
 Pixmap icon_mask;
 XID window_group;

} XWMHints;
# 156 "/usr/X11R6/include/X11/Xutil.h"
typedef struct {
    unsigned char *value;
    Atom encoding;
    int format;
    unsigned long nitems;
} XTextProperty;





typedef enum {
    XStringStyle,
    XCompoundTextStyle,
    XTextStyle,
    XStdICCTextStyle,

    XUTF8StringStyle
} XICCEncodingStyle;

typedef struct {
 int min_width, min_height;
 int max_width, max_height;
 int width_inc, height_inc;
} XIconSize;

typedef struct {
 char *res_name;
 char *res_class;
} XClassHint;
# 224 "/usr/X11R6/include/X11/Xutil.h"
typedef struct _XComposeStatus {
    XPointer compose_ptr;
    int chars_matched;
} XComposeStatus;
# 266 "/usr/X11R6/include/X11/Xutil.h"
typedef struct _XRegion *Region;
# 280 "/usr/X11R6/include/X11/Xutil.h"
typedef struct {
  Visual *visual;
  VisualID visualid;
  int screen;
  int depth;

  int c_class;



  unsigned long red_mask;
  unsigned long green_mask;
  unsigned long blue_mask;
  int colormap_size;
  int bits_per_rgb;
} XVisualInfo;
# 313 "/usr/X11R6/include/X11/Xutil.h"
typedef struct {
 Colormap colormap;
 unsigned long red_max;
 unsigned long red_mult;
 unsigned long green_max;
 unsigned long green_mult;
 unsigned long blue_max;
 unsigned long blue_mult;
 unsigned long base_pixel;
 VisualID visualid;
 XID killid;
} XStandardColormap;
# 350 "/usr/X11R6/include/X11/Xutil.h"
typedef int XContext;




extern "C" {



extern XClassHint *XAllocClassHint (
    void
);

extern XIconSize *XAllocIconSize (
    void
);

extern XSizeHints *XAllocSizeHints (
    void
);

extern XStandardColormap *XAllocStandardColormap (
    void
);

extern XWMHints *XAllocWMHints (
    void
);

extern int XClipBox(
    Region ,
    XRectangle*
);

extern Region XCreateRegion(
    void
);

extern const char *XDefaultString (void);

extern int XDeleteContext(
    Display* ,
    XID ,
    XContext
);

extern int XDestroyRegion(
    Region
);

extern int XEmptyRegion(
    Region
);

extern int XEqualRegion(
    Region ,
    Region
);

extern int XFindContext(
    Display* ,
    XID ,
    XContext ,
    XPointer*
);

extern int XGetClassHint(
    Display* ,
    Window ,
    XClassHint*
);

extern int XGetIconSizes(
    Display* ,
    Window ,
    XIconSize** ,
    int*
);

extern int XGetNormalHints(
    Display* ,
    Window ,
    XSizeHints*
);

extern int XGetRGBColormaps(
    Display* ,
    Window ,
    XStandardColormap** ,
    int* ,
    Atom
);

extern int XGetSizeHints(
    Display* ,
    Window ,
    XSizeHints* ,
    Atom
);

extern int XGetStandardColormap(
    Display* ,
    Window ,
    XStandardColormap* ,
    Atom
);

extern int XGetTextProperty(
    Display* ,
    Window ,
    XTextProperty* ,
    Atom
);

extern XVisualInfo *XGetVisualInfo(
    Display* ,
    long ,
    XVisualInfo* ,
    int*
);

extern int XGetWMClientMachine(
    Display* ,
    Window ,
    XTextProperty*
);

extern XWMHints *XGetWMHints(
    Display* ,
    Window
);

extern int XGetWMIconName(
    Display* ,
    Window ,
    XTextProperty*
);

extern int XGetWMName(
    Display* ,
    Window ,
    XTextProperty*
);

extern int XGetWMNormalHints(
    Display* ,
    Window ,
    XSizeHints* ,
    long*
);

extern int XGetWMSizeHints(
    Display* ,
    Window ,
    XSizeHints* ,
    long* ,
    Atom
);

extern int XGetZoomHints(
    Display* ,
    Window ,
    XSizeHints*
);

extern int XIntersectRegion(
    Region ,
    Region ,
    Region
);

extern void XConvertCase(
    KeySym ,
    KeySym* ,
    KeySym*
);

extern int XLookupString(
    XKeyEvent* ,
    char* ,
    int ,
    KeySym* ,
    XComposeStatus*
);

extern int XMatchVisualInfo(
    Display* ,
    int ,
    int ,
    int ,
    XVisualInfo*
);

extern int XOffsetRegion(
    Region ,
    int ,
    int
);

extern int XPointInRegion(
    Region ,
    int ,
    int
);

extern Region XPolygonRegion(
    XPoint* ,
    int ,
    int
);

extern int XRectInRegion(
    Region ,
    int ,
    int ,
    unsigned int ,
    unsigned int
);

extern int XSaveContext(
    Display* ,
    XID ,
    XContext ,
    const char*
);

extern int XSetClassHint(
    Display* ,
    Window ,
    XClassHint*
);

extern int XSetIconSizes(
    Display* ,
    Window ,
    XIconSize* ,
    int
);

extern int XSetNormalHints(
    Display* ,
    Window ,
    XSizeHints*
);

extern void XSetRGBColormaps(
    Display* ,
    Window ,
    XStandardColormap* ,
    int ,
    Atom
);

extern int XSetSizeHints(
    Display* ,
    Window ,
    XSizeHints* ,
    Atom
);

extern int XSetStandardProperties(
    Display* ,
    Window ,
    const char* ,
    const char* ,
    Pixmap ,
    char** ,
    int ,
    XSizeHints*
);

extern void XSetTextProperty(
    Display* ,
    Window ,
    XTextProperty* ,
    Atom
);

extern void XSetWMClientMachine(
    Display* ,
    Window ,
    XTextProperty*
);

extern int XSetWMHints(
    Display* ,
    Window ,
    XWMHints*
);

extern void XSetWMIconName(
    Display* ,
    Window ,
    XTextProperty*
);

extern void XSetWMName(
    Display* ,
    Window ,
    XTextProperty*
);

extern void XSetWMNormalHints(
    Display* ,
    Window ,
    XSizeHints*
);

extern void XSetWMProperties(
    Display* ,
    Window ,
    XTextProperty* ,
    XTextProperty* ,
    char** ,
    int ,
    XSizeHints* ,
    XWMHints* ,
    XClassHint*
);

extern void XmbSetWMProperties(
    Display* ,
    Window ,
    const char* ,
    const char* ,
    char** ,
    int ,
    XSizeHints* ,
    XWMHints* ,
    XClassHint*
);

extern void Xutf8SetWMProperties(
    Display* ,
    Window ,
    const char* ,
    const char* ,
    char** ,
    int ,
    XSizeHints* ,
    XWMHints* ,
    XClassHint*
);

extern void XSetWMSizeHints(
    Display* ,
    Window ,
    XSizeHints* ,
    Atom
);

extern int XSetRegion(
    Display* ,
    GC ,
    Region
);

extern void XSetStandardColormap(
    Display* ,
    Window ,
    XStandardColormap* ,
    Atom
);

extern int XSetZoomHints(
    Display* ,
    Window ,
    XSizeHints*
);

extern int XShrinkRegion(
    Region ,
    int ,
    int
);

extern int XStringListToTextProperty(
    char** ,
    int ,
    XTextProperty*
);

extern int XSubtractRegion(
    Region ,
    Region ,
    Region
);

extern int XmbTextListToTextProperty(
    Display* display,
    char** list,
    int count,
    XICCEncodingStyle style,
    XTextProperty* text_prop_return
);

extern int XwcTextListToTextProperty(
    Display* display,
    wchar_t** list,
    int count,
    XICCEncodingStyle style,
    XTextProperty* text_prop_return
);

extern int Xutf8TextListToTextProperty(
    Display* display,
    char** list,
    int count,
    XICCEncodingStyle style,
    XTextProperty* text_prop_return
);

extern void XwcFreeStringList(
    wchar_t** list
);

extern int XTextPropertyToStringList(
    XTextProperty* ,
    char*** ,
    int*
);

extern int XmbTextPropertyToTextList(
    Display* display,
    const XTextProperty* text_prop,
    char*** list_return,
    int* count_return
);

extern int XwcTextPropertyToTextList(
    Display* display,
    const XTextProperty* text_prop,
    wchar_t*** list_return,
    int* count_return
);

extern int Xutf8TextPropertyToTextList(
    Display* display,
    const XTextProperty* text_prop,
    char*** list_return,
    int* count_return
);

extern int XUnionRectWithRegion(
    XRectangle* ,
    Region ,
    Region
);

extern int XUnionRegion(
    Region ,
    Region ,
    Region
);

extern int XWMGeometry(
    Display* ,
    int ,
    const char* ,
    const char* ,
    unsigned int ,
    XSizeHints* ,
    int* ,
    int* ,
    int* ,
    int* ,
    int*
);

extern int XXorRegion(
    Region ,
    Region ,
    Region
);

}
# 58 "/usr/X11R6/include/X11/Intrinsic.h" 2
# 1 "/usr/X11R6/include/X11/Xresource.h" 1
# 68 "/usr/X11R6/include/X11/Xresource.h"
extern "C" {







extern char *Xpermalloc(
    unsigned int
);







typedef int XrmQuark, *XrmQuarkList;


typedef char *XrmString;



extern XrmQuark XrmStringToQuark(
    const char*
);

extern XrmQuark XrmPermStringToQuark(
    const char*
);


extern XrmString XrmQuarkToString(
    XrmQuark
);

extern XrmQuark XrmUniqueQuark(
    void
);
# 119 "/usr/X11R6/include/X11/Xresource.h"
typedef enum {XrmBindTightly, XrmBindLoosely} XrmBinding,
*XrmBindingList;

extern void XrmStringToQuarkList(
    const char* ,
    XrmQuarkList
);

extern void XrmStringToBindingQuarkList(
    const char* ,
    XrmBindingList ,
    XrmQuarkList
);







typedef XrmQuark XrmName;
typedef XrmQuarkList XrmNameList;




typedef XrmQuark XrmClass;
typedef XrmQuarkList XrmClassList;
# 158 "/usr/X11R6/include/X11/Xresource.h"
typedef XrmQuark XrmRepresentation;



typedef struct {
    unsigned int size;
    XPointer addr;
} XrmValue, *XrmValuePtr;
# 174 "/usr/X11R6/include/X11/Xresource.h"
typedef struct _XrmHashBucketRec *XrmHashBucket;
typedef XrmHashBucket *XrmHashTable;
typedef XrmHashTable XrmSearchList[];
typedef struct _XrmHashBucketRec *XrmDatabase;


extern void XrmDestroyDatabase(
    XrmDatabase
);

extern void XrmQPutResource(
    XrmDatabase* ,
    XrmBindingList ,
    XrmQuarkList ,
    XrmRepresentation ,
    XrmValue*
);

extern void XrmPutResource(
    XrmDatabase* ,
    const char* ,
    const char* ,
    XrmValue*
);

extern void XrmQPutStringResource(
    XrmDatabase* ,
    XrmBindingList ,
    XrmQuarkList ,
    const char*
);

extern void XrmPutStringResource(
    XrmDatabase* ,
    const char* ,
    const char*
);

extern void XrmPutLineResource(
    XrmDatabase* ,
    const char*
);

extern int XrmQGetResource(
    XrmDatabase ,
    XrmNameList ,
    XrmClassList ,
    XrmRepresentation* ,
    XrmValue*
);

extern int XrmGetResource(
    XrmDatabase ,
    const char* ,
    const char* ,
    char** ,
    XrmValue*
);

extern int XrmQGetSearchList(
    XrmDatabase ,
    XrmNameList ,
    XrmClassList ,
    XrmSearchList ,
    int
);

extern int XrmQGetSearchResource(
    XrmSearchList ,
    XrmName ,
    XrmClass ,
    XrmRepresentation* ,
    XrmValue*
);
# 257 "/usr/X11R6/include/X11/Xresource.h"
extern void XrmSetDatabase(
    Display* ,
    XrmDatabase
);

extern XrmDatabase XrmGetDatabase(
    Display*
);



extern XrmDatabase XrmGetFileDatabase(
    const char*
);

extern int XrmCombineFileDatabase(
    const char* ,
    XrmDatabase* ,
    int
);

extern XrmDatabase XrmGetStringDatabase(
    const char*
);

extern void XrmPutFileDatabase(
    XrmDatabase ,
    const char*
);

extern void XrmMergeDatabases(
    XrmDatabase ,
    XrmDatabase*
);

extern void XrmCombineDatabase(
    XrmDatabase ,
    XrmDatabase* ,
    int
);




extern int XrmEnumerateDatabase(
    XrmDatabase ,
    XrmNameList ,
    XrmClassList ,
    int ,
    int (*)(
      XrmDatabase* ,
      XrmBindingList ,
      XrmQuarkList ,
      XrmRepresentation* ,
      XrmValue* ,
      XPointer
      ) ,
    XPointer
);

extern const char *XrmLocaleOfDatabase(
    XrmDatabase
);
# 328 "/usr/X11R6/include/X11/Xresource.h"
typedef enum {
    XrmoptionNoArg,
    XrmoptionIsArg,
    XrmoptionStickyArg,
    XrmoptionSepArg,
    XrmoptionResArg,
    XrmoptionSkipArg,
    XrmoptionSkipLine,
    XrmoptionSkipNArgs

} XrmOptionKind;

typedef struct {
    char *option;
    char *specifier;
    XrmOptionKind argKind;
    XPointer value;
} XrmOptionDescRec, *XrmOptionDescList;


extern void XrmParseCommand(
    XrmDatabase* ,
    XrmOptionDescList ,
    int ,
    const char* ,
    int* ,
    char**
);

}
# 59 "/usr/X11R6/include/X11/Intrinsic.h" 2





# 1 "/usr/include/string.h" 1 3 4
# 28 "/usr/include/string.h" 3 4
extern "C" {




# 1 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 1 3 4
# 34 "/usr/include/string.h" 2 3 4




extern void *memcpy (void *__restrict __dest,
       __const void *__restrict __src, size_t __n)
     throw () __attribute__ ((__nonnull__ (1, 2)));


extern void *memmove (void *__dest, __const void *__src, size_t __n)
     throw () __attribute__ ((__nonnull__ (1, 2)));






extern void *memccpy (void *__restrict __dest, __const void *__restrict
__src,
        int __c, size_t __n)
     throw () __attribute__ ((__nonnull__ (1, 2)));





extern void *memset (void *__s, int __c, size_t __n) throw ()
__attribute__ ((__nonnull__ (1)));


extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));


extern void *memchr (__const void *__s, int __c, size_t __n)
      throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__
(1)));





extern void *rawmemchr (__const void *__s, int __c)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__
(1)));


extern void *memrchr (__const void *__s, int __c, size_t __n)
      throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__
(1)));





extern char *strcpy (char *__restrict __dest, __const char *__restrict
__src)
     throw () __attribute__ ((__nonnull__ (1, 2)));

extern char *strncpy (char *__restrict __dest,
        __const char *__restrict __src, size_t __n)
     throw () __attribute__ ((__nonnull__ (1, 2)));


extern char *strcat (char *__restrict __dest, __const char *__restrict
__src)
     throw () __attribute__ ((__nonnull__ (1, 2)));

extern char *strncat (char *__restrict __dest, __const char *__restrict
__src,
        size_t __n) throw () __attribute__ ((__nonnull__ (1, 2)));


extern int strcmp (__const char *__s1, __const char *__s2)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));

extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));


extern int strcoll (__const char *__s1, __const char *__s2)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));

extern size_t strxfrm (char *__restrict __dest,
         __const char *__restrict __src, size_t __n)
     throw () __attribute__ ((__nonnull__ (2)));






# 1 "/usr/include/xlocale.h" 1 3 4
# 28 "/usr/include/xlocale.h" 3 4
typedef struct __locale_struct
{

  struct locale_data *__locales[13];


  const unsigned short int *__ctype_b;
  const int *__ctype_tolower;
  const int *__ctype_toupper;


  const char *__names[13];
} *__locale_t;
# 119 "/usr/include/string.h" 2 3 4


extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t
__l)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2, 3)));

extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
    __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4)));




extern char *strdup (__const char *__s)
     throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__
(1)));






extern char *strndup (__const char *__string, size_t __n)
     throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__
(1)));
# 165 "/usr/include/string.h" 3 4


extern char *strchr (__const char *__s, int __c)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__
(1)));

extern char *strrchr (__const char *__s, int __c)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__
(1)));





extern char *strchrnul (__const char *__s, int __c)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__
(1)));





extern size_t strcspn (__const char *__s, __const char *__reject)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));


extern size_t strspn (__const char *__s, __const char *__accept)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));

extern char *strpbrk (__const char *__s, __const char *__accept)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));

extern char *strstr (__const char *__haystack, __const char *__needle)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));



extern char *strtok (char *__restrict __s, __const char *__restrict
__delim)
     throw () __attribute__ ((__nonnull__ (2)));




extern char *__strtok_r (char *__restrict __s,
    __const char *__restrict __delim,
    char **__restrict __save_ptr)
     throw () __attribute__ ((__nonnull__ (2, 3)));

extern char *strtok_r (char *__restrict __s, __const char *__restrict
__delim,
         char **__restrict __save_ptr)
     throw () __attribute__ ((__nonnull__ (2, 3)));




extern char *strcasestr (__const char *__haystack, __const char
*__needle)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));






extern void *memmem (__const void *__haystack, size_t __haystacklen,
       __const void *__needle, size_t __needlelen)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
3)));



extern void *__mempcpy (void *__restrict __dest,
   __const void *__restrict __src, size_t __n)
     throw () __attribute__ ((__nonnull__ (1, 2)));
extern void *mempcpy (void *__restrict __dest,
        __const void *__restrict __src, size_t __n)
     throw () __attribute__ ((__nonnull__ (1, 2)));





extern size_t strlen (__const char *__s)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__
(1)));





extern size_t strnlen (__const char *__string, size_t __maxlen)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__
(1)));





extern char *strerror (int __errnum) throw ();

# 281 "/usr/include/string.h" 3 4
extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
     throw () __attribute__ ((__nonnull__ (2)));





extern void __bzero (void *__s, size_t __n) throw () __attribute__
((__nonnull__ (1)));



extern void bcopy (__const void *__src, void *__dest, size_t __n)
     throw () __attribute__ ((__nonnull__ (1, 2)));


extern void bzero (void *__s, size_t __n) throw () __attribute__
((__nonnull__ (1)));


extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));


extern char *index (__const char *__s, int __c)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__
(1)));


extern char *rindex (__const char *__s, int __c)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__
(1)));



extern int ffs (int __i) throw () __attribute__ ((__const__));




extern int ffsl (long int __l) throw () __attribute__ ((__const__));

__extension__ extern int ffsll (long long int __ll)
     throw () __attribute__ ((__const__));




extern int strcasecmp (__const char *__s1, __const char *__s2)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));


extern int strncasecmp (__const char *__s1, __const char *__s2, size_t
__n)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));





extern int strcasecmp_l (__const char *__s1, __const char *__s2,
    __locale_t __loc)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2, 3)));

extern int strncasecmp_l (__const char *__s1, __const char *__s2,
     size_t __n, __locale_t __loc)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2, 4)));





extern char *strsep (char **__restrict __stringp,
       __const char *__restrict __delim)
     throw () __attribute__ ((__nonnull__ (1, 2)));




extern int strverscmp (__const char *__s1, __const char *__s2)
     throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1,
2)));


extern char *strsignal (int __sig) throw ();


extern char *__stpcpy (char *__restrict __dest, __const char *__restrict
__src)
     throw () __attribute__ ((__nonnull__ (1, 2)));
extern char *stpcpy (char *__restrict __dest, __const char *__restrict
__src)
     throw () __attribute__ ((__nonnull__ (1, 2)));



extern char *__stpncpy (char *__restrict __dest,
   __const char *__restrict __src, size_t __n)
     throw () __attribute__ ((__nonnull__ (1, 2)));
extern char *stpncpy (char *__restrict __dest,
        __const char *__restrict __src, size_t __n)
     throw () __attribute__ ((__nonnull__ (1, 2)));


extern char *strfry (char *__string) throw () __attribute__
((__nonnull__ (1)));


extern void *memfrob (void *__s, size_t __n) throw () __attribute__
((__nonnull__ (1)));






extern char *basename (__const char *__filename) throw () __attribute__
((__nonnull__ (1)));
# 426 "/usr/include/string.h" 3 4
}
# 65 "/usr/X11R6/include/X11/Intrinsic.h" 2




typedef char *String;
# 93 "/usr/X11R6/include/X11/Intrinsic.h"
# 1 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 1 3 4
# 94 "/usr/X11R6/include/X11/Intrinsic.h" 2
# 110 "/usr/X11R6/include/X11/Intrinsic.h"
typedef struct _WidgetRec *Widget;
typedef Widget *WidgetList;
typedef struct _WidgetClassRec *WidgetClass;
typedef struct _CompositeRec *CompositeWidget;
typedef struct _XtActionsRec *XtActionList;
typedef struct _XtEventRec *XtEventTable;

typedef struct _XtAppStruct *XtAppContext;
typedef unsigned long XtValueMask;
typedef unsigned long XtIntervalId;
typedef unsigned long XtInputId;
typedef unsigned long XtWorkProcId;
typedef unsigned long XtSignalId;
typedef unsigned int XtGeometryMask;
typedef unsigned long XtGCMask;
typedef unsigned long Pixel;
typedef int XtCacheType;
# 158 "/usr/X11R6/include/X11/Intrinsic.h"
typedef char Boolean;
typedef long XtArgVal;
typedef unsigned char XtEnum;


typedef unsigned int Cardinal;
typedef unsigned short Dimension;
typedef short Position;

typedef void* XtPointer;



typedef XtPointer Opaque;

# 1 "/usr/X11R6/include/X11/Core.h" 1
# 56 "/usr/X11R6/include/X11/Core.h"
typedef struct _WidgetClassRec *CoreWidgetClass;
typedef struct _WidgetRec *CoreWidget;
extern WidgetClass coreWidgetClass;


extern WidgetClass widgetClass;
# 174 "/usr/X11R6/include/X11/Intrinsic.h" 2
# 1 "/usr/X11R6/include/X11/Composite.h" 1
# 54 "/usr/X11R6/include/X11/Composite.h"
typedef struct _CompositeClassRec *CompositeWidgetClass;

typedef Cardinal (*XtOrderProc)(
    Widget
);

extern "C" {

extern void XtManageChildren(
    WidgetList ,
    Cardinal
);

extern void XtManageChild(
    Widget
);

extern void XtUnmanageChildren(
    WidgetList ,
    Cardinal
);

extern void XtUnmanageChild(
    Widget
);

typedef void (*XtDoChangeProc)(
    Widget ,
    WidgetList ,
    Cardinal * ,
    WidgetList ,
    Cardinal * ,
    XtPointer
);

extern void XtChangeManagedSet(
    WidgetList ,
    Cardinal ,
    XtDoChangeProc ,
    XtPointer ,
    WidgetList ,
    Cardinal
);

}


extern WidgetClass compositeWidgetClass;
# 175 "/usr/X11R6/include/X11/Intrinsic.h" 2
# 1 "/usr/X11R6/include/X11/Constraint.h" 1
# 53 "/usr/X11R6/include/X11/Constraint.h"
typedef struct _ConstraintClassRec *ConstraintWidgetClass;


extern WidgetClass constraintWidgetClass;
# 176 "/usr/X11R6/include/X11/Intrinsic.h" 2
# 1 "/usr/X11R6/include/X11/Object.h" 1
# 53 "/usr/X11R6/include/X11/Object.h"
typedef struct _ObjectRec *Object;
typedef struct _ObjectClassRec *ObjectClass;


extern WidgetClass objectClass;
# 177 "/usr/X11R6/include/X11/Intrinsic.h" 2
# 1 "/usr/X11R6/include/X11/RectObj.h" 1
# 53 "/usr/X11R6/include/X11/RectObj.h"
typedef struct _RectObjRec *RectObj;
typedef struct _RectObjClassRec *RectObjClass;


extern WidgetClass rectObjClass;
# 178 "/usr/X11R6/include/X11/Intrinsic.h" 2

typedef struct _TranslationData *XtTranslations;
typedef struct _TranslationData *XtAccelerators;
typedef unsigned int Modifiers;

typedef void (*XtActionProc)(
    Widget ,
    XEvent* ,
    String* ,
    Cardinal*
);

typedef XtActionProc* XtBoundActions;

typedef struct _XtActionsRec{
    String string;
    XtActionProc proc;
} XtActionsRec;

typedef enum {


    XtAddress,
    XtBaseOffset,
    XtImmediate,
    XtResourceString,
    XtResourceQuark,
    XtWidgetBaseOffset,
    XtProcedureArg
} XtAddressMode;

typedef struct {
    XtAddressMode address_mode;
    XtPointer address_id;
    Cardinal size;
} XtConvertArgRec, *XtConvertArgList;

typedef void (*XtConvertArgProc)(
    Widget ,
    Cardinal* ,
    XrmValue*
);

typedef struct {
    XtGeometryMask request_mode;
    Position x, y;
    Dimension width, height, border_width;
    Widget sibling;
    int stack_mode;
} XtWidgetGeometry;







typedef void (*XtConverter)(
    XrmValue* ,
    Cardinal* ,
    XrmValue* ,
    XrmValue*
);

typedef Boolean (*XtTypeConverter)(
    Display* ,
    XrmValue* ,
    Cardinal* ,
    XrmValue* ,
    XrmValue* ,
    XtPointer*
);

typedef void (*XtDestructor)(
    XtAppContext ,
    XrmValue* ,
    XtPointer ,
    XrmValue* ,
    Cardinal*
);

typedef Opaque XtCacheRef;

typedef Opaque XtActionHookId;

typedef void (*XtActionHookProc)(
    Widget ,
    XtPointer ,
    String ,
    XEvent* ,
    String* ,
    Cardinal*
);

typedef unsigned long XtBlockHookId;

typedef void (*XtBlockHookProc)(
    XtPointer
);

typedef void (*XtKeyProc)(
    Display* ,
    unsigned int ,
    Modifiers ,
    Modifiers* ,
    KeySym*
);

typedef void (*XtCaseProc)(
    Display* ,
    KeySym ,
    KeySym* ,
    KeySym*
);

typedef void (*XtEventHandler)(
    Widget ,
    XtPointer ,
    XEvent* ,
    Boolean*
);
typedef unsigned long EventMask;

typedef enum {XtListHead, XtListTail } XtListPosition;

typedef unsigned long XtInputMask;





typedef void (*XtTimerCallbackProc)(
    XtPointer ,
    XtIntervalId*
);

typedef void (*XtInputCallbackProc)(
    XtPointer ,
    int* ,
    XtInputId*
);

typedef void (*XtSignalCallbackProc)(
    XtPointer ,
    XtSignalId*
);

typedef struct {
    String name;
    XtArgVal value;
} Arg, *ArgList;

typedef XtPointer XtVarArgsList;

typedef void (*XtCallbackProc)(
    Widget ,
    XtPointer ,
    XtPointer
);

typedef struct _XtCallbackRec {
    XtCallbackProc callback;
    XtPointer closure;
} XtCallbackRec, *XtCallbackList;

typedef enum {
 XtCallbackNoList,
 XtCallbackHasNone,
 XtCallbackHasSome
} XtCallbackStatus;

typedef enum {
    XtGeometryYes,
    XtGeometryNo,
    XtGeometryAlmost,
    XtGeometryDone
} XtGeometryResult;

typedef enum {XtGrabNone, XtGrabNonexclusive, XtGrabExclusive}
XtGrabKind;

typedef struct {
    Widget shell_widget;
    Widget enable_widget;
} XtPopdownIDRec, *XtPopdownID;

typedef struct _XtResource {
    String resource_name;
    String resource_class;
    String resource_type;
    Cardinal resource_size;
    Cardinal resource_offset;
    String default_type;
    XtPointer default_addr;
} XtResource, *XtResourceList;

typedef void (*XtResourceDefaultProc)(
    Widget ,
    int ,
    XrmValue*
);

typedef String (*XtLanguageProc)(
    Display* ,
    String ,
    XtPointer
);

typedef void (*XtErrorMsgHandler)(
    String ,
    String ,
    String ,
    String ,
    String* ,
    Cardinal*
);

typedef void (*XtErrorHandler)(
  String
);

typedef void (*XtCreatePopupChildProc)(
    Widget
);

typedef Boolean (*XtWorkProc)(
    XtPointer
);

typedef struct {
    char match;
    String substitution;
} SubstitutionRec, *Substitution;

typedef Boolean (*XtFilePredicate)(
   String
);

typedef XtPointer XtRequestId;

typedef Boolean (*XtConvertSelectionProc)(
    Widget ,
    Atom* ,
    Atom* ,
    Atom* ,
    XtPointer* ,
    unsigned long* ,
    int*
);

typedef void (*XtLoseSelectionProc)(
    Widget ,
    Atom*
);

typedef void (*XtSelectionDoneProc)(
    Widget ,
    Atom* ,
    Atom*
);

typedef void (*XtSelectionCallbackProc)(
    Widget ,
    XtPointer ,
    Atom* ,
    Atom* ,
    XtPointer ,
    unsigned long* ,
    int*
);

typedef void (*XtLoseSelectionIncrProc)(
    Widget ,
    Atom* ,
    XtPointer
);

typedef void (*XtSelectionDoneIncrProc)(
    Widget ,
    Atom* ,
    Atom* ,
    XtRequestId* ,
    XtPointer
);

typedef Boolean (*XtConvertSelectionIncrProc)(
    Widget ,
    Atom* ,
    Atom* ,
    Atom* ,
    XtPointer* ,
    unsigned long* ,
    int* ,
    unsigned long* ,
    XtPointer ,
    XtRequestId*
);

typedef void (*XtCancelConvertSelectionProc)(
    Widget ,
    Atom* ,
    Atom* ,
    XtRequestId* ,
    XtPointer
);

typedef Boolean (*XtEventDispatchProc)(
    XEvent*
);

typedef void (*XtExtensionSelectProc)(
    Widget ,
    int* ,
    XtPointer* ,
    int ,
    XtPointer
);







extern "C" {

extern Boolean XtConvertAndStore(
    Widget ,
    const char* ,
    XrmValue* ,
    const char* ,
    XrmValue*
);

extern Boolean XtCallConverter(
    Display* ,
    XtTypeConverter ,
    XrmValuePtr ,
    Cardinal ,
    XrmValuePtr ,
    XrmValue* ,
    XtCacheRef*
);

extern Boolean XtDispatchEvent(
    XEvent*
);

extern Boolean XtCallAcceptFocus(
    Widget ,
    Time*
);

extern Boolean XtPeekEvent(
    XEvent*
);

extern Boolean XtAppPeekEvent(
    XtAppContext ,
    XEvent*
);

extern Boolean XtIsSubclass(
    Widget ,
    WidgetClass
);

extern Boolean XtIsObject(
    Widget
);

extern Boolean _XtCheckSubclassFlag(
    Widget ,
    unsigned int
);

extern Boolean _XtIsSubclassOf(
    Widget ,
    WidgetClass ,
    WidgetClass ,
    unsigned int
);

extern Boolean XtIsManaged(
    Widget
);

extern Boolean XtIsRealized(
    Widget
);

extern Boolean XtIsSensitive(
    Widget
);

extern Boolean XtOwnSelection(
    Widget ,
    Atom ,
    Time ,
    XtConvertSelectionProc ,
    XtLoseSelectionProc ,
    XtSelectionDoneProc
);

extern Boolean XtOwnSelectionIncremental(
    Widget ,
    Atom ,
    Time ,
    XtConvertSelectionIncrProc ,
    XtLoseSelectionIncrProc ,
    XtSelectionDoneIncrProc ,
    XtCancelConvertSelectionProc ,
    XtPointer
);

extern XtGeometryResult XtMakeResizeRequest(
    Widget ,
    unsigned int ,
    unsigned int ,
    Dimension* ,
    Dimension*
);

extern void XtTranslateCoords(
    Widget ,
    int ,
    int ,
    Position* ,
    Position*
);

extern KeySym* XtGetKeysymTable(
    Display* ,
    KeyCode* ,
    int*
);

extern void XtKeysymToKeycodeList(
    Display* ,
    KeySym ,
    KeyCode** ,
    Cardinal*
);

extern void XtStringConversionWarning(
    const char* ,
    const char*
);

extern void XtDisplayStringConversionWarning(
    Display* ,
    const char* ,
    const char*
);

extern XtConvertArgRec const colorConvertArgs[];
extern XtConvertArgRec const screenConvertArg[];

extern void XtAppAddConverter(
    XtAppContext ,
    const char* ,
    const char* ,
    XtConverter ,
    XtConvertArgList ,
    Cardinal
);

extern void XtAddConverter(
    const char* ,
    const char* ,
    XtConverter ,
    XtConvertArgList ,
    Cardinal
);

extern void XtSetTypeConverter(
    const char* ,
    const char* ,
    XtTypeConverter ,
    XtConvertArgList ,
    Cardinal ,
    XtCacheType ,
    XtDestructor
);

extern void XtAppSetTypeConverter(
    XtAppContext ,
    const char* ,
    const char* ,
    XtTypeConverter ,
    XtConvertArgList ,
    Cardinal ,
    XtCacheType ,
    XtDestructor
);

extern void XtConvert(
    Widget ,
    const char* ,
    XrmValue* ,
    const char* ,
    XrmValue*
);

extern void XtDirectConvert(
    XtConverter ,
    XrmValuePtr ,
    Cardinal ,
    XrmValuePtr ,
    XrmValue*
);







extern XtTranslations XtParseTranslationTable(
    const char*
);

extern XtAccelerators XtParseAcceleratorTable(
    const char*
);

extern void XtOverrideTranslations(
    Widget ,
    XtTranslations
);

extern void XtAugmentTranslations(
    Widget ,
    XtTranslations
);

extern void XtInstallAccelerators(
    Widget ,
    Widget
);

extern void XtInstallAllAccelerators(
    Widget ,
    Widget
);

extern void XtUninstallTranslations(
    Widget
);

extern void XtAppAddActions(
    XtAppContext ,
    XtActionList ,
    Cardinal
);

extern void XtAddActions(
    XtActionList ,
    Cardinal
);

extern XtActionHookId XtAppAddActionHook(
    XtAppContext ,
    XtActionHookProc ,
    XtPointer
);

extern void XtRemoveActionHook(
    XtActionHookId
);

extern void XtGetActionList(
    WidgetClass ,
    XtActionList* ,
    Cardinal*
);

extern void XtCallActionProc(
    Widget ,
    const char* ,
    XEvent* ,
    String* ,
    Cardinal
);

extern void XtRegisterGrabAction(
    XtActionProc ,
    int ,
    unsigned int ,
    int ,
    int
);

extern void XtSetMultiClickTime(
    Display* ,
    int
);

extern int XtGetMultiClickTime(
    Display*
);

extern KeySym XtGetActionKeysym(
    XEvent* ,
    Modifiers*
);







extern void XtTranslateKeycode(
    Display* ,
    unsigned int ,
    Modifiers ,
    Modifiers* ,
    KeySym*
);

extern void XtTranslateKey(
    Display* ,
    unsigned int ,
    Modifiers ,
    Modifiers* ,
    KeySym*
);

extern void XtSetKeyTranslator(
    Display* ,
    XtKeyProc
);

extern void XtRegisterCaseConverter(
    Display* ,
    XtCaseProc ,
    KeySym ,
    KeySym
);

extern void XtConvertCase(
    Display* ,
    KeySym ,
    KeySym* ,
    KeySym*
);
# 836 "/usr/X11R6/include/X11/Intrinsic.h"
extern void XtAddEventHandler(
    Widget ,
    EventMask ,
    int ,
    XtEventHandler ,
    XtPointer
);

extern void XtRemoveEventHandler(
    Widget ,
    EventMask ,
    int ,
    XtEventHandler ,
    XtPointer
);

extern void XtAddRawEventHandler(
    Widget ,
    EventMask ,
    int ,
    XtEventHandler ,
    XtPointer
);

extern void XtRemoveRawEventHandler(
    Widget ,
    EventMask ,
    int ,
    XtEventHandler ,
    XtPointer
);

extern void XtInsertEventHandler(
    Widget ,
    EventMask ,
    int ,
    XtEventHandler ,
    XtPointer ,
    XtListPosition
);

extern void XtInsertRawEventHandler(
    Widget ,
    EventMask ,
    int ,
    XtEventHandler ,
    XtPointer ,
    XtListPosition
);

extern XtEventDispatchProc XtSetEventDispatcher(
    Display* ,
    int ,
    XtEventDispatchProc
);

extern Boolean XtDispatchEventToWidget(
    Widget ,
    XEvent*
);

extern void XtInsertEventTypeHandler(
    Widget ,
    int ,
    XtPointer ,
    XtEventHandler ,
    XtPointer ,
    XtListPosition
);

extern void XtRemoveEventTypeHandler(
    Widget ,
    int ,
    XtPointer ,
    XtEventHandler ,
    XtPointer
);

extern EventMask XtBuildEventMask(
    Widget
);

extern void XtRegisterExtensionSelector(
    Display* ,
    int ,
    int ,
    XtExtensionSelectProc ,
    XtPointer
);

extern void XtAddGrab(
    Widget ,
    int ,
    int
);

extern void XtRemoveGrab(
    Widget
);

extern void XtProcessEvent(
    XtInputMask
);

extern void XtAppProcessEvent(
    XtAppContext ,
    XtInputMask
);

extern void XtMainLoop(
    void
);

extern void XtAppMainLoop(
    XtAppContext
);

extern void XtAddExposureToRegion(
    XEvent* ,
    Region
);

extern void XtSetKeyboardFocus(
    Widget ,
    Widget
);

extern Widget XtGetKeyboardFocusWidget(
    Widget
);

extern XEvent* XtLastEventProcessed(
    Display*
);

extern Time XtLastTimestampProcessed(
    Display*
);







extern XtIntervalId XtAddTimeOut(
    unsigned long ,
    XtTimerCallbackProc ,
    XtPointer
);

extern XtIntervalId XtAppAddTimeOut(
    XtAppContext ,
    unsigned long ,
    XtTimerCallbackProc ,
    XtPointer
);

extern void XtRemoveTimeOut(
    XtIntervalId
);

extern XtInputId XtAddInput(
    int ,
    XtPointer ,
    XtInputCallbackProc ,
    XtPointer
);

extern XtInputId XtAppAddInput(
    XtAppContext ,
    int ,
    XtPointer ,
    XtInputCallbackProc ,
    XtPointer
);

extern void XtRemoveInput(
    XtInputId
);

extern XtSignalId XtAppAddSignal(
    XtAppContext ,
    XtSignalCallbackProc ,
    XtPointer
);

extern void XtRemoveSignal(
    XtSignalId
);

extern void XtNoticeSignal(
    XtSignalId
);

extern void XtNextEvent(
    XEvent*
);

extern void XtAppNextEvent(
    XtAppContext ,
    XEvent*
);







extern Boolean XtPending(
    void
);

extern XtInputMask XtAppPending(
    XtAppContext
);

extern XtBlockHookId XtAppAddBlockHook(
    XtAppContext ,
    XtBlockHookProc ,
    XtPointer
);

extern void XtRemoveBlockHook(
    XtBlockHookId
);
# 1093 "/usr/X11R6/include/X11/Intrinsic.h"
extern void XtRealizeWidget(
    Widget
);

void XtUnrealizeWidget(
    Widget
);

extern void XtDestroyWidget(
    Widget
);

extern void XtSetSensitive(
    Widget ,
    int
);

extern void XtSetMappedWhenManaged(
    Widget ,
    int
);

extern Widget XtNameToWidget(
    Widget ,
    const char*
);

extern Widget XtWindowToWidget(
    Display* ,
    Window
);

extern XtPointer XtGetClassExtension(
    WidgetClass ,
    Cardinal ,
    XrmQuark ,
    long ,
    Cardinal
);
# 1143 "/usr/X11R6/include/X11/Intrinsic.h"
extern ArgList XtMergeArgLists(
    ArgList ,
    Cardinal ,
    ArgList ,
    Cardinal
);
# 1159 "/usr/X11R6/include/X11/Intrinsic.h"
extern XtVarArgsList XtVaCreateArgsList(
    XtPointer , ...
);
# 1173 "/usr/X11R6/include/X11/Intrinsic.h"
extern Display *XtDisplay(
    Widget
);

extern Display *XtDisplayOfObject(
    Widget
);

extern Screen *XtScreen(
    Widget
);

extern Screen *XtScreenOfObject(
    Widget
);

extern Window XtWindow(
    Widget
);

extern Window XtWindowOfObject(
    Widget
);

extern String XtName(
    Widget
);

extern WidgetClass XtSuperclass(
    Widget
);

extern WidgetClass XtClass(
    Widget
);

extern Widget XtParent(
    Widget
);







extern void XtAddCallback(
    Widget ,
    const char* ,
    XtCallbackProc ,
    XtPointer
);

extern void XtRemoveCallback(
    Widget ,
    const char* ,
    XtCallbackProc ,
    XtPointer
);

extern void XtAddCallbacks(
    Widget ,
    const char* ,
    XtCallbackList
);

extern void XtRemoveCallbacks(
    Widget ,
    const char* ,
    XtCallbackList
);

extern void XtRemoveAllCallbacks(
    Widget ,
    const char*
);


extern void XtCallCallbacks(
    Widget ,
    const char* ,
    XtPointer
);

extern void XtCallCallbackList(
    Widget ,
    XtCallbackList ,
    XtPointer
);

extern XtCallbackStatus XtHasCallbacks(
    Widget ,
    const char*
);
# 1275 "/usr/X11R6/include/X11/Intrinsic.h"
extern XtGeometryResult XtMakeGeometryRequest(
    Widget ,
    XtWidgetGeometry* ,
    XtWidgetGeometry*
);

extern XtGeometryResult XtQueryGeometry(
    Widget ,
    XtWidgetGeometry* ,
    XtWidgetGeometry*
);

extern Widget XtCreatePopupShell(
    const char* ,
    WidgetClass ,
    Widget ,
    ArgList ,
    Cardinal
);

extern Widget XtVaCreatePopupShell(
    const char* ,
    WidgetClass ,
    Widget ,
    ...
);

extern void XtPopup(
    Widget ,
    XtGrabKind
);

extern void XtPopupSpringLoaded(
    Widget
);

extern void XtCallbackNone(
    Widget ,
    XtPointer ,
    XtPointer
);

extern void XtCallbackNonexclusive(
    Widget ,
    XtPointer ,
    XtPointer
);

extern void XtCallbackExclusive(
    Widget ,
    XtPointer ,
    XtPointer
);

extern void XtPopdown(
    Widget
);

extern void XtCallbackPopdown(
    Widget ,
    XtPointer ,
    XtPointer
);

extern void XtMenuPopupAction(
    Widget ,
    XEvent* ,
    String* ,
    Cardinal*
);

extern Widget XtCreateWidget(
    const char* ,
    WidgetClass ,
    Widget ,
    ArgList ,
    Cardinal
);

extern Widget XtCreateManagedWidget(
    const char* ,
    WidgetClass ,
    Widget ,
    ArgList ,
    Cardinal
);

extern Widget XtVaCreateWidget(
    const char* ,
    WidgetClass ,
    Widget ,
    ...
);

extern Widget XtVaCreateManagedWidget(
    const char* ,
    WidgetClass ,
    Widget ,
    ...
);

extern Widget XtCreateApplicationShell(
    const char* ,
    WidgetClass ,
    ArgList ,
    Cardinal
);

extern Widget XtAppCreateShell(
    const char* ,
    const char* ,
    WidgetClass ,
    Display* ,
    ArgList ,
    Cardinal
);

extern Widget XtVaAppCreateShell(
    const char* ,
    const char* ,
    WidgetClass ,
    Display* ,
    ...
);







extern void XtToolkitInitialize(
    void
);

extern XtLanguageProc XtSetLanguageProc(
    XtAppContext ,
    XtLanguageProc ,
    XtPointer
);

extern void XtDisplayInitialize(
    XtAppContext ,
    Display* ,
    const char* ,
    const char* ,
    XrmOptionDescRec* ,
    Cardinal ,
    int* ,
    char**
);

extern Widget XtOpenApplication(
    XtAppContext* ,
    const char* ,
    XrmOptionDescList ,
    Cardinal ,
    int* ,
    String* ,
    String* ,
    WidgetClass ,
    ArgList ,
    Cardinal
);

extern Widget XtVaOpenApplication(
    XtAppContext* ,
    const char* ,
    XrmOptionDescList ,
    Cardinal ,
    int* ,
    String* ,
    String* ,
    WidgetClass ,
    ...
);

extern Widget XtAppInitialize(
    XtAppContext* ,
    const char* ,
    XrmOptionDescList ,
    Cardinal ,
    int* ,
    String* ,
    String* ,
    ArgList ,
    Cardinal
);

extern Widget XtVaAppInitialize(
    XtAppContext* ,
    const char* ,
    XrmOptionDescList ,
    Cardinal ,
    int* ,
    String* ,
    String* ,
    ...
);

extern Widget XtInitialize(
    const char* ,
    const char* ,
    XrmOptionDescRec* ,
    Cardinal ,
    int* ,
    char**
);

extern Display *XtOpenDisplay(
    XtAppContext ,
    const char* ,
    const char* ,
    const char* ,
    XrmOptionDescRec* ,
    Cardinal ,
    int* ,
    char**
);

extern XtAppContext XtCreateApplicationContext(
    void
);

extern void XtAppSetFallbackResources(
    XtAppContext ,
    String*
);

extern void XtDestroyApplicationContext(
    XtAppContext
);

extern void XtInitializeWidgetClass(
    WidgetClass
);

extern XtAppContext XtWidgetToApplicationContext(
    Widget
);

extern XtAppContext XtDisplayToApplicationContext(
    Display*
);

extern XrmDatabase XtDatabase(
    Display*
);

extern XrmDatabase XtScreenDatabase(
    Screen*
);

extern void XtCloseDisplay(
    Display*
);

extern void XtGetApplicationResources(
    Widget ,
    XtPointer ,
    XtResourceList ,
    Cardinal ,
    ArgList ,
    Cardinal
);

extern void XtVaGetApplicationResources(
    Widget ,
    XtPointer ,
    XtResourceList ,
    Cardinal ,
    ...
);

extern void XtGetSubresources(
    Widget ,
    XtPointer ,
    const char* ,
    const char* ,
    XtResourceList ,
    Cardinal ,
    ArgList ,
    Cardinal
);

extern void XtVaGetSubresources(
    Widget ,
    XtPointer ,
    const char* ,
    const char* ,
    XtResourceList ,
    Cardinal ,
    ...
);

extern void XtSetValues(
    Widget ,
    ArgList ,
    Cardinal
);

extern void XtVaSetValues(
    Widget ,
    ...
);

extern void XtGetValues(
    Widget ,
    ArgList ,
    Cardinal
);

extern void XtVaGetValues(
    Widget ,
    ...
);

extern void XtSetSubvalues(
    XtPointer ,
    XtResourceList ,
    Cardinal ,
    ArgList ,
    Cardinal
);

extern void XtVaSetSubvalues(
    XtPointer ,
    XtResourceList ,
    Cardinal ,
    ...
);

extern void XtGetSubvalues(
    XtPointer ,
    XtResourceList ,
    Cardinal ,
    ArgList ,
    Cardinal
);

extern void XtVaGetSubvalues(
    XtPointer ,
    XtResourceList ,
    Cardinal ,
    ...
);

extern void XtGetResourceList(
    WidgetClass ,
    XtResourceList* ,
    Cardinal*
);

extern void XtGetConstraintResourceList(
    WidgetClass ,
    XtResourceList* ,
    Cardinal*
);
# 1663 "/usr/X11R6/include/X11/Intrinsic.h"
typedef struct _XtCheckpointTokenRec {
    int save_type;
    int interact_style;
    Boolean shutdown;
    Boolean fast;
    Boolean cancel_shutdown;
    int phase;
    int interact_dialog_type;
    Boolean request_cancel;
    Boolean request_next_phase;
    Boolean save_success;
    int type;
    Widget widget;
} XtCheckpointTokenRec, *XtCheckpointToken;

XtCheckpointToken XtSessionGetToken(
    Widget
);

void XtSessionReturnToken(
    XtCheckpointToken
);







extern XtErrorMsgHandler XtAppSetErrorMsgHandler(
    XtAppContext ,
    XtErrorMsgHandler
);

extern void XtSetErrorMsgHandler(
    XtErrorMsgHandler
);

extern XtErrorMsgHandler XtAppSetWarningMsgHandler(
    XtAppContext ,
    XtErrorMsgHandler
);

extern void XtSetWarningMsgHandler(
    XtErrorMsgHandler
);

extern void XtAppErrorMsg(
    XtAppContext ,
    const char* ,
    const char* ,
    const char* ,
    const char* ,
    String* ,
    Cardinal*
);

extern void XtErrorMsg(
    const char* ,
    const char* ,
    const char* ,
    const char* ,
    String* ,
    Cardinal*
);

extern void XtAppWarningMsg(
    XtAppContext ,
    const char* ,
    const char* ,
    const char* ,
    const char* ,
    String* ,
    Cardinal*
);

extern void XtWarningMsg(
    const char* ,
    const char* ,
    const char* ,
    const char* ,
    String* ,
    Cardinal*
);

extern XtErrorHandler XtAppSetErrorHandler(
    XtAppContext ,
    XtErrorHandler
);

extern void XtSetErrorHandler(
    XtErrorHandler
);

extern XtErrorHandler XtAppSetWarningHandler(
    XtAppContext ,
    XtErrorHandler
);

extern void XtSetWarningHandler(
    XtErrorHandler
);

extern void XtAppError(
    XtAppContext ,
    const char*
);

extern void XtError(
    const char*
);

extern void XtAppWarning(
    XtAppContext ,
    const char*
);

extern void XtWarning(
    const char*
);

extern XrmDatabase *XtAppGetErrorDatabase(
    XtAppContext
);

extern XrmDatabase *XtGetErrorDatabase(
    void
);

extern void XtAppGetErrorDatabaseText(
    XtAppContext ,
    const char* ,
    const char* ,
    const char* ,
    const char* ,
    String ,
    int ,
    XrmDatabase
);

extern void XtGetErrorDatabaseText(
    const char* ,
    const char* ,
    const char* ,
    const char* ,
    String ,
    int
);







extern char *XtMalloc(
    Cardinal
);

extern char *XtCalloc(
    Cardinal ,
    Cardinal
);

extern char *XtRealloc(
    char* ,
    Cardinal
);

extern void XtFree(
    char*
);
# 1879 "/usr/X11R6/include/X11/Intrinsic.h"
extern XtWorkProcId XtAddWorkProc(
    XtWorkProc ,
    XtPointer
);

extern XtWorkProcId XtAppAddWorkProc(
    XtAppContext ,
    XtWorkProc ,
    XtPointer
);

extern void XtRemoveWorkProc(
    XtWorkProcId
);







extern GC XtGetGC(
    Widget ,
    XtGCMask ,
    XGCValues*
);

extern GC XtAllocateGC(
    Widget ,
    Cardinal ,
    XtGCMask ,
    XGCValues* ,
    XtGCMask ,
    XtGCMask
);





extern void XtDestroyGC(
    GC
);

extern void XtReleaseGC(
    Widget ,
    GC
);



extern void XtAppReleaseCacheRefs(
    XtAppContext ,
    XtCacheRef*
);

extern void XtCallbackReleaseCacheRef(
    Widget ,
    XtPointer ,
    XtPointer
);

extern void XtCallbackReleaseCacheRefList(
    Widget ,
    XtPointer ,
    XtPointer
);

extern void XtSetWMColormapWindows(
    Widget ,
    Widget* ,
    Cardinal
);

extern String XtFindFile(
    const char* ,
    Substitution ,
    Cardinal ,
    XtFilePredicate
);

extern String XtResolvePathname(
    Display* ,
    const char* ,
    const char* ,
    const char* ,
    const char* ,
    Substitution ,
    Cardinal ,
    XtFilePredicate
);
# 1979 "/usr/X11R6/include/X11/Intrinsic.h"
extern void XtDisownSelection(
    Widget ,
    Atom ,
    Time
);

extern void XtGetSelectionValue(
    Widget ,
    Atom ,
    Atom ,
    XtSelectionCallbackProc ,
    XtPointer ,
    Time
);

extern void XtGetSelectionValues(
    Widget ,
    Atom ,
    Atom* ,
    int ,
    XtSelectionCallbackProc ,
    XtPointer* ,
    Time
);

extern void XtAppSetSelectionTimeout(
    XtAppContext ,
    unsigned long
);

extern void XtSetSelectionTimeout(
    unsigned long
);

extern unsigned long XtAppGetSelectionTimeout(
    XtAppContext
);

extern unsigned long XtGetSelectionTimeout(
    void
);

extern XSelectionRequestEvent *XtGetSelectionRequest(
    Widget ,
    Atom ,
    XtRequestId
);

extern void XtGetSelectionValueIncremental(
    Widget ,
    Atom ,
    Atom ,
    XtSelectionCallbackProc ,
    XtPointer ,
    Time
);

extern void XtGetSelectionValuesIncremental(
    Widget ,
    Atom ,
    Atom* ,
    int ,
    XtSelectionCallbackProc ,
    XtPointer* ,
    Time
);

extern void XtSetSelectionParameters(
    Widget ,
    Atom ,
    Atom ,
    XtPointer ,
    unsigned long ,
    int
);

extern void XtGetSelectionParameters(
    Widget ,
    Atom ,
    XtRequestId ,
    Atom* ,
    XtPointer* ,
    unsigned long* ,
    int*
);

extern void XtCreateSelectionRequest(
    Widget ,
    Atom
);

extern void XtSendSelectionRequest(
    Widget ,
    Atom ,
    Time
);

extern void XtCancelSelectionRequest(
    Widget ,
    Atom
);

extern Atom XtReservePropertyAtom(
    Widget
);

extern void XtReleasePropertyAtom(
    Widget ,
    Atom
);

extern void XtGrabKey(
    Widget ,
    unsigned int ,
    Modifiers ,
    int ,
    int ,
    int
);

extern void XtUngrabKey(
    Widget ,
    unsigned int ,
    Modifiers
);

extern int XtGrabKeyboard(
    Widget ,
    int ,
    int ,
    int ,
    Time
);

extern void XtUngrabKeyboard(
    Widget ,
    Time
);

extern void XtGrabButton(
    Widget ,
    int ,
    Modifiers ,
    int ,
    unsigned int ,
    int ,
    int ,
    Window ,
    Cursor
);

extern void XtUngrabButton(
    Widget ,
    unsigned int ,
    Modifiers
);

extern int XtGrabPointer(
    Widget ,
    int ,
    unsigned int ,
    int ,
    int ,
    Window ,
    Cursor ,
    Time
);

extern void XtUngrabPointer(
    Widget ,
    Time
);

extern void XtGetApplicationNameAndClass(
    Display* ,
    String* ,
    String*
);

extern void XtRegisterDrawable(
    Display* ,
    Drawable ,
    Widget
);

extern void XtUnregisterDrawable(
    Display* ,
    Drawable
);

extern Widget XtHooksOfDisplay(
    Display*
);

typedef struct {
    String type;
    Widget widget;
    ArgList args;
    Cardinal num_args;
} XtCreateHookDataRec, *XtCreateHookData;

typedef struct {
    String type;
    Widget widget;
    XtPointer event_data;
    Cardinal num_event_data;
} XtChangeHookDataRec, *XtChangeHookData;

typedef struct {
    Widget old, req;
    ArgList args;
    Cardinal num_args;
} XtChangeHookSetValuesDataRec, *XtChangeHookSetValuesData;

typedef struct {
    String type;
    Widget widget;
    XtGeometryMask changeMask;
    XWindowChanges changes;
} XtConfigureHookDataRec, *XtConfigureHookData;

typedef struct {
    String type;
    Widget widget;
    XtWidgetGeometry* request;
    XtWidgetGeometry* reply;
    XtGeometryResult result;
} XtGeometryHookDataRec, *XtGeometryHookData;

typedef struct {
    String type;
    Widget widget;
} XtDestroyHookDataRec, *XtDestroyHookData;

extern void XtGetDisplays(
    XtAppContext ,
    Display*** ,
    Cardinal*
);

extern Boolean XtToolkitThreadInitialize(
    void
);

extern void XtAppSetExitFlag(
    XtAppContext
);

extern Boolean XtAppGetExitFlag(
    XtAppContext
);

extern void XtAppLock(
    XtAppContext
);

extern void XtAppUnlock(
    XtAppContext
);
# 2246 "/usr/X11R6/include/X11/Intrinsic.h"
extern Boolean XtCvtStringToAcceleratorTable(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToAtom(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToBool(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToBoolean(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToCommandArgArray(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToCursor(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToDimension(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToDirectoryString(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToDisplay(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToFile(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToFloat(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToFont(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToFontSet(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToFontStruct(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToGravity(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToInitialState(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToInt(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToPixel(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);



extern Boolean XtCvtStringToRestartStyle(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToShort(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToTranslationTable(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToUnsignedChar(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtStringToVisual(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);



extern Boolean XtCvtIntToBool(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtIntToBoolean(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtIntToColor(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);



extern Boolean XtCvtIntToFloat(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtIntToFont(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtIntToPixel(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtIntToPixmap(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);



extern Boolean XtCvtIntToShort(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);

extern Boolean XtCvtIntToUnsignedChar(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);



extern Boolean XtCvtColorToPixel(
    Display* ,
    XrmValuePtr ,
    Cardinal* ,
    XrmValuePtr ,
    XrmValuePtr ,
    XtPointer*
);






}
# 57 "/usr/X11R6/include/Xm/Xm.h" 2
# 1 "/usr/X11R6/include/X11/Shell.h" 1
# 54 "/usr/X11R6/include/X11/Shell.h"
# 1 "/usr/X11R6/include/X11/SM/SMlib.h" 1
# 36 "/usr/X11R6/include/X11/SM/SMlib.h"
# 1 "/usr/X11R6/include/X11/SM/SM.h" 1
# 37 "/usr/X11R6/include/X11/SM/SMlib.h" 2
# 1 "/usr/X11R6/include/X11/ICE/ICElib.h" 1
# 34 "/usr/X11R6/include/X11/ICE/ICElib.h"
# 1 "/usr/X11R6/include/X11/ICE/ICE.h" 1
# 35 "/usr/X11R6/include/X11/ICE/ICElib.h" 2







typedef void *IcePointer;

typedef enum {
    IcePoAuthHaveReply,
    IcePoAuthRejected,
    IcePoAuthFailed,
    IcePoAuthDoneCleanup
} IcePoAuthStatus;

typedef enum {
    IcePaAuthContinue,
    IcePaAuthAccepted,
    IcePaAuthRejected,
    IcePaAuthFailed
} IcePaAuthStatus;

typedef enum {
    IceConnectPending,
    IceConnectAccepted,
    IceConnectRejected,
    IceConnectIOError
} IceConnectStatus;

typedef enum {
    IceProtocolSetupSuccess,
    IceProtocolSetupFailure,
    IceProtocolSetupIOError,
    IceProtocolAlreadyActive
} IceProtocolSetupStatus;

typedef enum {
    IceAcceptSuccess,
    IceAcceptFailure,
    IceAcceptBadMalloc
} IceAcceptStatus;

typedef enum {
    IceClosedNow,
    IceClosedASAP,
    IceConnectionInUse,
    IceStartedShutdownNegotiation
} IceCloseStatus;

typedef enum {
    IceProcessMessagesSuccess,
    IceProcessMessagesIOError,
    IceProcessMessagesConnectionClosed
} IceProcessMessagesStatus;

typedef struct {
    unsigned long sequence_of_request;
    int major_opcode_of_request;
    int minor_opcode_of_request;
    IcePointer reply;
} IceReplyWaitInfo;

typedef struct _IceConn *IceConn;
typedef struct _IceListenObj *IceListenObj;

typedef void (*IceWatchProc) (
    IceConn ,
    IcePointer ,
    int ,
    IcePointer *
);

typedef void (*IcePoProcessMsgProc) (
    IceConn ,
    IcePointer ,
    int ,
    unsigned long ,
    int ,
    IceReplyWaitInfo * ,
    int *
);

typedef void (*IcePaProcessMsgProc) (
    IceConn ,
    IcePointer ,
    int ,
    unsigned long ,
    int
);

typedef struct {
    int major_version;
    int minor_version;
    IcePoProcessMsgProc process_msg_proc;
} IcePoVersionRec;

typedef struct {
    int major_version;
    int minor_version;
    IcePaProcessMsgProc process_msg_proc;
} IcePaVersionRec;

typedef IcePoAuthStatus (*IcePoAuthProc) (
    IceConn ,
    IcePointer * ,
    int ,
    int ,
    int ,
    IcePointer ,
    int * ,
    IcePointer * ,
    char **
);

typedef IcePaAuthStatus (*IcePaAuthProc) (
    IceConn ,
    IcePointer * ,
    int ,
    int ,
    IcePointer ,
    int * ,
    IcePointer * ,
    char **
);

typedef int (*IceHostBasedAuthProc) (
    char *
);

typedef int (*IceProtocolSetupProc) (
    IceConn ,
    int ,
    int ,
    char * ,
    char * ,
    IcePointer * ,
    char **
);

typedef void (*IceProtocolActivateProc) (
    IceConn ,
    IcePointer
);

typedef void (*IceIOErrorProc) (
    IceConn
);

typedef void (*IcePingReplyProc) (
    IceConn ,
    IcePointer
);

typedef void (*IceErrorHandler) (
    IceConn ,
    int ,
    int ,
    unsigned long ,
    int ,
    int ,
    IcePointer
);

typedef void (*IceIOErrorHandler) (
    IceConn
);






extern "C" {

extern int IceRegisterForProtocolSetup (
    char * ,
    char * ,
    char * ,
    int ,
    IcePoVersionRec * ,
    int ,
    char ** ,
    IcePoAuthProc * ,
    IceIOErrorProc
);

extern int IceRegisterForProtocolReply (
    char * ,
    char * ,
    char * ,
    int ,
    IcePaVersionRec * ,
    int ,
    char ** ,
    IcePaAuthProc * ,
    IceHostBasedAuthProc ,
    IceProtocolSetupProc ,
    IceProtocolActivateProc ,
    IceIOErrorProc
);

extern IceConn IceOpenConnection (
    char * ,
    IcePointer ,
    int ,
    int ,
    int ,
    char *
);

extern IcePointer IceGetConnectionContext (
    IceConn
);

extern int IceListenForConnections (
    int * ,
    IceListenObj ** ,
    int ,
    char *
);

extern int IceListenForWellKnownConnections (
    char * ,
    int * ,
    IceListenObj ** ,
    int ,
    char *
);

extern int IceGetListenConnectionNumber (
    IceListenObj
);

extern char *IceGetListenConnectionString (
    IceListenObj
);

extern char *IceComposeNetworkIdList (
    int ,
    IceListenObj *
);

extern void IceFreeListenObjs (
    int ,
    IceListenObj *
);

extern void IceSetHostBasedAuthProc (
    IceListenObj ,
    IceHostBasedAuthProc
);

extern IceConn IceAcceptConnection (
    IceListenObj ,
    IceAcceptStatus *
);

extern void IceSetShutdownNegotiation (
    IceConn ,
    int
);

extern int IceCheckShutdownNegotiation (
    IceConn
);

extern IceCloseStatus IceCloseConnection (
    IceConn
);

extern int IceAddConnectionWatch (
    IceWatchProc ,
    IcePointer
);

extern void IceRemoveConnectionWatch (
    IceWatchProc ,
    IcePointer
);

extern IceProtocolSetupStatus IceProtocolSetup (
    IceConn ,
    int ,
    IcePointer ,
    int ,
    int * ,
    int * ,
    char ** ,
    char ** ,
    int ,
    char *
);

extern int IceProtocolShutdown (
    IceConn ,
    int
);

extern IceProcessMessagesStatus IceProcessMessages (
    IceConn ,
    IceReplyWaitInfo * ,
    int *
);

extern int IcePing (
   IceConn ,
   IcePingReplyProc ,
   IcePointer
);

extern char *IceAllocScratch (
   IceConn ,
   unsigned long
);

extern int IceFlush (
   IceConn
);

extern int IceGetOutBufSize (
   IceConn
);

extern int IceGetInBufSize (
   IceConn
);

extern IceConnectStatus IceConnectionStatus (
    IceConn
);

extern char *IceVendor (
    IceConn
);

extern char *IceRelease (
    IceConn
);

extern int IceProtocolVersion (
    IceConn
);

extern int IceProtocolRevision (
    IceConn
);

extern int IceConnectionNumber (
    IceConn
);

extern char *IceConnectionString (
    IceConn
);

extern unsigned long IceLastSentSequenceNumber (
    IceConn
);

extern unsigned long IceLastReceivedSequenceNumber (
    IceConn
);

extern int IceSwapping (
    IceConn
);

extern IceErrorHandler IceSetErrorHandler (
    IceErrorHandler
);

extern IceIOErrorHandler IceSetIOErrorHandler (
    IceIOErrorHandler
);






extern int IceInitThreads (
    void
);

extern void IceAppLockConn (
    IceConn
);

extern void IceAppUnlockConn (
    IceConn
);

}
# 38 "/usr/X11R6/include/X11/SM/SMlib.h" 2






typedef IcePointer SmPointer;






typedef struct _SmcConn *SmcConn;
typedef struct _SmsConn *SmsConn;






typedef struct {
    int length;
    SmPointer value;
} SmPropValue;

typedef struct {
    char *name;
    char *type;
    int num_vals;
    SmPropValue *vals;
} SmProp;







typedef enum {
    SmcClosedNow,
    SmcClosedASAP,
    SmcConnectionInUse
} SmcCloseStatus;







typedef void (*SmcSaveYourselfProc) (
    SmcConn ,
    SmPointer ,
    int ,
    int ,
    int ,
    int
);

typedef void (*SmcSaveYourselfPhase2Proc) (
    SmcConn ,
    SmPointer
);

typedef void (*SmcInteractProc) (
    SmcConn ,
    SmPointer
);

typedef void (*SmcDieProc) (
    SmcConn ,
    SmPointer
);

typedef void (*SmcShutdownCancelledProc) (
    SmcConn ,
    SmPointer
);

typedef void (*SmcSaveCompleteProc) (
    SmcConn ,
    SmPointer
);

typedef void (*SmcPropReplyProc) (
    SmcConn ,
    SmPointer ,
    int ,
    SmProp **
);






typedef struct {

    struct {
 SmcSaveYourselfProc callback;
 SmPointer client_data;
    } save_yourself;

    struct {
 SmcDieProc callback;
 SmPointer client_data;
    } die;

    struct {
 SmcSaveCompleteProc callback;
 SmPointer client_data;
    } save_complete;

    struct {
 SmcShutdownCancelledProc callback;
 SmPointer client_data;
    } shutdown_cancelled;

} SmcCallbacks;
# 170 "/usr/X11R6/include/X11/SM/SMlib.h"
typedef int (*SmsRegisterClientProc) (
    SmsConn ,
    SmPointer ,
    char *
);

typedef void (*SmsInteractRequestProc) (
    SmsConn ,
    SmPointer ,
    int
);

typedef void (*SmsInteractDoneProc) (
    SmsConn ,
    SmPointer ,
    int
);

typedef void (*SmsSaveYourselfRequestProc) (
    SmsConn ,
    SmPointer ,
    int ,
    int ,
    int ,
    int ,
    int
);

typedef void (*SmsSaveYourselfPhase2RequestProc) (
    SmsConn ,
    SmPointer
);

typedef void (*SmsSaveYourselfDoneProc) (
    SmsConn ,
    SmPointer ,
    int
);

typedef void (*SmsCloseConnectionProc) (
    SmsConn ,
    SmPointer ,
    int ,
    char **
);

typedef void (*SmsSetPropertiesProc) (
    SmsConn ,
    SmPointer ,
    int ,
    SmProp **
);

typedef void (*SmsDeletePropertiesProc) (
    SmsConn ,
    SmPointer ,
    int ,
    char **
);

typedef void (*SmsGetPropertiesProc) (
    SmsConn ,
    SmPointer
);






typedef struct {

    struct {
 SmsRegisterClientProc callback;
 SmPointer manager_data;
    } register_client;

    struct {
 SmsInteractRequestProc callback;
 SmPointer manager_data;
    } interact_request;

    struct {
 SmsInteractDoneProc callback;
 SmPointer manager_data;
    } interact_done;

    struct {
 SmsSaveYourselfRequestProc callback;
 SmPointer manager_data;
    } save_yourself_request;

    struct {
 SmsSaveYourselfPhase2RequestProc callback;
 SmPointer manager_data;
    } save_yourself_phase2_request;

    struct {
 SmsSaveYourselfDoneProc callback;
 SmPointer manager_data;
    } save_yourself_done;

    struct {
 SmsCloseConnectionProc callback;
 SmPointer manager_data;
    } close_connection;

    struct {
 SmsSetPropertiesProc callback;
 SmPointer manager_data;
    } set_properties;

    struct {
 SmsDeletePropertiesProc callback;
 SmPointer manager_data;
    } delete_properties;

    struct {
 SmsGetPropertiesProc callback;
 SmPointer manager_data;
    } get_properties;

} SmsCallbacks;
# 308 "/usr/X11R6/include/X11/SM/SMlib.h"
typedef int (*SmsNewClientProc) (
    SmsConn ,
    SmPointer ,
    unsigned long * ,
    SmsCallbacks * ,
    char **
);







typedef void (*SmcErrorHandler) (
    SmcConn ,
    int ,
    int ,
    unsigned long ,
    int ,
    int ,
    SmPointer
);

typedef void (*SmsErrorHandler) (
    SmsConn ,
    int ,
    int ,
    unsigned long ,
    int ,
    int ,
    SmPointer
);







extern "C" {

extern SmcConn SmcOpenConnection (
    char * ,
    SmPointer ,
    int ,
    int ,
    unsigned long ,
    SmcCallbacks * ,
    char * ,
    char ** ,
    int ,
    char *
);

extern SmcCloseStatus SmcCloseConnection (
    SmcConn ,
    int ,
    char **
);

extern void SmcModifyCallbacks (
    SmcConn ,
    unsigned long ,
    SmcCallbacks *
);

extern void SmcSetProperties (
    SmcConn ,
    int ,
    SmProp **
);

extern void SmcDeleteProperties (
    SmcConn ,
    int ,
    char **
);

extern int SmcGetProperties (
    SmcConn ,
    SmcPropReplyProc ,
    SmPointer
);

extern int SmcInteractRequest (
    SmcConn ,
    int ,
    SmcInteractProc ,
    SmPointer
);

extern void SmcInteractDone (
    SmcConn ,
    int
);

extern void SmcRequestSaveYourself (
    SmcConn ,
    int ,
    int ,
    int ,
    int ,
    int
);

extern int SmcRequestSaveYourselfPhase2 (
    SmcConn ,
    SmcSaveYourselfPhase2Proc ,
    SmPointer
);

extern void SmcSaveYourselfDone (
    SmcConn ,
    int
);

extern int SmcProtocolVersion (
    SmcConn
);

extern int SmcProtocolRevision (
    SmcConn
);

extern char *SmcVendor (
    SmcConn
);

extern char *SmcRelease (
    SmcConn
);

extern char *SmcClientID (
    SmcConn
);

extern IceConn SmcGetIceConnection (
    SmcConn
);

extern int SmsInitialize (
    char * ,
    char * ,
    SmsNewClientProc ,
    SmPointer ,
    IceHostBasedAuthProc ,
    int ,
    char *
);

extern char *SmsClientHostName (
    SmsConn
);

extern char *SmsGenerateClientID (
    SmsConn
);

extern int SmsRegisterClientReply (
    SmsConn ,
    char *
);

extern void SmsSaveYourself (
    SmsConn ,
    int ,
    int ,
    int ,
    int
);

extern void SmsSaveYourselfPhase2 (
    SmsConn
);

extern void SmsInteract (
    SmsConn
);

extern void SmsDie (
    SmsConn
);

extern void SmsSaveComplete (
    SmsConn
);

extern void SmsShutdownCancelled (
    SmsConn
);

extern void SmsReturnProperties (
    SmsConn ,
    int ,
    SmProp **
);

extern void SmsCleanUp (
    SmsConn
);

extern int SmsProtocolVersion (
    SmsConn
);

extern int SmsProtocolRevision (
    SmsConn
);

extern char *SmsClientID (
    SmsConn
);

extern IceConn SmsGetIceConnection (
    SmsConn
);

extern SmcErrorHandler SmcSetErrorHandler (
    SmcErrorHandler
);

extern SmsErrorHandler SmsSetErrorHandler (
    SmsErrorHandler
);

extern void SmFreeProperty (
    SmProp *
);

extern void SmFreeReasons (
    int ,
    char **
);

}
# 55 "/usr/X11R6/include/X11/Shell.h" 2
# 194 "/usr/X11R6/include/X11/Shell.h"
extern const char XtShellStrings[];
# 548 "/usr/X11R6/include/X11/Shell.h"
typedef struct _ShellClassRec *ShellWidgetClass;
typedef struct _OverrideShellClassRec *OverrideShellWidgetClass;
typedef struct _WMShellClassRec *WMShellWidgetClass;
typedef struct _TransientShellClassRec *TransientShellWidgetClass;
typedef struct _TopLevelShellClassRec *TopLevelShellWidgetClass;
typedef struct _ApplicationShellClassRec *ApplicationShellWidgetClass;
typedef struct _SessionShellClassRec *SessionShellWidgetClass;


extern WidgetClass shellWidgetClass;
extern WidgetClass overrideShellWidgetClass;
extern WidgetClass wmShellWidgetClass;
extern WidgetClass transientShellWidgetClass;
extern WidgetClass topLevelShellWidgetClass;
extern WidgetClass applicationShellWidgetClass;
extern WidgetClass sessionShellWidgetClass;
# 58 "/usr/X11R6/include/Xm/Xm.h" 2
# 1 "/usr/X11R6/include/X11/Xatom.h" 1
# 59 "/usr/X11R6/include/Xm/Xm.h" 2
# 1 "/usr/X11R6/include/X11/extensions/Print.h" 1
# 68 "/usr/X11R6/include/X11/extensions/Print.h"
# 1 "/usr/X11R6/include/X11/Xauth.h" 1
# 34 "/usr/X11R6/include/X11/Xauth.h"
typedef struct xauth {
    unsigned short family;
    unsigned short address_length;
    char *address;
    unsigned short number_length;
    char *number;
    unsigned short name_length;
    char *name;
    unsigned short data_length;
    char *data;
} Xauth;




# 1 "/usr/X11R6/include/X11/Xfuncs.h" 1
# 50 "/usr/X11R6/include/X11/Xauth.h" 2

# 1 "/usr/include/stdio.h" 1 3 4
# 30 "/usr/include/stdio.h" 3 4
extern "C" {



# 1 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 1 3 4
# 35 "/usr/include/stdio.h" 2 3 4
# 44 "/usr/include/stdio.h" 3 4


typedef struct _IO_FILE FILE;





# 62 "/usr/include/stdio.h" 3 4
typedef struct _IO_FILE __FILE;
# 72 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/libio.h" 1 3 4
# 32 "/usr/include/libio.h" 3 4
# 1 "/usr/include/_G_config.h" 1 3 4
# 14 "/usr/include/_G_config.h" 3 4
# 1 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 1 3 4
# 354 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 3 4
typedef unsigned int wint_t;
# 15 "/usr/include/_G_config.h" 2 3 4
# 24 "/usr/include/_G_config.h" 3 4
# 1 "/usr/include/wchar.h" 1 3 4
# 48 "/usr/include/wchar.h" 3 4
# 1 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 1 3 4
# 49 "/usr/include/wchar.h" 2 3 4

# 1 "/usr/include/bits/wchar.h" 1 3 4
# 51 "/usr/include/wchar.h" 2 3 4
# 76 "/usr/include/wchar.h" 3 4
typedef struct
{
  int __count;
  union
  {
    wint_t __wch;
    char __wchb[4];
  } __value;
} __mbstate_t;
# 25 "/usr/include/_G_config.h" 2 3 4

typedef struct
{
  __off_t __pos;
  __mbstate_t __state;
} _G_fpos_t;
typedef struct
{
  __off64_t __pos;
  __mbstate_t __state;
} _G_fpos64_t;
# 44 "/usr/include/_G_config.h" 3 4
# 1 "/usr/include/gconv.h" 1 3 4
# 28 "/usr/include/gconv.h" 3 4
# 1 "/usr/include/wchar.h" 1 3 4
# 48 "/usr/include/wchar.h" 3 4
# 1 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 1 3 4
# 49 "/usr/include/wchar.h" 2 3 4
# 29 "/usr/include/gconv.h" 2 3 4


# 1 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h" 1 3 4
# 32 "/usr/include/gconv.h" 2 3 4





enum
{
  __GCONV_OK = 0,
  __GCONV_NOCONV,
  __GCONV_NODB,
  __GCONV_NOMEM,

  __GCONV_EMPTY_INPUT,
  __GCONV_FULL_OUTPUT,
  __GCONV_ILLEGAL_INPUT,
  __GCONV_INCOMPLETE_INPUT,

  __GCONV_ILLEGAL_DESCRIPTOR,
  __GCONV_INTERNAL_ERROR
};



enum
{
  __GCONV_IS_LAST = 0x0001,
  __GCONV_IGNORE_ERRORS = 0x0002
};



struct __gconv_step;
struct __gconv_step_data;
struct __gconv_loaded_object;
struct __gconv_trans_data;



typedef int (*__gconv_fct) (struct __gconv_step *, struct
__gconv_step_data *,
       __const unsigned char **, __const unsigned char *,
       unsigned char **, size_t *, int, int);


typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned
char);


typedef int (*__gconv_init_fct) (struct __gconv_step *);
typedef void (*__gconv_end_fct) (struct __gconv_step *);



typedef int (*__gconv_trans_fct) (struct __gconv_step *,
      struct __gconv_step_data *, void *,
      __const unsigned char *,
      __const unsigned char **,
      __const unsigned char *, unsigned char **,
      size_t *);


typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char
*,
       __const unsigned char *,
       unsigned char *, unsigned char *);


typedef int (*__gconv_trans_query_fct) (__const char *, __const char
***,
     size_t *);


typedef int (*__gconv_trans_init_fct) (void **, const char *);
typedef void (*__gconv_trans_end_fct) (void *);

struct __gconv_trans_data
{

  __gconv_trans_fct __trans_fct;
  __gconv_trans_context_fct __trans_context_fct;
  __gconv_trans_end_fct __trans_end_fct;
  void *__data;
  struct __gconv_trans_data *__next;
};



struct __gconv_step
{
  struct __gconv_loaded_object *__shlib_handle;
  __const char *__modname;

  int __counter;

  char *__from_name;
  char *__to_name;

  __gconv_fct __fct;
  __gconv_btowc_fct __btowc_fct;
  __gconv_init_fct __init_fct;
  __gconv_end_fct __end_fct;



  int __min_needed_from;
  int __max_needed_from;
  int __min_needed_to;
  int __max_needed_to;


  int __stateful;

  void *__data;
};



struct __gconv_step_data
{
  unsigned char *__outbuf;
  unsigned char *__outbufend;



  int __flags;



  int __invocation_counter;



  int __internal_use;

  __mbstate_t *__statep;
  __mbstate_t __state;



  struct __gconv_trans_data *__trans;
};



typedef struct __gconv_info
{
  size_t __nsteps;
  struct __gconv_step *__steps;
  __extension__ struct __gconv_step_data __data [];
} *__gconv_t;
# 45 "/usr/include/_G_config.h" 2 3 4
typedef union
{
  struct __gconv_info __cd;
  struct
  {
    struct __gconv_info __cd;
    struct __gconv_step_data __data;
  } __combined;
} _G_iconv_t;

typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
# 33 "/usr/include/libio.h" 2 3 4
# 53 "/usr/include/libio.h" 3 4
# 1 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stdarg.h" 1 3 4
# 43 "/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stdarg.h" 3 4
typedef __builtin_va_list __gnuc_va_list;
# 54 "/usr/include/libio.h" 2 3 4
# 166 "/usr/include/libio.h" 3 4
struct _IO_jump_t; struct _IO_FILE;
# 176 "/usr/include/libio.h" 3 4
typedef void _IO_lock_t;





struct _IO_marker {
  struct _IO_marker *_next;
  struct _IO_FILE *_sbuf;



  int _pos;
# 199 "/usr/include/libio.h" 3 4
};


enum __codecvt_result
{
  __codecvt_ok,
  __codecvt_partial,
  __codecvt_error,
  __codecvt_noconv
};
# 267 "/usr/include/libio.h" 3 4
struct _IO_FILE {
  int _flags;




  char* _IO_read_ptr;
  char* _IO_read_end;
  char* _IO_read_base;
  char* _IO_write_base;
  char* _IO_write_ptr;
  char* _IO_write_end;
  char* _IO_buf_base;
  char* _IO_buf_end;

  char *_IO_save_base;
  char *_IO_backup_base;
  char *_IO_save_end;

  struct _IO_marker *_markers;

  struct _IO_FILE *_chain;

  int _fileno;



  int _flags2;

  __off_t _old_offset;



  unsigned short _cur_column;
  signed char _vtable_offset;
  char _shortbuf[1];



  _IO_lock_t *_lock;
# 315 "/usr/include/libio.h" 3 4
  __off64_t _offset;





  void *__pad1;
  void *__pad2;

  int _mode;

  char _unused2[15 * sizeof (int) - 2 * sizeof (void *)];

};





struct _IO_FILE_plus;

extern struct _IO_FILE_plus _IO_2_1_stdin_;
extern struct _IO_FILE_plus _IO_2_1_stdout_;
extern struct _IO_FILE_plus _IO_2_1_stderr_;
# 354 "/usr/include/libio.h" 3 4
typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t
__nbytes);







typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
     size_t __n);







typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);


typedef int __io_close_fn (void *__cookie);




typedef __io_read_fn cookie_read_function_t;
typedef __io_write_fn cookie_write_function_t;
typedef __io_seek_fn cookie_seek_function_t;
typedef __io_close_fn cookie_close_function_t;


typedef struct
{
  __io_read_fn *read;
  __io_write_fn *write;
  __io_seek_fn *seek;
  __io_close_fn *close;
} _IO_cookie_io_functions_t;
typedef _IO_cookie_io_functions_t cookie_io_functions_t;

struct _IO_cookie_file;


extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int
__read_write,
        void *__cookie, _IO_cookie_io_functions_t __fns);




extern "C" {


extern int __underflow (_IO_FILE *) throw ();
extern int __uflow (_IO_FILE *) throw ();
extern int __overflow (_IO_FILE *, int) throw ();
extern wint_t __wunderflow (_IO_FILE *) throw ();
extern wint_t __wuflow (_IO_FILE *) throw ();
extern wint_t __woverflow (_IO_FILE *, wint_t) throw ();
# 444 "/usr/include/libio.h" 3 4
extern int _IO_getc (_IO_FILE *__fp) throw ();
extern int _IO_putc (int __c, _IO_FILE *__fp) throw ();
extern int _IO_feof (_IO_FILE *__fp) throw ();
extern int _IO_ferror (_IO_FILE *__fp) throw ();

extern int _IO_peekc_locked (_IO_FILE *__fp) throw ();





extern void _IO_flockfile (_IO_FILE *) throw ();
extern void _IO_funlockfile (_IO_FILE *) throw ();
extern int _IO_ftrylockfile (_IO_FILE *) throw ();
# 474 "/usr/include/libio.h" 3 4
extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
   __gnuc_va_list, int *__restrict) throw ();
extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
    __gnuc_va_list) throw ();
extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) throw ();
extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) throw ();

extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) throw ();
extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) throw ();

extern void _IO_free_backup_area (_IO_FILE *) throw ();
# 532 "/usr/include/libio.h" 3 4
}
# 73 "/usr/include/stdio.h" 2 3 4




typedef __gnuc_va_list va_list;
# 86 "/usr/include/stdio.h" 3 4


typedef _G_fpos_t fpos_t;





typedef _G_fpos64_t fpos64_t;
# 138 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/bits/stdio_lim.h" 1 3 4
# 139 "/usr/include/stdio.h" 2 3 4



extern struct _IO_FILE *stdin;
extern struct _IO_FILE *stdout;
extern struct _IO_FILE *stderr;









extern int remove (__const char *__filename) throw ();

extern int rename (__const char *__old, __const char *__new) throw ();









extern FILE *tmpfile (void);
# 176 "/usr/include/stdio.h" 3 4
extern FILE *tmpfile64 (void);



extern char *tmpnam (char *__s) throw ();





extern char *tmpnam_r (char *__s) throw ();
# 198 "/usr/include/stdio.h" 3 4
extern char *tempnam (__const char *__dir, __const char *__pfx)
     throw () __attribute__ ((__malloc__));








extern int fclose (FILE *__stream);




extern int fflush (FILE *__stream);

# 223 "/usr/include/stdio.h" 3 4
extern int fflush_unlocked (FILE *__stream);
# 233 "/usr/include/stdio.h" 3 4
extern int fcloseall (void);









extern FILE *fopen (__const char *__restrict __filename,
      __const char *__restrict __modes);




extern FILE *freopen (__const char *__restrict __filename,
        __const char *__restrict __modes,
        FILE *__restrict __stream);
# 264 "/usr/include/stdio.h" 3 4


extern FILE *fopen64 (__const char *__restrict __filename,
        __const char *__restrict __modes);
extern FILE *freopen64 (__const char *__restrict __filename,
   __const char *__restrict __modes,
   FILE *__restrict __stream);




extern FILE *fdopen (int __fd, __const char *__modes) throw ();





extern FILE *fopencookie (void *__restrict __magic_cookie,
     __const char *__restrict __modes,
     _IO_cookie_io_functions_t __io_funcs) throw ();


extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
throw ();




extern FILE *open_memstream (char **__restrict __bufloc,
        size_t *__restrict __sizeloc) throw ();






extern void setbuf (FILE *__restrict __stream, char *__restrict __buf)
throw ();



extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
      int __modes, size_t __n) throw ();





extern void setbuffer (FILE *__restrict __stream, char *__restrict
__buf,
         size_t __size) throw ();


extern void setlinebuf (FILE *__stream) throw ();








extern int fprintf (FILE *__restrict __stream,
      __const char *__restrict __format, ...);




extern int printf (__const char *__restrict __format, ...);

extern int sprintf (char *__restrict __s,
      __const char *__restrict __format, ...) throw ();





extern int vfprintf (FILE *__restrict __s, __const char *__restrict
__format,
       __gnuc_va_list __arg);




extern int vprintf (__const char *__restrict __format, __gnuc_va_list
__arg);

extern int vsprintf (char *__restrict __s, __const char *__restrict
__format,
       __gnuc_va_list __arg) throw ();





extern int snprintf (char *__restrict __s, size_t __maxlen,
       __const char *__restrict __format, ...)
     throw () __attribute__ ((__format__ (__printf__, 3, 4)));

extern int vsnprintf (char *__restrict __s, size_t __maxlen,
        __const char *__restrict __format, __gnuc_va_list __arg)
     throw () __attribute__ ((__format__ (__printf__, 3, 0)));






extern int vasprintf (char **__restrict __ptr, __const char *__restrict
__f,
        __gnuc_va_list __arg)
     throw () __attribute__ ((__format__ (__printf__, 2, 0)));
extern int __asprintf (char **__restrict __ptr,
         __const char *__restrict __fmt, ...)
     throw () __attribute__ ((__format__ (__printf__, 2, 3)));
extern int asprintf (char **__restrict __ptr,
       __const char *__restrict __fmt, ...)
     throw () __attribute__ ((__format__ (__printf__, 2, 3)));







extern int vdprintf (int __fd, __const char *__restrict __fmt,
       __gnuc_va_list __arg)
     __attribute__ ((__format__ (__printf__, 2, 0)));
extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
     __attribute__ ((__format__ (__printf__, 2, 3)));








extern int fscanf (FILE *__restrict __stream,
     __const char *__restrict __format, ...);




extern int scanf (__const char *__restrict __format, ...);

extern int sscanf (__const char *__restrict __s,
     __const char *__restrict __format, ...) throw ();








extern int vfscanf (FILE *__restrict __s, __const char *__restrict
__format,
      __gnuc_va_list __arg)
     __attribute__ ((__format__ (__scanf__, 2, 0)));





extern int vscanf (__const char *__restrict __format, __gnuc_va_list
__arg)
     __attribute__ ((__format__ (__scanf__, 1, 0)));


extern int vsscanf (__const char *__restrict __s,
      __const char *__restrict __format, __gnuc_va_list __arg)
     throw () __attribute__ ((__format__ (__scanf__, 2, 0)));









extern int fgetc (FILE *__stream);
extern int getc (FILE *__stream);





extern int getchar (void);

# 456 "/usr/include/stdio.h" 3 4
extern int getc_unlocked (FILE *__stream);
extern int getchar_unlocked (void);
# 467 "/usr/include/stdio.h" 3 4
extern int fgetc_unlocked (FILE *__stream);











extern int fputc (int __c, FILE *__stream);
extern int putc (int __c, FILE *__stream);





extern int putchar (int __c);

# 500 "/usr/include/stdio.h" 3 4
extern int fputc_unlocked (int __c, FILE *__stream);







extern int putc_unlocked (int __c, FILE *__stream);
extern int putchar_unlocked (int __c);






extern int getw (FILE *__stream);


extern int putw (int __w, FILE *__stream);








extern char *fgets (char *__restrict __s, int __n, FILE *__restrict
__stream);






extern char *gets (char *__s);

# 545 "/usr/include/stdio.h" 3 4
extern char *fgets_unlocked (char *__restrict __s, int __n,
        FILE *__restrict __stream);
# 561 "/usr/include/stdio.h" 3 4
extern __ssize_t __getdelim (char **__restrict __lineptr,
          size_t *__restrict __n, int __delimiter,
          FILE *__restrict __stream);
extern __ssize_t getdelim (char **__restrict __lineptr,
        size_t *__restrict __n, int __delimiter,
        FILE *__restrict __stream);







extern __ssize_t getline (char **__restrict __lineptr,
       size_t *__restrict __n,
       FILE *__restrict __stream);








extern int fputs (__const char *__restrict __s, FILE *__restrict
__stream);





extern int puts (__const char *__s);






extern int ungetc (int __c, FILE *__stream);






extern size_t fread (void *__restrict __ptr, size_t __size,
       size_t __n, FILE *__restrict __stream);




extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
        size_t __n, FILE *__restrict __s);

# 622 "/usr/include/stdio.h" 3 4
extern int fputs_unlocked (__const char *__restrict __s,
      FILE *__restrict __stream);
# 633 "/usr/include/stdio.h" 3 4
extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
         size_t __n, FILE *__restrict __stream);
extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t
__size,
          size_t __n, FILE *__restrict __stream);








extern int fseek (FILE *__stream, long int __off, int __whence);




extern long int ftell (FILE *__stream);




extern void rewind (FILE *__stream);

# 669 "/usr/include/stdio.h" 3 4
extern int fseeko (FILE *__stream, __off_t __off, int __whence);




extern __off_t ftello (FILE *__stream);
# 688 "/usr/include/stdio.h" 3 4






extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict
__pos);




extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
# 711 "/usr/include/stdio.h" 3 4



extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
extern __off64_t ftello64 (FILE *__stream);
extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict
__pos);
extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);




extern void clearerr (FILE *__stream) throw ();

extern int feof (FILE *__stream) throw ();

extern int ferror (FILE *__stream) throw ();




extern void clearerr_unlocked (FILE *__stream) throw ();
extern int feof_unlocked (FILE *__stream) throw ();
extern int ferror_unlocked (FILE *__stream) throw ();








extern void perror (__const char *__s);






# 1 "/usr/include/bits/sys_errlist.h" 1 3 4
# 27 "/usr/include/bits/sys_errlist.h" 3 4
extern int sys_nerr;
extern __const char *__const sys_errlist[];


extern int _sys_nerr;
extern __const char *__const _sys_errlist[];
# 750 "/usr/include/stdio.h" 2 3 4




extern int fileno (FILE *__stream) throw ();




extern int fileno_unlocked (FILE *__stream) throw ();
# 769 "/usr/include/stdio.h" 3 4
extern FILE *popen (__const char *__command, __const char *__modes);





extern int pclose (FILE *__stream);





extern char *ctermid (char *__s) throw ();





extern char *cuserid (char *__s);




struct obstack;


extern int obstack_printf (struct obstack *__restrict __obstack,
      __const char *__restrict __format, ...)
     throw () __attribute__ ((__format__ (__printf__, 2, 3)));
extern int obstack_vprintf (struct obstack *__restrict __obstack,
       __const char *__restrict __format,
       __gnuc_va_list __args)
     throw () __attribute__ ((__format__ (__printf__, 2, 0)));







extern void flockfile (FILE *__stream) throw ();



extern int ftrylockfile (FILE *__stream) throw ();


extern void funlockfile (FILE *__stream) throw ();
# 836 "/usr/include/stdio.h" 3 4
}
# 52 "/usr/X11R6/include/X11/Xauth.h" 2
# 60 "/usr/X11R6/include/X11/Xauth.h"
extern "C" {

char *XauFileName(void);

Xauth *XauReadAuth(
FILE*
);

int XauLockAuth(
const char* ,
int ,
int ,
long
);

int XauUnlockAuth(
const char*
);

int XauWriteAuth(
FILE* ,
Xauth*
);

Xauth *XauGetAuthByName(
const char*
);

Xauth *XauGetAuthByAddr(

unsigned int ,
unsigned int ,




const char* ,

unsigned int ,



const char* ,

unsigned int ,



const char*
);

Xauth *XauGetBestAuthByAddr(

unsigned int ,
unsigned int ,




const char* ,

unsigned int ,



const char* ,
int ,
char** ,
const int*
);

void XauDisposeAuth(
Xauth*
);
# 152 "/usr/X11R6/include/X11/Xauth.h"
}
# 69 "/usr/X11R6/include/X11/extensions/Print.h" 2




extern "C" {
# 152 "/usr/X11R6/include/X11/extensions/Print.h"
typedef unsigned char XPAttributes;
# 187 "/usr/X11R6/include/X11/extensions/Print.h"
typedef unsigned char XPAttrReplacement;







typedef unsigned char XPGetDocStatus;
# 204 "/usr/X11R6/include/X11/extensions/Print.h"
typedef unsigned char XPSaveData;







typedef unsigned char XPDocumentType;
# 238 "/usr/X11R6/include/X11/extensions/Print.h"
typedef XID XPContext;




typedef struct {
    char *name;
    char *desc;
} XPPrinterRec, *XPPrinterList;




typedef void (*XPSaveProc)( Display *display,
                            XPContext context,
                            unsigned char *data,
                            unsigned int data_len,
                            XPointer client_data);

typedef void (*XPFinishProc)( Display *display,
                              XPContext context,
                              XPGetDocStatus status,
                              XPointer client_data);




typedef char * (*XPHinterProc)(void);
# 289 "/usr/X11R6/include/X11/extensions/Print.h"
typedef struct {
    int type;
    unsigned long serial;
    int send_event;
    Display *display;
    XPContext context;
    int cancel;
    int detail;


} XPPrintEvent;

typedef struct {
    int type;
    unsigned long serial;
    int send_event;
    Display *display;
    XPContext context;
    int detail;


} XPAttributeEvent;

typedef struct {
    int type;
    unsigned long serial;
    int send_event;
    Display *display;
    XPContext context;
    unsigned long available;
} XPDataReadyEvent;







extern XPContext XpCreateContext (
    Display *display,
    char *printer_name
);

extern void XpSetContext (
    Display *display,
    XPContext print_context
);

extern XPContext XpGetContext (
    Display *display
);

extern void XpDestroyContext (
    Display *display,
    XPContext print_context
);

extern Screen *XpGetScreenOfContext (
    Display *display,
    XPContext print_context
);

extern int XpGetPageDimensions (
    Display *display,
    XPContext print_context,
    unsigned short *width,
    unsigned short *height,
    XRectangle *reproducible_area
);

extern void XpStartJob (
    Display *display,
    XPSaveData save_data
);

extern void XpEndJob (
    Display *display
);

extern void XpCancelJob (
    Display *display,
    int discard
);

extern void XpStartDoc (
    Display *display,
    XPDocumentType type
);

extern void XpEndDoc (
    Display *display
);

extern void XpCancelDoc (
    Display *display,
    int discard
);

extern void XpPutDocumentData (
    Display *display,
    Drawable drawable,
    unsigned char *data,
    int data_len,
    char *doc_fmt,
    char *options
);

extern int XpGetDocumentData (
    Display *display,
    XPContext context,
    XPSaveProc save_proc,
    XPFinishProc finish_proc,
    XPointer client_data
);

extern void XpStartPage (
    Display *display,
    Window window
);

extern void XpEndPage (
    Display *display
);

extern void XpCancelPage (
    Display *display,
    int discard
);

extern void XpSelectInput (
    Display *display,
    XPContext print_context,
    unsigned long event_mask
);

extern unsigned long XpInputSelected (
    Display *display,
    XPContext print_context,
    unsigned long *all_events_mask
);

extern int XpSetImageResolution (
    Display *display,
    XPContext print_context,
    int image_res,
    int *prev_res
);

extern int XpGetImageResolution (
    Display *display,
    XPContext print_context
);

extern char *XpGetAttributes (
    Display *display,
    XPContext print_context,
    XPAttributes type
);

extern void XpSetAttributes (
    Display *display,
    XPContext print_context,
    XPAttributes type,
    char *pool,
    XPAttrReplacement replacement_rule
);

extern char *XpGetOneAttribute (
    Display *display,
    XPContext print_context,
    XPAttributes type,
    char *attribute_name
);

extern XPPrinterList XpGetPrinterList (
    Display *display,
    char *printer_name,
    int *list_count
);

extern void XpFreePrinterList (
    XPPrinterList printer_list
);

extern void XpRehashPrinterList (
    Display *display
);

extern int XpQueryVersion (
    Display *display,
    short *major_version,
    short *minor_version
);

extern int XpQueryExtension (
    Display *display,
    int *event_base_return,
    int *error_base_return
);

extern Screen **XpQueryScreens (
    Display *display,
    int *list_count
);

extern int XpGetPdmStartParams (
    Display *print_display,
    Window print_window,
    XPContext print_context,
    Display *video_display,
    Window video_window,
    Display **selection_display,
    Atom *selection,
    Atom *type,
    int *format,
    unsigned char **data,
    int *nelements
);

extern int XpGetAuthParams (
    Display *print_display,
    Display *video_display,
    Display **selection_display,
    Atom *selection,
    Atom *target
);

extern int XpSendAuth (
    Display *display,
    Window window
);

extern int XpSendOneTicket (
    Display *display,
    Window window,
    Xauth *ticket,
    int more
);

extern void XpSetLocaleHinter (
    XPHinterProc hinter_proc,
    char *hinter_desc
);

extern char *XpGetLocaleHinter (
    XPHinterProc *hinter_proc
);

extern char *XpGetLocaleNetString(void);

extern char *XpNotifyPdm (
    Display *print_display,
    Window print_window,
    XPContext print_context,
    Display *video_display,
    Window video_window,
    int auth_flag
);



}
# 60 "/usr/X11R6/include/Xm/Xm.h" 2
# 1 "/usr/X11R6/include/Xm/XmStrDefs.h" 1
# 10 "/usr/X11R6/include/Xm/XmStrDefs.h"
extern "C" {
# 1373 "/usr/X11R6/include/Xm/XmStrDefs.h"
extern char _XmStrings[];
# 5436 "/usr/X11R6/include/Xm/XmStrDefs.h"
}


# 1 "/usr/X11R6/include/X11/StringDefs.h" 1
# 321 "/usr/X11R6/include/X11/StringDefs.h"
extern const char XtStrings[];
# 5440 "/usr/X11R6/include/Xm/XmStrDefs.h" 2


extern "C" {
# 5755 "/usr/X11R6/include/Xm/XmStrDefs.h"
}
# 61 "/usr/X11R6/include/Xm/Xm.h" 2
# 1 "/usr/X11R6/include/Xm/XmStrDefs22.h" 1
# 10 "/usr/X11R6/include/Xm/XmStrDefs22.h"
extern "C" {
# 311 "/usr/X11R6/include/Xm/XmStrDefs22.h"
extern char _XmStrings22[];
# 1188 "/usr/X11R6/include/Xm/XmStrDefs22.h"
}



extern "C" {



}
# 62 "/usr/X11R6/include/Xm/Xm.h" 2
# 1 "/usr/X11R6/include/Xm/VirtKeys.h" 1
# 45 "/usr/X11R6/include/Xm/VirtKeys.h"
# 1 "/usr/X11R6/include/Xm/Xm.h" 1
# 46 "/usr/X11R6/include/Xm/VirtKeys.h" 2


extern "C" {
# 107 "/usr/X11R6/include/Xm/VirtKeys.h"
extern void XmTranslateKey(
                        Display *dpy,

                        unsigned int keycode,



                        Modifiers modifiers,
                        Modifiers *modifiers_return,
                        KeySym *keysym_return) ;





}
# 63 "/usr/X11R6/include/Xm/Xm.h" 2
# 1 "/usr/X11R6/include/Xm/Transfer.h" 1
# 44 "/usr/X11R6/include/Xm/Transfer.h"
# 1 "/usr/X11R6/include/Xm/DragC.h" 1
# 48 "/usr/X11R6/include/Xm/DragC.h"
# 1 "/usr/X11R6/include/Xm/Display.h" 1
# 48 "/usr/X11R6/include/Xm/Display.h"
# 1 "/usr/X11R6/include/Xm/DragC.h" 1
# 49 "/usr/X11R6/include/Xm/Display.h" 2
# 1 "/usr/X11R6/include/Xm/DropSMgr.h" 1
# 49 "/usr/X11R6/include/Xm/DropSMgr.h"
extern "C" {
# 74 "/usr/X11R6/include/Xm/DropSMgr.h"
enum { XmDRAG_UNDER_NONE, XmDRAG_UNDER_PIXMAP,
    XmDRAG_UNDER_SHADOW_IN, XmDRAG_UNDER_SHADOW_OUT,
    XmDRAG_UNDER_HIGHLIGHT };

enum { XmDROP_SITE_SIMPLE, XmDROP_SITE_COMPOSITE,
    XmDROP_SITE_SIMPLE_CLIP_ONLY = 128,
    XmDROP_SITE_COMPOSITE_CLIP_ONLY };

enum { XmABOVE, XmBELOW };

enum { XmDROP_SITE_ACTIVE, XmDROP_SITE_INACTIVE, XmDROP_SITE_IGNORE };

typedef struct _XmDragProcCallbackStruct {
    int reason;
    XEvent * event;
    Time timeStamp;
 Widget dragContext;
    Position x, y;
    unsigned char dropSiteStatus;
    unsigned char operation;
    unsigned char operations;
 Boolean animate;
} XmDragProcCallbackStruct, * XmDragProcCallback;

typedef struct _XmDropProcCallbackStruct {
    int reason;
    XEvent * event;
    Time timeStamp;
 Widget dragContext;
    Position x, y;
    unsigned char dropSiteStatus;
    unsigned char operation;
    unsigned char operations;
 unsigned char dropAction;
} XmDropProcCallbackStruct, * XmDropProcCallback;


typedef struct _XmDropSiteVisualsRec {
 Pixel background;
 Pixel foreground;
 Pixel topShadowColor;
 Pixmap topShadowPixmap;
 Pixel bottomShadowColor;
 Pixmap bottomShadowPixmap;
 Dimension shadowThickness;
 Pixel highlightColor;
 Pixmap highlightPixmap;
 Dimension highlightThickness;
 Dimension borderWidth;
} XmDropSiteVisualsRec, * XmDropSiteVisuals;




extern WidgetClass xmDropSiteManagerObjectClass;

typedef struct _XmDropSiteManagerClassRec *XmDropSiteManagerObjectClass;
typedef struct _XmDropSiteManagerRec *XmDropSiteManagerObject;







extern void XmDropSiteRegister(
                        Widget widget,
                        ArgList args,
                        Cardinal argCount) ;
extern void XmDropSiteUnregister(
                        Widget widget) ;
extern Boolean XmDropSiteRegistered(
                          Widget widget) ;
extern void XmDropSiteStartUpdate(
                        Widget refWidget) ;
extern void XmDropSiteUpdate(
                        Widget enclosingWidget,
                        ArgList args,
                        Cardinal argCount) ;
extern void XmDropSiteEndUpdate(
                        Widget refWidget) ;
extern void XmDropSiteRetrieve(
                        Widget enclosingWidget,
                        ArgList args,
                        Cardinal argCount) ;
extern int XmDropSiteQueryStackingOrder(
                        Widget widget,
                        Widget *parent_rtn,
                        Widget **children_rtn,
                        Cardinal *num_children_rtn) ;
extern void XmDropSiteConfigureStackingOrder(
                        Widget widget,
                        Widget sibling,
                        Cardinal stack_mode) ;
extern XmDropSiteVisuals XmDropSiteGetActiveVisuals(
                        Widget widget) ;




}
# 50 "/usr/X11R6/include/Xm/Display.h" 2


extern "C" {






enum {
 XmDRAG_NONE,
 XmDRAG_DROP_ONLY,
 XmDRAG_PREFER_PREREGISTER,
 XmDRAG_PREREGISTER,
 XmDRAG_PREFER_DYNAMIC,
 XmDRAG_DYNAMIC,
 XmDRAG_PREFER_RECEIVER
};



typedef struct _XmDisplayRec *XmDisplay;
typedef struct _XmDisplayClassRec *XmDisplayClass;
extern WidgetClass xmDisplayClass;





extern Widget XmGetDragContext(
                        Widget w,
                        Time time) ;
extern Widget XmGetXmDisplay(
                        Display *display) ;




}
# 49 "/usr/X11R6/include/Xm/DragC.h" 2


extern "C" {
# 62 "/usr/X11R6/include/Xm/DragC.h"
typedef unsigned int XmID;
# 83 "/usr/X11R6/include/Xm/DragC.h"
enum{ XmTOP_LEVEL_ENTER, XmTOP_LEVEL_LEAVE,
 XmDRAG_MOTION, XmDROP_SITE_ENTER,
 XmDROP_SITE_LEAVE, XmDROP_START,
 XmDROP_FINISH, XmDRAG_DROP_FINISH,
 XmOPERATION_CHANGED
 } ;


enum{ XmDROP, XmDROP_HELP,
 XmDROP_CANCEL, XmDROP_INTERRUPT
 } ;







enum{ XmMOVE = (1L << 0), XmCOPY = (1L << 1),
 XmLINK = (1L << 2), XmOTHER
 } ;

enum{ XmBLEND_ALL, XmBLEND_STATE_SOURCE,
 XmBLEND_JUST_SOURCE, XmBLEND_NONE
 } ;

enum{ XmDROP_FAILURE, XmDROP_SUCCESS
 } ;




enum{ XmCR_TOP_LEVEL_ENTER, XmCR_TOP_LEVEL_LEAVE,
 XmCR_DRAG_MOTION, XmCR_DROP_SITE_ENTER,
 XmCR_DROP_SITE_LEAVE, XmCR_DROP_START,
 XmCR_DROP_FINISH, XmCR_DRAG_DROP_FINISH,
 XmCR_OPERATION_CHANGED,

 _XmNUMBER_DND_CB_REASONS
 } ;



typedef struct _XmDragContextClassRec *XmDragContextClass;
typedef struct _XmDragContextRec *XmDragContext;
extern WidgetClass xmDragContextClass;

typedef struct _XmAnyICCCallbackStruct{
    int reason;
    XEvent *event;
    Time timeStamp;
}XmAnyICCCallbackStruct, *XmAnyICCCallback;

typedef struct _XmTopLevelEnterCallbackStruct{
    int reason;
    XEvent *event;
    Time timeStamp;
    Screen *screen;




    Window window;
    Position x, y;
    unsigned char dragProtocolStyle;
    Atom iccHandle;
}XmTopLevelEnterCallbackStruct, *XmTopLevelEnterCallback;

typedef struct _XmTopLevelLeaveCallbackStruct{
    int reason;
    XEvent *event;
    Time timeStamp;
    Screen *screen;
    Window window;
}XmTopLevelLeaveCallbackStruct, *XmTopLevelLeaveCallback;






typedef struct _XmDropSiteEnterCallbackStruct{
    int reason;
    XEvent *event;
    Time timeStamp;
    unsigned char operation;
    unsigned char operations;
    unsigned char dropSiteStatus;
    Position x, y;
}XmDropSiteEnterCallbackStruct, *XmDropSiteEnterCallback;






typedef struct _XmDropSiteLeaveCallbackStruct{
    int reason;
    XEvent *event;
    Time timeStamp;
}XmDropSiteLeaveCallbackStruct, *XmDropSiteLeaveCallback;

typedef struct _XmDragMotionCallbackStruct{
    int reason;
    XEvent *event;
    Time timeStamp;
    unsigned char operation;
    unsigned char operations;
    unsigned char dropSiteStatus;
    Position x, y;
}XmDragMotionCallbackStruct, *XmDragMotionCallback;

typedef struct _XmOperationChangedCallbackStruct{
    int reason;
    XEvent *event;
    Time timeStamp;
    unsigned char operation;
    unsigned char operations;
    unsigned char dropSiteStatus;
}XmOperationChangedCallbackStruct, *XmOperationChangedCallback;

typedef struct _XmDropStartCallbackStruct{
    int reason;
    XEvent *event;
    Time timeStamp;
    unsigned char operation;
    unsigned char operations;
    unsigned char dropSiteStatus;
    unsigned char dropAction;
    Position x, y;
    Window window;
    Atom iccHandle;
}XmDropStartCallbackStruct, *XmDropStartCallback;

typedef struct _XmDropFinishCallbackStruct{
    int reason;
    XEvent *event;
    Time timeStamp;
    unsigned char operation;
    unsigned char operations;
    unsigned char dropSiteStatus;
    unsigned char dropAction;
    unsigned char completionStatus;
}XmDropFinishCallbackStruct, *XmDropFinishCallback;

typedef struct _XmDragDropFinishCallbackStruct{
    int reason;
    XEvent *event;
    Time timeStamp;
}XmDragDropFinishCallbackStruct, *XmDragDropFinishCallback;




extern Widget XmDragStart(
                        Widget w,
                        XEvent *event,
                        ArgList args,
                        Cardinal numArgs) ;
extern void XmDragCancel(
                        Widget dragContext) ;
extern Boolean XmTargetsAreCompatible(
                        Display *dpy,
                        Atom *exportTargets,
                        Cardinal numExportTargets,
                        Atom *importTargets,
                        Cardinal numImportTargets) ;





}
# 45 "/usr/X11R6/include/Xm/Transfer.h" 2


extern "C" {
# 60 "/usr/X11R6/include/Xm/Transfer.h"
typedef enum { XmTRANSFER_DONE_SUCCEED = 0, XmTRANSFER_DONE_FAIL,
        XmTRANSFER_DONE_CONTINUE, XmTRANSFER_DONE_DEFAULT
      } XmTransferStatus;

enum { XmSELECTION_DEFAULT = 0, XmSELECTION_INCREMENTAL,
       XmSELECTION_PERSIST, XmSELECTION_SNAPSHOT,
       XmSELECTION_TRANSACT };

enum { XmCONVERTING_NONE = 0,
       XmCONVERTING_SAME = 1,
       XmCONVERTING_TRANSACT = 2,
       XmCONVERTING_PARTIAL = 4 };

enum { XmCONVERT_DEFAULT = 0, XmCONVERT_MORE,
       XmCONVERT_MERGE, XmCONVERT_REFUSE, XmCONVERT_DONE };



typedef struct {
 int reason;
 XEvent *event;
 Atom selection;
 Atom target;
 XtPointer source_data;
 XtPointer location_data;
 int flags;
 XtPointer parm;
 int parm_format;
 unsigned long parm_length;
 Atom parm_type;
 int status;
 XtPointer value;
 Atom type;
 int format;
 unsigned long length;
} XmConvertCallbackStruct;

typedef struct {
 int reason;
   XEvent *event;
 Atom selection;
 XtEnum operation;
 int flags;
 XtPointer transfer_id;
 XtPointer destination_data;
 XtPointer location_data;
 Time time;
} XmDestinationCallbackStruct;

typedef struct {
 int reason;
   XEvent *event;
 Atom selection;
 Atom target;
 Atom type;
 XtPointer transfer_id;
 int flags;
 int remaining;
 XtPointer value;
 unsigned long length;
 int format;
} XmSelectionCallbackStruct;

typedef struct {
 int reason;
   XEvent *event;
 Atom selection;
 XtPointer transfer_id;
 XmTransferStatus status;
 XtPointer client_data;
} XmTransferDoneCallbackStruct;

typedef void (*XmSelectionFinishedProc)(Widget, XtEnum,
     XmTransferDoneCallbackStruct*);

void XmTransferDone(XtPointer, XmTransferStatus);
void XmTransferValue(XtPointer, Atom, XtCallbackProc,
       XtPointer, Time);
void XmTransferSetParameters(XtPointer, XtPointer, int, unsigned long,
Atom);
void XmTransferStartRequest(XtPointer);
void XmTransferSendRequest(XtPointer, Time);


}
# 64 "/usr/X11R6/include/Xm/Xm.h" 2
# 1 "/usr/X11R6/include/Xm/Primitive.h" 1
# 46 "/usr/X11R6/include/Xm/Primitive.h"
extern "C" {






extern WidgetClass xmPrimitiveWidgetClass;

typedef struct _XmPrimitiveClassRec * XmPrimitiveWidgetClass;
typedef struct _XmPrimitiveRec * XmPrimitiveWidget;
# 66 "/usr/X11R6/include/Xm/Primitive.h"
}
# 65 "/usr/X11R6/include/Xm/Xm.h" 2
# 1 "/usr/X11R6/include/Xm/Manager.h" 1
# 46 "/usr/X11R6/include/Xm/Manager.h"
extern "C" {






extern WidgetClass xmManagerWidgetClass;

typedef struct _XmManagerClassRec * XmManagerWidgetClass;
typedef struct _XmManagerRec * XmManagerWidget;
# 66 "/usr/X11R6/include/Xm/Manager.h"
}
# 66 "/usr/X11R6/include/Xm/Xm.h" 2
# 1 "/usr/X11R6/include/Xm/Gadget.h" 1
# 46 "/usr/X11R6/include/Xm/Gadget.h"
extern "C" {






extern WidgetClass xmGadgetClass;

typedef struct _XmGadgetClassRec * XmGadgetClass;
typedef struct _XmGadgetRec * XmGadget;
# 66 "/usr/X11R6/include/Xm/Gadget.h"
}
# 67 "/usr/X11R6/include/Xm/Xm.h" 2


extern "C" {
# 78 "/usr/X11R6/include/Xm/Xm.h"
extern int xmUseVersion;
# 107 "/usr/X11R6/include/Xm/Xm.h"
extern char _XmSDEFAULT_FONT[];
extern char _XmSDEFAULT_BACKGROUND[];

typedef unsigned char XmDirection;
# 124 "/usr/X11R6/include/Xm/Xm.h"
enum {
  XmRIGHT_TO_LEFT_TOP_TO_BOTTOM =
      0x01 | 0x04 | 0x40,
  XmLEFT_TO_RIGHT_TOP_TO_BOTTOM =
      0x02 | 0x04 | 0x40,
  XmRIGHT_TO_LEFT_BOTTOM_TO_TOP =
      0x01 | 0x08 | 0x40,
  XmLEFT_TO_RIGHT_BOTTOM_TO_TOP =
      0x02 | 0x08 | 0x40,
  XmTOP_TO_BOTTOM_RIGHT_TO_LEFT =
      0x01 | 0x04 | 0x80,
  XmTOP_TO_BOTTOM_LEFT_TO_RIGHT =
      0x02 | 0x04 | 0x80,
  XmBOTTOM_TO_TOP_RIGHT_TO_LEFT =
      0x01 | 0x08 | 0x80,
  XmBOTTOM_TO_TOP_LEFT_TO_RIGHT =
      0x02 | 0x08 | 0x80,
  XmTOP_TO_BOTTOM =
      0x04 | 0x03 | 0xc0,
  XmBOTTOM_TO_TOP =
      0x08 | 0x03 | 0xc0,
  XmRIGHT_TO_LEFT =
      0x01 | 0x0c | 0xc0,
  XmLEFT_TO_RIGHT =
      0x02 | 0x0c | 0xc0,
  XmDEFAULT_DIRECTION = 0xff
  };


extern Boolean XmDirectionMatch(XmDirection d1,
    XmDirection d2);
extern Boolean XmDirectionMatchPartial(XmDirection d1,
           XmDirection d2,
           XmDirection dmask);







typedef enum{ XmFONT_IS_FONT, XmFONT_IS_FONTSET
       } XmFontType;

enum { XmSTRING_DIRECTION_L_TO_R,
       XmSTRING_DIRECTION_R_TO_L,
       XmSTRING_DIRECTION_UNSET = 3,
       XmSTRING_DIRECTION_DEFAULT = XmDEFAULT_DIRECTION
       };

typedef unsigned char XmStringDirection;
typedef union __XmStringRec *XmString;
typedef XmString * XmStringTable;
typedef char * XmStringCharSet;
typedef char * XmStringTag;
typedef unsigned char XmStringComponentType;

typedef struct __XmRenditionRec **XmFontListEntry;
typedef struct __XmRenderTableRec **XmFontList;
typedef struct _XmFontListContextRec *XmFontContext;

typedef struct __XmStringContextRec *_XmStringContext;
typedef union __XmStringRec *_XmString;
typedef struct __XmStringContextRec *XmStringContext;

enum{ XmSTRING_COMPONENT_UNKNOWN, XmSTRING_COMPONENT_CHARSET,
 XmSTRING_COMPONENT_TEXT, XmSTRING_COMPONENT_DIRECTION,
        XmSTRING_COMPONENT_SEPARATOR, XmSTRING_COMPONENT_LOCALE_TEXT,
 XmSTRING_COMPONENT_LOCALE, XmSTRING_COMPONENT_WIDECHAR_TEXT,
 XmSTRING_COMPONENT_LAYOUT_PUSH, XmSTRING_COMPONENT_LAYOUT_POP,
 XmSTRING_COMPONENT_RENDITION_BEGIN, XmSTRING_COMPONENT_RENDITION_END,
 XmSTRING_COMPONENT_TAB

 } ;
# 209 "/usr/X11R6/include/Xm/Xm.h"
typedef enum {
    XmCHARSET_TEXT, XmMULTIBYTE_TEXT,
    XmWIDECHAR_TEXT, XmNO_TEXT
    } XmTextType;

typedef enum {
    XmOUTPUT_ALL, XmOUTPUT_BETWEEN,
    XmOUTPUT_BEGINNING, XmOUTPUT_END,
    XmOUTPUT_BOTH
    } XmParseModel;

typedef unsigned char XmIncludeStatus;
enum {
  XmINSERT, XmTERMINATE, XmINVOKE
  };





typedef enum {
    XmSTYLE_STRING = XStringStyle,
    XmSTYLE_COMPOUND_TEXT = XCompoundTextStyle,
    XmSTYLE_TEXT = XTextStyle,
    XmSTYLE_STANDARD_ICC_TEXT = XStdICCTextStyle,
    XmSTYLE_LOCALE = 32,
    XmSTYLE_COMPOUND_STRING
    } XmICCEncodingStyle;
# 245 "/usr/X11R6/include/Xm/Xm.h"
typedef struct __XmParseMappingRec *XmParseMapping;
typedef XmParseMapping *XmParseTable;





typedef XmIncludeStatus (*XmParseProc) (XtPointer *in_out,
     XtPointer text_end,
     XmTextType type,
     XmStringTag locale_tag,
     XmParseMapping entry,
     int pattern_length,
     XmString *str_include,
     XtPointer call_data);
# 268 "/usr/X11R6/include/Xm/Xm.h"
typedef enum {
  XmABSOLUTE, XmRELATIVE
  } XmOffsetModel;

typedef struct __XmTabRec *XmTab;
typedef struct __XmTabListRec *XmTabList;
# 283 "/usr/X11R6/include/Xm/Xm.h"
typedef struct __XmRenditionRec **XmRendition;
typedef struct __XmRenderTableRec **XmRenderTable;

typedef enum {
  XmSKIP, XmMERGE_REPLACE,
  XmMERGE_OLD, XmMERGE_NEW,
  XmDUPLICATE
  } XmMergeMode;
# 300 "/usr/X11R6/include/Xm/Xm.h"
enum { XmUNSPECIFIED_LOAD_MODEL, XmLOAD_DEFERRED, XmLOAD_IMMEDIATE };
# 310 "/usr/X11R6/include/Xm/Xm.h"
enum{ XmCHANGE_ALL, XmCHANGE_NONE,
 XmCHANGE_WIDTH, XmCHANGE_HEIGHT
 } ;



enum{ XmPIXELS, Xm100TH_MILLIMETERS,
 Xm1000TH_INCHES, Xm100TH_POINTS,
 Xm100TH_FONT_UNITS, XmINCHES,
        XmCENTIMETERS, XmMILLIMETERS,
        XmPOINTS, XmFONT_UNITS
 } ;



enum{ XmDESTROY, XmUNMAP,
 XmDO_NOTHING
 } ;
enum{ XmEXPLICIT, XmPOINTER
 } ;




enum{ XmNONE, XmTAB_GROUP,
 XmSTICKY_TAB_GROUP, XmEXCLUSIVE_TAB_GROUP
 } ;







enum{ XmBELL = 1
 } ;





enum {
        XmPER_SHELL, XmPER_WIDGET,
        XmINHERIT_POLICY = 255
 } ;

typedef unsigned char XmInputPolicy;





enum{ XmNO_ORIENTATION, XmVERTICAL,
 XmHORIZONTAL
 } ;
enum{ XmWORK_AREA, XmMENU_BAR,
 XmMENU_PULLDOWN, XmMENU_POPUP,
 XmMENU_OPTION
 } ;
enum{ XmNO_PACKING, XmPACK_TIGHT,
 XmPACK_COLUMN, XmPACK_NONE
 } ;
enum{ XmALIGNMENT_CONTENTS_TOP = 3,

 XmALIGNMENT_CONTENTS_BOTTOM
 } ;
enum{ XmTEAR_OFF_ENABLED, XmTEAR_OFF_DISABLED
 } ;
enum{ XmUNPOST, XmUNPOST_AND_REPLAY
 } ;
enum{ XmLAST_POSITION = -1, XmFIRST_POSITION
 } ;
enum{ XmPOPUP_DISABLED = 0, XmPOPUP_KEYBOARD = 1,
 XmPOPUP_AUTOMATIC, XmPOPUP_AUTOMATIC_RECURSIVE };





typedef enum { XmListMode = 0, XmScaleMode = 1 } XmColorMode;





enum { XmFILL_UNSPECIFIED, XmFILL_FLUSH, XmFILL_RAGGED };

enum { XmDISTRIBUTE_TIGHT, XmDISTRIBUTE_SPREAD };





enum{ XmCOMBO_BOX=0, XmDROP_DOWN_COMBO_BOX,
 XmDROP_DOWN_LIST
 } ;

enum{ XmQUICK_NAVIGATE = 1, XmINVALID_MATCH_BEHAVIOR
 } ;

enum{ XmZERO_BASED, XmONE_BASED
        } ;






typedef enum { XmIconTop,
               XmIconLeft,
               XmIconRight,
               XmIconBottom,
               XmIconOnly,
               XmIconNone } XmIconPlacement;

typedef enum { XmFillNone,
               XmFillMajor,
               XmFillMinor,
               XmFillAll } XmFillOption;




typedef enum {XmAlwaysOpen,
              XmOpen,
              XmClosed, XmHidden,
       XmNotInHierarchy} XmHierarchyNodeState;

typedef enum { XmTreeLadder, XmTreeDirect } XmTreeConnectStyle;

typedef enum { XmTreeCompressNone=0, XmTreeCompressLeaves=1,
               XmTreeCompressAll=2 } XmTreeCompressStyle;





enum{ XmALIGNMENT_BEGINNING, XmALIGNMENT_CENTER,
 XmALIGNMENT_END, XmALIGNMENT_UNSPECIFIED
 } ;
enum{ XmALIGNMENT_BASELINE_TOP,
 XmALIGNMENT_BASELINE_BOTTOM = 2, XmALIGNMENT_WIDGET_TOP,
 XmALIGNMENT_WIDGET_BOTTOM
    } ;
# 463 "/usr/X11R6/include/Xm/Xm.h"
enum{ XmFRAME_GENERIC_CHILD, XmFRAME_WORKAREA_CHILD,
        XmFRAME_TITLE_CHILD
 } ;




enum{ XmN_OF_MANY = 1, XmONE_OF_MANY,
 XmONE_OF_MANY_ROUND, XmONE_OF_MANY_DIAMOND
 } ;




enum{ XmATTACH_NONE, XmATTACH_FORM,
 XmATTACH_OPPOSITE_FORM, XmATTACH_WIDGET,
 XmATTACH_OPPOSITE_WIDGET, XmATTACH_POSITION,
 XmATTACH_SELF
 } ;
enum{ XmRESIZE_NONE, XmRESIZE_GROW,
 XmRESIZE_ANY
 } ;





typedef enum {XmTABS_SQUARED, XmTABS_ROUNDED, XmTABS_BEVELED}
XmTabStyle;
typedef enum {XmTABS_BASIC, XmTABS_STACKED, XmTABS_STACKED_STATIC,
              XmTABS_SCROLLED, XmTABS_OVERLAYED} XmTabMode;

typedef enum {XmTAB_ORIENTATION_DYNAMIC, XmTABS_RIGHT_TO_LEFT,
              XmTABS_LEFT_TO_RIGHT, XmTABS_TOP_TO_BOTTOM,
              XmTABS_BOTTOM_TO_TOP} XmTabOrientation;

typedef enum {XmTAB_EDGE_TOP_LEFT, XmTAB_EDGE_BOTTOM_RIGHT} XmTabEdge;

typedef enum {XmTAB_ARROWS_ON_RIGHT, XmTAB_ARROWS_ON_LEFT,
              XmTAB_ARROWS_SPLIT} XmTabArrowPlacement;

enum {XmCR_TAB_SELECTED, XmCR_TAB_UNSELECTED};

typedef enum {XmTABS_ON_TOP, XmTABS_ON_BOTTOM, XmTABS_ON_RIGHT,
              XmTABS_ON_LEFT} XmTabSide;

typedef enum {XmPIXMAP_TOP, XmPIXMAP_BOTTOM, XmPIXMAP_RIGHT,
XmPIXMAP_LEFT,
              XmPIXMAP_NONE, XmPIXMAP_ONLY} XmPixmapPlacement;

typedef enum {XmTAB_VALUE_COPY, XmTAB_VALUE_SHARE} XmTabValueMode;

typedef enum {XmTAB_CMP_VISUAL, XmTAB_CMP_SIZE, XmTAB_CMP_EQUAL}
XmTabResult;





enum{ XmCR_NONE, XmCR_HELP,
 XmCR_VALUE_CHANGED, XmCR_INCREMENT,
 XmCR_DECREMENT, XmCR_PAGE_INCREMENT,
 XmCR_PAGE_DECREMENT, XmCR_TO_TOP,
 XmCR_TO_BOTTOM, XmCR_DRAG,
 XmCR_ACTIVATE, XmCR_ARM,
 XmCR_DISARM, XmCR_MAP = 16,
 XmCR_UNMAP, XmCR_FOCUS,
 XmCR_LOSING_FOCUS, XmCR_MODIFYING_TEXT_VALUE,
 XmCR_MOVING_INSERT_CURSOR, XmCR_EXECUTE,
 XmCR_SINGLE_SELECT, XmCR_MULTIPLE_SELECT,
 XmCR_EXTENDED_SELECT, XmCR_BROWSE_SELECT,
 XmCR_DEFAULT_ACTION, XmCR_CLIPBOARD_DATA_REQUEST,
 XmCR_CLIPBOARD_DATA_DELETE, XmCR_CASCADING,
 XmCR_OK, XmCR_CANCEL,
 XmCR_APPLY = 34, XmCR_NO_MATCH,
 XmCR_COMMAND_ENTERED, XmCR_COMMAND_CHANGED,
 XmCR_EXPOSE, XmCR_RESIZE,
 XmCR_INPUT, XmCR_GAIN_PRIMARY,
 XmCR_LOSE_PRIMARY, XmCR_CREATE,
 XmCR_TEAR_OFF_ACTIVATE, XmCR_TEAR_OFF_DEACTIVATE,
 XmCR_OBSCURED_TRAVERSAL, XmCR_FOCUS_MOVED,
 XmCR_REPOST = 54, XmCR_COLLAPSED,
 XmCR_EXPANDED, XmCR_SELECT,
 XmCR_DRAG_START, XmCR_NO_FONT,
 XmCR_NO_RENDITION, XmCR_POST,
 XmCR_SPIN_NEXT, XmCR_SPIN_PRIOR,
 XmCR_SPIN_FIRST, XmCR_SPIN_LAST,
 XmCR_PAGE_SCROLLER_INCREMENT, XmCR_PAGE_SCROLLER_DECREMENT,
 XmCR_MAJOR_TAB, XmCR_MINOR_TAB,
 XmCR_START_JOB, XmCR_END_JOB,
 XmCR_PAGE_SETUP, XmCR_PDM_NONE,
 XmCR_PDM_UP, XmCR_PDM_START_ERROR,
 XmCR_PDM_START_VXAUTH, XmCR_PDM_START_PXAUTH,
 XmCR_PDM_OK, XmCR_PDM_CANCEL,
 XmCR_PDM_EXIT_ERROR,
        XmCR_UPDATE_SHELL, XmCR_UPDATE_TEXT,
        XmCR_VERIFY_TEXT, XmCR_VERIFY_TEXT_FAILED,
        XmCR_ENTER_CHILD, XmCR_LEAVE_CHILD,
 XmCR_PROTOCOLS = 6666
 } ;





enum{ XmEACH_SIDE = 1,
 XmMAX_SIDE, XmMIN_SIDE
 } ;






enum{ XmSLIDER, XmTHERMOMETER} ;






enum{ XmBACKGROUND_COLOR, XmFOREGROUND_COLOR,
        XmTROUGH_COLOR, XmSHADOWED_BACKGROUND} ;






enum{ XmETCHED_LINE = 1,
        XmTHUMB_MARK, XmROUND_MARK } ;






enum{ XmNEAR_SLIDER = 1,
 XmNEAR_BORDER
 } ;







enum{
        XmHOR_SCROLLBAR = 2,
 XmVERT_SCROLLBAR,
 XmCOMMAND_WINDOW,

        XmMESSAGE_WINDOW = 6,
        XmSCROLL_HOR, XmSCROLL_VERT, XmNO_SCROLL,
 XmCLIP_WINDOW, XmGENERIC_CHILD
 } ;





enum{ XmAUTO_DRAG_ENABLED, XmAUTO_DRAG_DISABLED
 } ;





enum{ XmENABLE_WARP_ON, XmENABLE_WARP_OFF
 } ;





enum{ XmOFF, XmBUTTON2_ADJUST,
 XmBUTTON2_TRANSFER };





enum{ XmAUTO_UNSET, XmAUTO_BEGIN,
        XmAUTO_MOTION, XmAUTO_CANCEL,
        XmAUTO_NO_CHANGE, XmAUTO_CHANGE
        };





typedef struct
{
    int reason;
    XEvent *event;
} XmAnyCallbackStruct;

typedef struct
{
    int reason;
    XEvent *event;
    int click_count;
} XmArrowButtonCallbackStruct;

typedef struct _XmDragStartCallbackStruct {
    int reason;
    XEvent *event;
    Widget widget;
    Boolean doit;
} XmDragStartCallbackStruct, *XmDragStartCallback;

typedef struct
{
    int reason;
    XEvent *event;
    XmString item_or_text;
    int item_position;
} XmComboBoxCallbackStruct;

typedef struct
{
    int reason;
    XEvent *event;
    Window window;
} XmDrawingAreaCallbackStruct;

typedef struct
{
    int reason;
    XEvent *event;
    Window window;
    int click_count;
} XmDrawnButtonCallbackStruct;

typedef struct
{
    int reason;
    XEvent *event;
    int click_count;
} XmPushButtonCallbackStruct;

typedef struct
{
    int reason;
    XEvent *event;
    Widget widget;
    char *data;
    char *callbackstruct;
} XmRowColumnCallbackStruct;

typedef struct
{
   int reason;
   XEvent * event;
   int value;
   int pixel;
} XmScrollBarCallbackStruct;

typedef struct
{
   int reason;
   XEvent * event;
   int set;
} XmToggleButtonCallbackStruct;

typedef struct
{
   int reason;
   XEvent *event;
   XmString item;
   int item_length;
   int item_position;
   XmString *selected_items;
   int selected_item_count;
   int *selected_item_positions;
   char selection_type;
   char auto_selection_type;
} XmListCallbackStruct;

typedef struct
{
    int reason;
    XEvent *event;
    XmString value;
    int length;
} XmSelectionBoxCallbackStruct;

typedef struct
{
    int reason;
    XEvent *event;
    XmString value;
    int length;
} XmCommandCallbackStruct;

typedef struct
{
    int reason;
    XEvent *event;
    XmString value;
    int length;
    XmString mask;
    int mask_length;
    XmString dir ;
    int dir_length ;
    XmString pattern ;
    int pattern_length ;
} XmFileSelectionBoxCallbackStruct;


typedef struct
{
   int reason;
   XEvent * event;
   int value;
} XmScaleCallbackStruct;

typedef struct
{
  int reason;
  XEvent *event;
  Widget menuToPost;
  Boolean postIt;
  Widget target;
} XmPopupHandlerCallbackStruct;

typedef struct
{
  int reason;
  XEvent *event;
  Widget item;
  unsigned char new_outline_state;
} XmContainerOutlineCallbackStruct;

typedef struct
{
  int reason;
  XEvent *event;
  WidgetList selected_items;
  int selected_item_count;
  unsigned char auto_selection_type;
} XmContainerSelectCallbackStruct;

typedef struct
{
  int reason;
  XEvent *event;
  int page_number;
  Widget page_widget;
  int prev_page_number;
  Widget prev_page_widget;
} XmNotebookCallbackStruct;

typedef struct
{
    int reason;
    XEvent *event;
    XmRendition rendition;
    char *font_name;
    XmRenderTable render_table;
    XmStringTag tag;
} XmDisplayCallbackStruct;

typedef struct
{
    int reason;
    XEvent *event;
    XPContext context;
    Boolean last_page;
    XtPointer detail;
} XmPrintShellCallbackStruct;






enum{ XmMULTICLICK_DISCARD, XmMULTICLICK_KEEP
 } ;




enum{ XmSHADOW_IN = 7, XmSHADOW_OUT
 } ;




enum{ XmARROW_UP, XmARROW_DOWN,
 XmARROW_LEFT, XmARROW_RIGHT
 } ;





enum{ XmNO_LINE, XmSINGLE_LINE,
 XmDOUBLE_LINE, XmSINGLE_DASHED_LINE,
 XmDOUBLE_DASHED_LINE, XmSHADOW_ETCHED_IN,
 XmSHADOW_ETCHED_OUT, XmSHADOW_ETCHED_IN_DASH,
 XmSHADOW_ETCHED_OUT_DASH, XmINVALID_SEPARATOR_TYPE
 } ;

enum{ XmPIXMAP = 1, XmSTRING
 } ;





enum{ XmWINDOW,
 XmCURSOR = 2, XmDRAG_WINDOW = 3
 } ;





enum{ XmMAX_ON_TOP, XmMAX_ON_BOTTOM,
 XmMAX_ON_LEFT, XmMAX_ON_RIGHT
 } ;






enum{ XmSINGLE_SELECT, XmMULTIPLE_SELECT,
 XmEXTENDED_SELECT, XmBROWSE_SELECT
 } ;
enum{ XmSTATIC, XmDYNAMIC
 } ;
enum{ XmNORMAL_MODE, XmADD_MODE
        } ;







enum { XmNO_AUTO_SELECT,
        XmAUTO_SELECT
        };


enum {
        XmSINGLE = 1
        };


enum {

        XmANY_ICON = 2
        };


enum { XmAPPEND,
        XmCLOSEST,
        XmFIRST_FIT
        };


enum { XmOUTLINE,
        XmSPATIAL,
 XmDETAIL
        };


enum { XmOUTLINE_BUTTON_PRESENT,
 XmOUTLINE_BUTTON_ABSENT
 };


enum {
 XmGRID = 1,
 XmCELLS
        };


enum { XmOWN_NEVER,
 XmOWN_ALWAYS,
 XmOWN_MULTIPLE,
 XmOWN_POSSIBLE_MULTIPLE
 };


enum { XmGROW_MINOR,
 XmGROW_MAJOR,
        XmGROW_BALANCED
        };


enum { XmMARQUEE,
        XmMARQUEE_EXTEND_START,
        XmMARQUEE_EXTEND_BOTH,
        XmTOUCH_ONLY,
        XmTOUCH_OVER
        };


enum {
        XmSNAP_TO_GRID = 1,
        XmCENTER
        };


enum { XmCOLLAPSED,
        XmEXPANDED
        };
# 979 "/usr/X11R6/include/Xm/Xm.h"
enum { XmLARGE_ICON,
        XmSMALL_ICON
        };


enum { XmSELECTED,
        XmNOT_SELECTED
        };
# 997 "/usr/X11R6/include/Xm/Xm.h"
enum {

        XmSOLID = 2,
        XmSPIRAL,
        XmPIXMAP_OVERLAP_ONLY
        };


enum {
        XmPAGE = 1,
        XmMAJOR_TAB,
        XmMINOR_TAB,
        XmSTATUS_AREA,
        XmPAGE_SCROLLER
        };
# 1020 "/usr/X11R6/include/Xm/Xm.h"
enum
{
    XmARROWS_VERTICAL,
    XmARROWS_HORIZONTAL
};


enum
{
    XmARROWS_END,
    XmARROWS_BEGINNING,
    XmARROWS_SPLIT,
    XmARROWS_FLAT_END,
    XmARROWS_FLAT_BEGINNING
};




enum
{
    XmARROWS_INSENSITIVE,
    XmARROWS_INCREMENT_SENSITIVE,
    XmARROWS_DECREMENT_SENSITIVE,
    XmARROWS_SENSITIVE,
    XmARROWS_DEFAULT_SENSITIVITY
};


enum
{
    XmPOSITION_INDEX,
    XmPOSITION_VALUE
};


enum
{


    XmNUMERIC = 3
};


enum
{
    XmVALID_VALUE,
    XmCURRENT_VALUE,
    XmMAXIMUM_VALUE,
    XmMINIMUM_VALUE,
    XmINCREMENT_VALUE
};

typedef struct
{
    int reason;
    XEvent *event;
    Widget widget;
    Boolean doit;
    int position;
    XmString value;
    Boolean crossed_boundary;
} XmSpinBoxCallbackStruct;
# 1091 "/usr/X11R6/include/Xm/Xm.h"
enum{ XmVARIABLE, XmCONSTANT,
 XmRESIZE_IF_POSSIBLE
 } ;
enum{ XmAUTOMATIC, XmAPPLICATION_DEFINED
 } ;
enum{ XmAS_NEEDED = 1
 } ;
# 1115 "/usr/X11R6/include/Xm/Xm.h"
enum{ XmCOMMAND_ABOVE_WORKSPACE, XmCOMMAND_BELOW_WORKSPACE
 } ;






enum{ XmMULTI_LINE_EDIT, XmSINGLE_LINE_EDIT
 } ;

typedef enum{
 XmTEXT_FORWARD,
 XmTEXT_BACKWARD
 } XmTextDirection;

typedef long XmTextPosition;
typedef Atom XmTextFormat;







typedef enum{
 XmSELECT_POSITION, XmSELECT_WHITESPACE,
 XmSELECT_WORD, XmSELECT_LINE,
 XmSELECT_ALL, XmSELECT_PARAGRAPH,
 XmSELECT_OUT_LINE
 } XmTextScanType ;

typedef enum{
 XmHIGHLIGHT_NORMAL, XmHIGHLIGHT_SELECTED,
 XmHIGHLIGHT_SECONDARY_SELECTED, XmSEE_DETAIL
 } XmHighlightMode ;



typedef struct {
    char *ptr;
    int length;
    XmTextFormat format;
} XmTextBlockRec, *XmTextBlock;

typedef struct
{
    int reason;
    XEvent *event;
    Boolean doit;
    long currInsert, newInsert;
    long startPos, endPos;
    XmTextBlock text;
} XmTextVerifyCallbackStruct, *XmTextVerifyPtr;




typedef struct {
    wchar_t *wcsptr;
    int length;
} XmTextBlockRecWcs, *XmTextBlockWcs;

typedef struct
{
    int reason;
    XEvent *event;
    Boolean doit;
    long currInsert, newInsert;
    long startPos, endPos;
    XmTextBlockWcs text;
} XmTextVerifyCallbackStructWcs, *XmTextVerifyPtrWcs;
# 1205 "/usr/X11R6/include/Xm/Xm.h"
enum{ XmDIALOG_NONE, XmDIALOG_APPLY_BUTTON,
 XmDIALOG_CANCEL_BUTTON, XmDIALOG_DEFAULT_BUTTON,
 XmDIALOG_OK_BUTTON, XmDIALOG_FILTER_LABEL,
 XmDIALOG_FILTER_TEXT, XmDIALOG_HELP_BUTTON,
 XmDIALOG_LIST, XmDIALOG_LIST_LABEL,
 XmDIALOG_MESSAGE_LABEL, XmDIALOG_SELECTION_LABEL,
 XmDIALOG_SYMBOL_LABEL, XmDIALOG_TEXT,
 XmDIALOG_SEPARATOR, XmDIALOG_DIR_LIST,
 XmDIALOG_DIR_LIST_LABEL
 } ;
# 1225 "/usr/X11R6/include/Xm/Xm.h"
enum{ XmDIALOG_MODELESS, XmDIALOG_PRIMARY_APPLICATION_MODAL,
 XmDIALOG_FULL_APPLICATION_MODAL,XmDIALOG_SYSTEM_MODAL
 } ;
# 1239 "/usr/X11R6/include/Xm/Xm.h"
enum{ XmPLACE_TOP, XmPLACE_ABOVE_SELECTION,
 XmPLACE_BELOW_SELECTION
 } ;
# 1251 "/usr/X11R6/include/Xm/Xm.h"
enum{ XmDIALOG_WORK_AREA, XmDIALOG_PROMPT,
 XmDIALOG_SELECTION, XmDIALOG_COMMAND,
 XmDIALOG_FILE_SELECTION
 } ;







enum{ XmDIALOG_TEMPLATE, XmDIALOG_ERROR,
 XmDIALOG_INFORMATION, XmDIALOG_MESSAGE,
 XmDIALOG_QUESTION, XmDIALOG_WARNING,
 XmDIALOG_WORKING
 } ;



typedef enum{
 XmVISIBILITY_UNOBSCURED, XmVISIBILITY_PARTIALLY_OBSCURED,
 XmVISIBILITY_FULLY_OBSCURED
 } XmVisibility ;


typedef enum{
 XmTRAVERSE_CURRENT, XmTRAVERSE_NEXT,
 XmTRAVERSE_PREV, XmTRAVERSE_HOME,
 XmTRAVERSE_NEXT_TAB_GROUP, XmTRAVERSE_PREV_TAB_GROUP,
 XmTRAVERSE_UP, XmTRAVERSE_DOWN,
 XmTRAVERSE_LEFT, XmTRAVERSE_RIGHT,
 XmTRAVERSE_GLOBALLY_FORWARD, XmTRAVERSE_GLOBALLY_BACKWARD
 } XmTraversalDirection ;

typedef struct _XmTraverseObscuredCallbackStruct
{ int reason ;
 XEvent * event ;
 Widget traversal_destination ;
 XmTraversalDirection direction ;
 } XmTraverseObscuredCallbackStruct ;

typedef unsigned char XmNavigationType;
# 1301 "/usr/X11R6/include/Xm/Xm.h"
typedef unsigned char XmButtonType;
typedef XmButtonType * XmButtonTypeTable;
typedef KeySym * XmKeySymTable;
typedef XmStringCharSet * XmStringCharSetTable;

enum{ XmPUSHBUTTON = 1, XmTOGGLEBUTTON,
 XmRADIOBUTTON, XmCASCADEBUTTON,
 XmSEPARATOR, XmDOUBLE_SEPARATOR,
 XmTITLE
 } ;
# 1320 "/usr/X11R6/include/Xm/Xm.h"
enum{ XmMATCH_DEPTH, XmDYNAMIC_DEPTH } ;






enum { XmPDM_NOTIFY_FAIL, XmPDM_NOTIFY_SUCCESS } ;




# 1 "/usr/X11R6/include/Xm/TxtPropCv.h" 1
# 46 "/usr/X11R6/include/Xm/TxtPropCv.h"
extern "C" {




extern int XmCvtXmStringTableToTextProperty(Display *display,
     XmStringTable string_table,
     int count,
     XmICCEncodingStyle style,
     XTextProperty *text_prop_return);

extern int XmCvtTextPropertyToXmStringTable(Display *display,
     XTextProperty *text_prop,
     XmStringTable *string_table_return,
     int *count_return);




}
# 1333 "/usr/X11R6/include/Xm/Xm.h" 2



typedef XtPointer (*XmResourceBaseProc)( Widget, XtPointer) ;

typedef struct _XmSecondaryResourceDataRec{
    XmResourceBaseProc base_proc;
    XtPointer client_data;
    String name;
    String res_class;
    XtResourceList resources;
    Cardinal num_resources;
}XmSecondaryResourceDataRec, *XmSecondaryResourceData;



extern Cardinal XmGetSecondaryResourceData(
                        WidgetClass w_class,
                        XmSecondaryResourceData **secondaryDataRtn) ;





extern Boolean XmInstallImage(
                        XImage *image,
                        char *image_name) ;
extern Boolean XmUninstallImage(
                        XImage *image) ;
extern Pixmap XmGetPixmap(
                        Screen *screen,
                        char *image_name,
                        Pixel foreground,
                        Pixel background) ;
extern Pixmap XmGetPixmapByDepth(
                        Screen *screen,
                        char *image_name,
                        Pixel foreground,
                        Pixel background,
   int depth) ;
extern Boolean XmDestroyPixmap(
                        Screen *screen,
                        Pixmap pixmap) ;
# 1384 "/usr/X11R6/include/Xm/Xm.h"
typedef long XmOffset;
typedef XmOffset *XmOffsetPtr;



extern void XmResolveAllPartOffsets(
                        WidgetClass w_class,
                        XmOffsetPtr *offset,
                        XmOffsetPtr *constraint_offset) ;
extern void XmResolvePartOffsets(
                        WidgetClass w_class,
                        XmOffsetPtr *offset) ;
# 1404 "/usr/X11R6/include/Xm/Xm.h"
extern void XmUpdateDisplay(
                        Widget w) ;
extern Widget XmObjectAtPoint(
   Widget wid,
   Position x,
   Position y ) ;

extern Boolean XmWidgetGetBaselines(
                        Widget wid,
                        Dimension **baselines,
                        int *line_count);
extern Boolean XmWidgetGetDisplayRect(
                        Widget wid,
                        XRectangle *displayrect);
# 1431 "/usr/X11R6/include/Xm/Xm.h"
extern void XmCvtStringToUnitType(
                        XrmValuePtr args,
                        Cardinal *num_args,
                        XrmValue *from_val,
                        XrmValue *to_val) ;
extern char * XmRegisterSegmentEncoding(
                        char *fontlist_tag,
                        char *ct_encoding) ;
extern char * XmMapSegmentEncoding(
                        char *fontlist_tag) ;
extern XmString XmCvtCTToXmString(
                        char *text) ;
extern Boolean XmCvtTextToXmString(
                        Display *display,
                        XrmValuePtr args,
                        Cardinal *num_args,
                        XrmValue *from_val,
                        XrmValue *to_val,
                        XtPointer *converter_data) ;
extern char * XmCvtXmStringToCT(
                        XmString string) ;
extern Boolean XmCvtXmStringToText(
                        Display *display,
                        XrmValuePtr args,
                        Cardinal *num_args,
                        XrmValue *from_val,
                        XrmValue *to_val,
                        XtPointer *converter_data) ;





extern int XmConvertStringToUnits(
      Screen *screen,
      String spec,
      int orientation,
      int to_type,
      XtEnum *parse_error);
extern int XmConvertUnits(
                        Widget widget,
                        int dimension,
                        register int from_type,
                        register int from_val,
                        register int to_type) ;
extern int XmCvtToHorizontalPixels(
                        Screen *screen,
                        register int from_val,
                        register int from_type) ;
extern int XmCvtToVerticalPixels(
                        Screen *screen,
                        register int from_val,
                        register int from_type) ;
extern int XmCvtFromHorizontalPixels(
                        Screen *screen,
                        register int from_val,
                        register int to_type) ;
extern int XmCvtFromVerticalPixels(
                        Screen *screen,
                        register int from_val,
                        register int to_type) ;
extern void XmSetFontUnits(
                        Display *display,
                        int h_value,
                        int v_value) ;
extern void XmSetFontUnit(
                        Display *display,
                        int value) ;





extern void XmSetMenuCursor(
                        Display *display,
                        Cursor cursorId) ;
extern Cursor XmGetMenuCursor(
                        Display *display) ;





extern Widget XmCreateSimpleMenuBar(
                        Widget parent,
                        String name,
                        ArgList args,
                        Cardinal arg_count) ;
extern Widget XmCreateSimplePopupMenu(
                        Widget parent,
                        String name,
                        ArgList args,
                        Cardinal arg_count) ;
extern Widget XmCreateSimplePulldownMenu(
                        Widget parent,
                        String name,
                        ArgList args,
                        Cardinal arg_count) ;
extern Widget XmCreateSimpleOptionMenu(
                        Widget parent,
                        String name,
                        ArgList args,
                        Cardinal arg_count) ;
extern Widget XmCreateSimpleRadioBox(
                        Widget parent,
                        String name,
                        ArgList args,
                        Cardinal arg_count) ;
extern Widget XmCreateSimpleCheckBox(
                        Widget parent,
                        String name,
                        ArgList args,
                        Cardinal arg_count) ;




extern Widget XmVaCreateSimpleMenuBar(
   Widget parent,
   String name,
   ...) ;
extern Widget XmVaCreateSimplePopupMenu(
   Widget parent,
   String name,
   XtCallbackProc callback,
   ...) ;
extern Widget XmVaCreateSimplePulldownMenu(
   Widget parent,
   String name,
   int post_from_button,
   XtCallbackProc callback,
   ...) ;
extern Widget XmVaCreateSimpleOptionMenu(
   Widget parent,
   String name,
                        XmString option_label,
                        KeySym option_mnemonic,
                        int button_set,
                        XtCallbackProc callback,
   ...) ;
extern Widget XmVaCreateSimpleRadioBox(
   Widget parent,
   String name,
   int button_set,
   XtCallbackProc callback,
   ...) ;
extern Widget XmVaCreateSimpleCheckBox(
   Widget parent,
   String name,
   XtCallbackProc callback,
   ...) ;




extern Widget XmTrackingEvent(
                        Widget widget,
                        Cursor cursor,

                        int confineTo,



                        XEvent *pev) ;
extern Widget XmTrackingLocate(
                        Widget widget,
                        Cursor cursor,

                        int confineTo) ;







typedef void (*XmColorProc) (XColor *bg_color, XColor *fg_color,
 XColor *sel_color, XColor *ts_color, XColor *bs_color);



extern XmColorProc XmSetColorCalculation(
                        XmColorProc proc) ;
extern XmColorProc XmGetColorCalculation( void ) ;
extern void XmGetColors(
                        Screen *screen,
                        Colormap color_map,
                        Pixel background,
                        Pixel *foreground_ret,
                        Pixel *top_shadow_ret,
                        Pixel *bottom_shadow_ret,
                        Pixel *select_ret) ;
extern void XmChangeColor(
                        Widget widget,
                        Pixel background) ;





extern XmString XmStringCreate(
                        char *text,
                        XmStringCharSet charset) ;
extern XmString XmStringCreateSimple(
                        char *text) ;
extern XmString XmStringCreateLocalized(
                        String text) ;
extern XmString XmStringDirectionCreate(

                        int direction) ;



extern XmString XmStringSeparatorCreate( void ) ;
extern XmString XmStringSegmentCreate(
                        char *text,
                        XmStringCharSet charset,

                        int direction,
                        int separator) ;




extern XmString XmStringLtoRCreate(
                        char *text,
                        XmStringCharSet charset) ;
extern XmString XmStringCreateLtoR(
                        char *text,
                        XmStringCharSet charset) ;
extern Boolean XmStringInitContext(
                        XmStringContext *context,
                        XmString string) ;
extern void XmStringFreeContext(
                        XmStringContext context) ;
extern XmStringComponentType XmStringGetNextComponent(
                        XmStringContext context,
                        char **text,
                        XmStringCharSet *charset,
                        XmStringDirection *direction,
                        XmStringComponentType *unknown_tag,
                        unsigned short *unknown_length,
                        unsigned char **unknown_value) ;
extern XmStringComponentType XmStringPeekNextComponent(
                        XmStringContext context) ;
extern Boolean XmStringGetNextSegment(
                        XmStringContext context,
                        char **text,
                        XmStringCharSet *charset,
                        XmStringDirection *direction,
                        Boolean *separator) ;
extern Boolean XmStringGetLtoR(
                        XmString string,
                        XmStringCharSet charset,
                        char **text) ;
extern XmFontListEntry XmFontListEntryCreate(
                        char *tag,
                        XmFontType type,
                        XtPointer font) ;
extern XmFontListEntry XmFontListEntryCreate_r(
                        char *tag,
                        XmFontType type,
                        XtPointer font,
                        Widget wid) ;
extern void XmFontListEntryFree(
                        XmFontListEntry *entry) ;
extern XtPointer XmFontListEntryGetFont(
                        XmFontListEntry entry,
                        XmFontType *typeReturn) ;
extern char * XmFontListEntryGetTag(
                        XmFontListEntry entry) ;
extern XmFontList XmFontListAppendEntry(
                        XmFontList old,
                        XmFontListEntry entry) ;
extern XmFontListEntry XmFontListNextEntry(
                        XmFontContext context) ;
extern XmFontList XmFontListRemoveEntry(
                        XmFontList old,
                        XmFontListEntry entry) ;
extern XmFontListEntry XmFontListEntryLoad(
                        Display *display,
                        char *fontName,
                        XmFontType type,
                        char *tag) ;
extern XmFontList XmFontListCreate(
                        XFontStruct *font,
                        XmStringCharSet charset) ;
extern XmFontList XmFontListCreate_r(
                        XFontStruct *font,
                        XmStringCharSet charset,
                        Widget wid) ;
extern XmFontList XmStringCreateFontList(
                        XFontStruct *font,
                        XmStringCharSet charset) ;
extern XmFontList XmStringCreateFontList_r(
                        XFontStruct *font,
                        XmStringCharSet charset,
                        Widget wid) ;
extern void XmFontListFree(
                        XmFontList fontlist) ;
extern XmFontList XmFontListAdd(
                        XmFontList old,
                        XFontStruct *font,
                        XmStringCharSet charset) ;
extern XmFontList XmFontListCopy(
                        XmFontList fontlist) ;
extern Boolean XmFontListInitFontContext(
                        XmFontContext *context,
                        XmFontList fontlist) ;
extern Boolean XmFontListGetNextFont(
                        XmFontContext context,
                        XmStringCharSet *charset,
                        XFontStruct **font) ;
extern void XmFontListFreeFontContext(
                        XmFontContext context) ;
extern XmString XmStringConcat(
                        XmString a,
                        XmString b) ;
extern XmString XmStringConcatAndFree(
   XmString a,
   XmString b) ;
extern XmString XmStringNConcat(
                        XmString first,
                        XmString second,
                        int n) ;
extern XmString XmStringCopy(
                        XmString string) ;
extern XmString XmStringNCopy(
                        XmString str,
                        int n) ;
extern Boolean XmStringByteCompare(
                        XmString a1,
                        XmString b1) ;
extern Boolean XmStringCompare(
                        XmString a,
                        XmString b) ;
extern int XmStringLength(
                        XmString string) ;
extern Boolean XmStringEmpty(
                        XmString string) ;
extern Boolean XmStringIsVoid(XmString string);
extern Boolean XmStringHasSubstring(
                        XmString string,
                        XmString substring) ;
extern void XmStringFree(
                        XmString string) ;
extern Dimension XmStringBaseline(
                        XmFontList fontlist,
                        XmString string) ;
extern Dimension XmStringWidth(
                        XmFontList fontlist,
                        XmString string) ;
extern Dimension XmStringHeight(
                        XmFontList fontlist,
                        XmString string) ;
extern void XmStringExtent(
                        XmFontList fontlist,
                        XmString string,
                        Dimension *width,
                        Dimension *height) ;
extern int XmStringLineCount(
                        XmString string) ;
extern void XmStringDraw(
                        Display *d,
                        Window w,
                        XmFontList fontlist,
                        XmString string,
                        GC gc,

                        int x,
                        int y,
                        int width,
                        unsigned int align,
                        unsigned int lay_dir,







                        XRectangle *clip) ;
extern void XmStringDrawImage(
                        Display *d,
                        Window w,
                        XmFontList fontlist,
                        XmString string,
                        GC gc,

                        int x,
                        int y,
                        int width,
                        unsigned int align,
                        unsigned int lay_dir,







                        XRectangle *clip) ;
extern void XmStringDrawUnderline(
                        Display *d,
                        Window w,
                        XmFontList fntlst,
                        XmString str,
                        GC gc,

                        int x,
                        int y,
                        int width,
                        unsigned int align,
                        unsigned int lay_dir,







                        XRectangle *clip,
                        XmString under) ;
extern unsigned int XmCvtXmStringToByteStream(
   XmString string,
                 unsigned char **prop_return);
extern XmString XmCvtByteStreamToXmString(
                 unsigned char *property);
extern unsigned int XmStringByteStreamLength(unsigned char *string);
extern XmStringComponentType XmStringPeekNextTriple(XmStringContext
context);
extern XmStringComponentType XmStringGetNextTriple(XmStringContext
context,
         unsigned int *length,
         XtPointer *value);
extern XmString XmStringComponentCreate(XmStringComponentType tag,
     unsigned int length,
     XtPointer value);
extern XtPointer XmStringUnparse(XmString string,
     XmStringTag tag,
     XmTextType tag_type,
     XmTextType output_type,
     XmParseTable parse_table,
     Cardinal parse_count,
     XmParseModel parse_model);
extern XmString XmStringParseText(XtPointer text,
      XtPointer *text_end,
      XmStringTag tag,
      XmTextType type,
      XmParseTable parse_table,
      Cardinal parse_count,
      XtPointer call_data);
extern Cardinal XmStringToXmStringTable(XmString string,
     XmString break_comp,
     XmStringTable *table);
extern XmString XmStringTableToXmString(XmStringTable table,
     Cardinal count,
     XmString break_component);
extern XtPointer *XmStringTableUnparse(XmStringTable table,
           Cardinal count,
           XmStringTag tag,
           XmTextType tag_type,
           XmTextType output_type,
           XmParseTable parse,
           Cardinal parse_count,
           XmParseModel parse_model);
extern XmStringTable XmStringTableParseStringArray(XtPointer *strings,
         Cardinal count,
         XmStringTag tag,
         XmTextType type,
         XmParseTable parse,
         Cardinal parse_count,
         XtPointer call_data);

extern XmStringDirection XmDirectionToStringDirection(XmDirection dir);
extern XmDirection XmStringDirectionToDirection(XmStringDirection dir);

extern XmString XmStringGenerate(XtPointer text,
     XmStringTag tag,
     XmTextType type,
     XmStringTag rendition);
extern XmString XmStringPutRendition(XmString string,
         XmStringTag rendition);

extern XmParseMapping XmParseMappingCreate(ArgList arg_list,
        Cardinal arg_count);
extern void XmParseMappingSetValues(XmParseMapping parse_mapping,
        ArgList arg_list,
        Cardinal arg_count);
extern void XmParseMappingGetValues(XmParseMapping parse_mapping,
        ArgList arg_list,
        Cardinal arg_count);
extern void XmParseMappingFree(XmParseMapping parse_mapping);
extern void XmParseTableFree(XmParseTable parse_table,
        Cardinal parse_count);





extern XmTabList
  XmStringTableProposeTablist(XmStringTable strings,
         Cardinal num_strings,
         Widget widget,
         float pad_value,
         XmOffsetModel offset_model);
extern void XmTabSetValue(XmTab xmtab, float value);
extern float
  XmTabGetValues(XmTab xmtab,
   unsigned char *units,
   XmOffsetModel *offset,
   unsigned char *alignment,
   char **decimal);
extern void XmTabFree(XmTab xmtab);
extern XmTab XmTabCreate(float value,
    unsigned char units,
    XmOffsetModel offset_model,
    unsigned char alignment,
    char *decimal);
extern XmTabList
  XmTabListRemoveTabs(XmTabList oldlist,
        Cardinal *position_list,
        Cardinal position_count);
extern XmTabList
  XmTabListReplacePositions(XmTabList oldlist,
       Cardinal *position_list,
       XmTab *tabs,
       Cardinal tab_count);
extern XmTab XmTabListGetTab(XmTabList tablist, Cardinal position);
extern Cardinal XmTabListTabCount(XmTabList tablist);
extern XmTabList XmTabListCopy(XmTabList tablist, int offset, Cardinal
count);
extern void XmTabListFree(XmTabList tablist);
extern XmTabList XmTabListInsertTabs(XmTabList oldlist,
         XmTab *tabs,
         Cardinal tab_count,
         int position);




extern XmRenderTable XmRenderTableCvtFromProp(Widget, char *prop,
unsigned int len);
extern unsigned int XmRenderTableCvtToProp(Widget, XmRenderTable table,
char **prop_return);
extern void XmRenditionUpdate(XmRendition rendition, ArgList arglist,
Cardinal argcount);
extern void XmRenditionRetrieve(XmRendition rendition,
    ArgList arglist,
    Cardinal argcount);
extern void XmRenditionFree(XmRendition rendition);
extern XmRendition XmRenditionCreate(Widget widget,
         XmStringTag tag,
         ArgList arglist,
         Cardinal argcount);
extern XmRendition
  *XmRenderTableGetRenditions(XmRenderTable table,
         XmStringTag *tags,
         Cardinal tag_count);
extern XmRendition XmRenderTableGetRendition(XmRenderTable table,
          XmStringTag tag);
extern int XmRenderTableGetTags(XmRenderTable table,
    XmStringTag **tag_list);
extern void XmRenderTableFree(XmRenderTable table);
extern XmRenderTable XmRenderTableCopy(XmRenderTable table,
           XmStringTag *tags,
           int tag_count);
extern XmRenderTable
  XmRenderTableRemoveRenditions(XmRenderTable oldtable,
    XmStringTag *tags,
    int tag_count);
extern XmRenderTable
  XmRenderTableAddRenditions(XmRenderTable oldtable,
        XmRendition *renditions,
        Cardinal rendition_count,
        XmMergeMode merge_mode);





extern Widget XmGetDestination(
                        Display *display) ;





extern Boolean XmIsTraversable(
                        Widget wid) ;
extern XmVisibility XmGetVisibility(
                        Widget wid) ;
extern Widget XmGetTabGroup(
                        Widget wid) ;
extern Widget XmGetFocusWidget(
                        Widget wid) ;
extern Boolean XmProcessTraversal(
                        Widget w,
                        XmTraversalDirection dir) ;
extern void XmAddTabGroup(
                        Widget tabGroup) ;
extern void XmRemoveTabGroup(
                        Widget w) ;






}






# 1 "/usr/X11R6/include/Xm/VendorS.h" 1
# 54 "/usr/X11R6/include/Xm/VendorS.h"
extern "C" {







typedef struct _XmVendorShellRec *XmVendorShellWidget;
typedef struct _XmVendorShellClassRec *XmVendorShellWidgetClass;
extern WidgetClass vendorShellWidgetClass;




extern Boolean XmIsMotifWMRunning(
                        Widget shell) ;
extern Widget XmToolTipGetLabel(Widget wid);






}
# 2042 "/usr/X11R6/include/Xm/Xm.h" 2
# 1 "/usr/X11R6/include/Xm/XmIm.h" 1
# 46 "/usr/X11R6/include/Xm/XmIm.h"
extern "C" {




extern void XmImRegister(
                        Widget w,
   unsigned int reserved) ;
extern void XmImUnregister(
                        Widget w) ;
extern void XmImSetFocusValues(
                        Widget w,
                        ArgList args,
                        Cardinal num_args) ;
extern void XmImSetValues(
                        Widget w,
                        ArgList args,
                        Cardinal num_args) ;
extern void XmImUnsetFocus(
                        Widget w) ;
extern XIM XmImGetXIM(
                        Widget w) ;
extern void XmImCloseXIM(
                        Widget w) ;

extern int XmImMbLookupString(
                        Widget w,
                        XKeyPressedEvent *event,
                        char *buf,
                        int nbytes,
                        KeySym *keysym,
                        int *status) ;
extern void XmImVaSetFocusValues(
                        Widget w,
                        ...) ;
extern void XmImVaSetValues(
                        Widget w,
                        ...) ;
extern XIC XmImGetXIC(
          Widget w,

          unsigned int input_policy,



          ArgList args,
          Cardinal num_args) ;
extern XIC XmImSetXIC(
   Widget w,
   XIC input_context) ;
extern void XmImFreeXIC(
   Widget w,
   XIC input_context) ;

extern void XmImMbResetIC(
   Widget w,
   char **mb);




}
# 2043 "/usr/X11R6/include/Xm/Xm.h" 2






enum {
  XmINDICATOR_NONE = 0,
  XmINDICATOR_FILL = 1,
  XmINDICATOR_BOX = 255,
  XmINDICATOR_CHECK = 0x10,
  XmINDICATOR_CHECK_BOX = 0x10 + 0x01,
  XmINDICATOR_CROSS = 0x20,
  XmINDICATOR_CROSS_BOX = 0x20 + 0x01
};

enum { XmUNSET, XmSET, XmINDETERMINATE };
enum { XmTOGGLE_BOOLEAN, XmTOGGLE_INDETERMINATE };
typedef unsigned char XmToggleButtonState;


typedef enum { EditDone, EditError, EditReject } XmTextStatus;


enum { XmEXTERNAL_HIGHLIGHT, XmINTERNAL_HIGHLIGHT };




enum { XmPATH_MODE_FULL, XmPATH_MODE_RELATIVE };
enum { XmFILTER_NONE, XmFILTER_HIDDEN_FILES} ;
# 4 "barcode_alert_resources.h" 2

typedef struct {
    String invalid_config_file;
    String config_fault_msg;
    String contact_mvp_msg;
    String unknown_config_fault;
    String bad_bc_length;
    String bad_bc_significant_length;
    String bad_bc_skip_start;
    String bad_bc_skip_end;
    String bad_bc_match;
    String bad_bc_multiple_match;
    String number_of_panels_missing;
    String database_name_missing;
    String excess_fields_in_definition;
    String invalid_input;
    String file_parsing_error;
    String invalid_skip_values;
    String rename_failed;
    String remove_original_failed;
    String bc_file_open_failed;
    String bc_file_write_failed;
    String duplicate_bc_in_file;
    String more_barcodes_needed;
} barcodeAlertResources_t;

extern barcodeAlertResources_t gbarcodeAlertResources;
extern void fetch_barcode_alert_resources(Widget parent);
# 8 "barcode_alert_resources.c" 2

barcodeAlertResources_t gbarcodeAlertResources;

static XtResource my_resources[] = {




  {
    const_cast<char *>("InvalidConfigFile"),
    const_cast<char *>("InvalidConfigFile"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->invalid_config_file)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"The barcode configuration file '%s' is invalid.\n",
  },




  {
    const_cast<char *>("ConfigFaultMsg"),
    const_cast<char *>("ConfigFaultMsg"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->config_fault_msg)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"You may still edit the file, however it may not be used
for inspection on the production line\nThe fault is:\n",
  },




  {
    const_cast<char *>("ContactMvpMsg"),
    const_cast<char *>("ContactMvpMsg"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->contact_mvp_msg)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"Contact MVP for assistance",
  },




  {
    const_cast<char *>("UnknownConfigFault"),
    const_cast<char *>("UnknownConfigFault"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->unknown_config_fault)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"Unknown reason, Contact MVP",
  },




  {
    const_cast<char *>("BadBcLength"),
    const_cast<char *>("BadBcLength"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->bad_bc_length)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"KW_LENGTH bad number",
  },




  {
    const_cast<char *>("BadBcSignificantLength"),
    const_cast<char *>("BadBcSignificantLength"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->bad_bc_significant_length)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"KW_SIGNIFICANCE bad number",
  },




  {
    const_cast<char *>("BadBcSkipStart"),
    const_cast<char *>("BadBcSkipStart"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->bad_bc_skip_start)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"KW_SKIP_START bad number",
  },




  {
    const_cast<char *>("BadBcSkipEnd"),
    const_cast<char *>("BadBcSkipEnd"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->bad_bc_skip_end)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"KW_SKIP_END bad number",
  },




  {
    const_cast<char *>("BadBcMatch"),
    const_cast<char *>("BadBcMatch"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->bad_bc_match)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"KW_MATCH_BC bad boolean",
  },




  {
    const_cast<char *>("BadBcMultipleMatch"),
    const_cast<char *>("BadBcMultipleMatch"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->bad_bc_multiple_match)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"KW_MULTIPLE_NOMATCH bad boolean",
  },




  {
    const_cast<char *>("NumberOfPanelsMissing"),
    const_cast<char *>("NumberOfPanelsMissing"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->number_of_panels_missing)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"Invalid database definition line\nmissing number of
panels",
  },




  {
    const_cast<char *>("DatabaseNameMissing"),
    const_cast<char *>("DatabaseNameMissing"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->database_name_missing)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"Invalid database definition line\nmissing database
name",
  },




  {
    const_cast<char *>("ExcessFieldsInDefinition"),
    const_cast<char *>("ExcessFieldsInDefinition"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->excess_fields_in_definition)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"Invalid database definition line\ntoo many fields,
excess ignored",
  },




  {
    const_cast<char *>("InvalidInput"),
    const_cast<char *>("InvalidInput"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->invalid_input)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"Invalid input",
  },




  {
    const_cast<char *>("FileParsingError"),
    const_cast<char *>("FileParsingError"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->file_parsing_error)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"Parsing file\nt%s\nfailed",
  },




  {
    const_cast<char *>("InvalidSkipValues"),
    const_cast<char *>("InvalidSkipValues"),
    ((char*)&XtStrings[1797]),
    sizeof(String),
    (__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const
volatile char &> (static_cast<barcodeAlertResources_t *>
(0)->invalid_skip_values)))),
    ((char*)&XtStrings[1695]),
    (XtPointer)"Invalid skip values in barcode file",
  },




  {
    const_cast<char *>("RenameFailed"),

===[ End Output file ]===

-brian


Brian D. McGrew { brian@xxxxxxxxxxxxxxxxxxx || brian@xxxxxxxxxxxxx }
--
> YOU!  Off my planet! 



[Index of Archives]     [GCC Help]     [Fedora Development]     [Fedora Announce]     [Fedora Legacy Announce]     [Home]     [Fedora Config]     [PAM]     [Red Hat 9]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux