c++/3461: Internal compiler error while compiling ncurses-5.2 comp_hash.c (do_alloc.c)

mhcox@BlueZooSoftware.com mhcox@BlueZooSoftware.com
Thu Jun 28 08:06:00 GMT 2001


>Number:         3461
>Category:       c++
>Synopsis:       Internal compiler error while compiling ncurses-5.2 comp_hash.c (do_alloc.c)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 28 08:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Michael H. Cox
>Release:        GNU C version 3.0 (i686-pc-cygwin)
>Organization:
>Environment:
Pentium III, 128MB RAM, Win2K SP2.
Latest cygwin downloaded from redhat (uname -a)
CYGWIN_NT-5.0 DELLA 1.3.2(0.39/3/2) 2001-05-20 23:28 i686 unknown
>Description:
gcc -o make_hash.exe -v -save-temps -O2  -I../ncurses -I.  -DNDEBUG -I. -I../inc
lude -I/usr/local/include -DHAVE_CONFIG_H -DMAIN_PROGRAM ./tinfo/comp_hash.c
Reading specs from /usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/specs
Configured with: ../../src/gcc-3.0/configure i686-pc-cygwin --enable-threads=win
32 --enable-languages=c++,java -enable-shared
Thread model: win32
gcc version 3.0
 /usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/cpp0.exe -lang-c -v -I../ncurses -I.
-I. -I../include -I/usr/local/include -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_P
ATCHLEVEL__=0 -D_X86_=1 -D_X86_=1 -Asystem=winnt -D__OPTIMIZE__ -D__STDC_HOSTED_
_=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tun
e_pentiumpro__ -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__(
(__cdecl__)) -D_stdcall=__attribute__((__stdcall__)) -D_cdecl=__attribute__((__c
decl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D__i386 -D__CYGWIN32__ -
D__CYGWIN__ -Dunix -D__unix__ -D__unix -isystem /usr/local/include -idirafter /u
sr/include -idirafter /usr/include/w32api -DNDEBUG -DHAVE_CONFIG_H -DMAIN_PROGRA
M ./tinfo/comp_hash.c comp_hash.i
GNU CPP version 3.0 (cpplib) (80386, BSD syntax)
ignoring duplicate directory "."
ignoring duplicate directory "."
ignoring duplicate directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
 ../ncurses
 ../include
 /usr/local/include
 /usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include
 /usr/include
 /usr/include/w32api
End of search list.
In file included from ../ncurses/curses.priv.h:48,
                 from tinfo/comp_hash.c:41:
../include/ncurses_dll.h:15:24: warning: extra tokens at end of #undef directive

../include/ncurses_dll.h:16:28: warning: extra tokens at end of #undef directive

In file included from ../include/curses.h:57,
                 from ../ncurses/curses.priv.h:236,
                 from tinfo/comp_hash.c:41:
../include/ncurses_dll.h:15:24: warning: extra tokens at end of #undef directive

../include/ncurses_dll.h:16:28: warning: extra tokens at end of #undef directive

 /usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/cc1.exe -fpreprocessed comp_hash.i -q
uiet -dumpbase comp_hash.c -O2 -version -o comp_hash.s
GNU CPP version 3.0 (cpplib) (80386, BSD syntax)
GNU C version 3.0 (i686-pc-cygwin)
        compiled by GNU C version 3.0.
In file included from tinfo/comp_hash.c:69:
../ncurses/tinfo/doalloc.c: In function `_nc_doalloc':
../ncurses/tinfo/doalloc.c:58: Internal compiler error in rest_of_compilation, a
t toplev.c:3732
>How-To-Repeat:
configure/build ncurses-5.2 under latest cygwin
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="comp_hash.i"
Content-Disposition: inline; filename="comp_hash.i"

# 41 "tinfo/comp_hash.c"
# 1 "../ncurses/curses.priv.h" 1
# 48 "../ncurses/curses.priv.h"
# 1 "../include/ncurses_dll.h" 1
# 49 "../ncurses/curses.priv.h" 2





# 1 "../include/ncurses_cfg.h" 1
# 131 "../include/ncurses_cfg.h"
# 1 "../include/ncurses_def.h" 1
# 132 "../include/ncurses_cfg.h" 2
# 55 "../ncurses/curses.priv.h" 2







# 1 "/usr/include/stdlib.h" 1 3
# 13 "/usr/include/stdlib.h" 3
# 1 "/usr/include/_ansi.h" 1 3
# 15 "/usr/include/_ansi.h" 3
# 1 "/usr/include/sys/config.h" 1 3
# 113 "/usr/include/sys/config.h" 3
typedef int __int32_t;
typedef unsigned int __uint32_t;
# 16 "/usr/include/_ansi.h" 2 3
# 14 "/usr/include/stdlib.h" 2 3



# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stddef.h" 1 3
# 199 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stddef.h" 3
typedef unsigned int size_t;
# 287 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stddef.h" 3
typedef short unsigned int wchar_t;
# 18 "/usr/include/stdlib.h" 2 3

# 1 "/usr/include/sys/reent.h" 1 3
# 13 "/usr/include/sys/reent.h" 3
# 1 "/usr/include/_ansi.h" 1 3
# 14 "/usr/include/sys/reent.h" 2 3
# 1 "/usr/include/time.h" 1 3
# 10 "/usr/include/time.h" 3
# 1 "/usr/include/_ansi.h" 1 3
# 11 "/usr/include/time.h" 2 3
# 21 "/usr/include/time.h" 3
# 1 "/usr/include/machine/time.h" 1 3
# 22 "/usr/include/time.h" 2 3
# 30 "/usr/include/time.h" 3
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stddef.h" 1 3
# 31 "/usr/include/time.h" 2 3

# 1 "/usr/include/sys/types.h" 1 3
# 31 "/usr/include/sys/types.h" 3
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stddef.h" 1 3
# 147 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stddef.h" 3
typedef int ptrdiff_t;
# 32 "/usr/include/sys/types.h" 2 3
# 1 "/usr/include/machine/types.h" 1 3
# 33 "/usr/include/sys/types.h" 2 3
# 54 "/usr/include/sys/types.h" 3
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;



typedef unsigned short ushort;
typedef unsigned int uint;



typedef unsigned long clock_t;




typedef long time_t;




struct timespec {
  time_t tv_sec;
  long tv_nsec;
};

struct itimerspec {
  struct timespec it_interval;
  struct timespec it_value;
};


typedef long daddr_t;
typedef char * caddr_t;


typedef unsigned long ino_t;
# 101 "/usr/include/sys/types.h" 3
typedef unsigned long vm_offset_t;
typedef unsigned long vm_size_t;



typedef char int8_t;
typedef unsigned char u_int8_t;
typedef short int16_t;
typedef unsigned short u_int16_t;
typedef int int32_t;
typedef unsigned int u_int32_t;
typedef long long int64_t;
typedef unsigned long long u_int64_t;
typedef int32_t register_t;
# 128 "/usr/include/sys/types.h" 3
typedef short dev_t;


typedef long off_t;

typedef unsigned short uid_t;
typedef unsigned short gid_t;
typedef int pid_t;
typedef long key_t;
typedef long ssize_t;


typedef char * addr_t;
typedef int mode_t;
# 154 "/usr/include/sys/types.h" 3
typedef unsigned short nlink_t;
# 176 "/usr/include/sys/types.h" 3
typedef long fd_mask;







typedef struct _types_fd_set {
        fd_mask fds_bits[(((64)+(((sizeof (fd_mask) * 8))-1))/((sizeof (fd_mask) * 8)))];
} _types_fd_set;
# 212 "/usr/include/sys/types.h" 3
typedef unsigned long clockid_t;




typedef unsigned long timer_t;



# 1 "/usr/include/sys/features.h" 1 3
# 222 "/usr/include/sys/types.h" 2 3
# 326 "/usr/include/sys/types.h" 3
# 1 "/usr/include/cygwin/types.h" 1 3
# 22 "/usr/include/cygwin/types.h" 3
typedef void *pthread_t;
typedef void *pthread_mutex_t;

typedef void *pthread_key_t;
typedef void *pthread_attr_t;
typedef void *pthread_mutexattr_t;
typedef void *pthread_condattr_t;
typedef void *pthread_cond_t;


typedef struct
{
  pthread_mutex_t mutex;
  int state;
}
pthread_once_t;
typedef void *pthread_rwlock_t;
typedef void *pthread_rwlockattr_t;
# 327 "/usr/include/sys/types.h" 2 3
# 33 "/usr/include/time.h" 2 3

struct tm
{
  int tm_sec;
  int tm_min;
  int tm_hour;
  int tm_mday;
  int tm_mon;
  int tm_year;
  int tm_wday;
  int tm_yday;
  int tm_isdst;
};

clock_t __attribute__((__cdecl__)) clock (void);
double __attribute__((__cdecl__)) difftime (time_t _time2, time_t _time1);
time_t __attribute__((__cdecl__)) mktime (struct tm *_timeptr);
time_t __attribute__((__cdecl__)) time (time_t *_timer);

char *__attribute__((__cdecl__)) asctime (const struct tm *_tblock);
char *__attribute__((__cdecl__)) ctime (const time_t *_time);
struct tm *__attribute__((__cdecl__)) gmtime (const time_t *_timer);
struct tm *__attribute__((__cdecl__)) localtime (const time_t *_timer);

size_t __attribute__((__cdecl__)) strftime (char *_s, size_t _maxsize, const char *_fmt, const struct tm *_t);

char *__attribute__((__cdecl__)) asctime_r (const struct tm *, char *);
char *__attribute__((__cdecl__)) ctime_r (const time_t *, char *);
struct tm *__attribute__((__cdecl__)) gmtime_r (const time_t *, struct tm *);
struct tm *__attribute__((__cdecl__)) localtime_r (const time_t *, struct tm *);



extern __attribute__((dllimport)) time_t _timezone;
extern __attribute__((dllimport)) int _daylight;
extern __attribute__((dllimport)) char *_tzname[2];
# 81 "/usr/include/time.h" 3
char *__attribute__((__cdecl__)) timezone (void);

void __attribute__((__cdecl__)) tzset (void);



# 1 "/usr/include/sys/features.h" 1 3
# 88 "/usr/include/time.h" 2 3
# 15 "/usr/include/sys/reent.h" 2 3
# 28 "/usr/include/sys/reent.h" 3
typedef __uint32_t __ULong;


struct _glue
{
  struct _glue *_next;
  int _niobs;
  struct __sFILE *_iobs;
};

struct _Bigint
{
  struct _Bigint *_next;
  int _k, _maxwds, _sign, _wds;
  __ULong _x[1];
};







struct _atexit {
        struct _atexit *_next;
        int _ind;
        void (*_fns[32])(void);
};
# 64 "/usr/include/sys/reent.h" 3
struct __sbuf {
        unsigned char *_base;
        int _size;
};






typedef long _fpos_t;
# 102 "/usr/include/sys/reent.h" 3
struct __sFILE {
  unsigned char *_p;
  int _r;
  int _w;
  short _flags;
  short _file;
  struct __sbuf _bf;
  int _lbfsize;


  void * _cookie;

  ssize_t __attribute__((__cdecl__)) (*_read) (void * _cookie, char *_buf, int _n);
  ssize_t __attribute__((__cdecl__)) (*_write) (void * _cookie, const char *_buf, int _n);

  _fpos_t __attribute__((__cdecl__)) (*_seek) (void * _cookie, _fpos_t _offset, int _whence);
  int __attribute__((__cdecl__)) (*_close) (void * _cookie);


  struct __sbuf _ub;
  unsigned char *_up;
  int _ur;


  unsigned char _ubuf[3];
  unsigned char _nbuf[1];


  struct __sbuf _lb;


  int _blksize;
  int _offset;

  struct _reent *_data;
};
# 160 "/usr/include/sys/reent.h" 3
struct _rand48 {
  unsigned short _seed[3];
  unsigned short _mult[3];
  unsigned short _add;
};
# 174 "/usr/include/sys/reent.h" 3
struct _reent
{

  int _errno;




  struct __sFILE *_stdin, *_stdout, *_stderr;

  int _inc;
  char _emergency[25];

  int _current_category;
  const char *_current_locale;

  int __sdidinit;

  void __attribute__((__cdecl__)) (*__cleanup) (struct _reent *);


  struct _Bigint *_result;
  int _result_k;
  struct _Bigint *_p5s;
  struct _Bigint **_freelist;


  int _cvtlen;
  char *_cvtbuf;

  union
    {
      struct
        {
          unsigned int _unused_rand;
          char * _strtok_last;
          char _asctime_buf[26];
          struct tm _localtime_buf;
          int _gamma_signgam;
          __extension__ unsigned long long _rand_next;
          struct _rand48 _r48;
        } _reent;



      struct
        {

          unsigned char * _nextf[30];
          unsigned int _nmalloc[30];
        } _unused;
    } _new;


  struct _atexit *_atexit;
  struct _atexit _atexit0;


  void (**(_sig_func))(int);




  struct _glue __sglue;
  struct __sFILE __sf[3];
};
# 257 "/usr/include/sys/reent.h" 3
extern struct _reent *_impure_ptr ;

void _reclaim_reent (struct _reent *);
# 20 "/usr/include/stdlib.h" 2 3

typedef struct
{
  int quot;
  int rem;
} div_t;

typedef struct
{
  long quot;
  long rem;
} ldiv_t;
# 42 "/usr/include/stdlib.h" 3
extern __attribute__((dllimport)) int __mb_cur_max;



void __attribute__((__cdecl__)) abort (void) __attribute__ ((noreturn));
int __attribute__((__cdecl__)) abs (int);
int __attribute__((__cdecl__)) atexit (void (*__func)(void));
double __attribute__((__cdecl__)) atof (const char *__nptr);

float __attribute__((__cdecl__)) atoff (const char *__nptr);

int __attribute__((__cdecl__)) atoi (const char *__nptr);
long __attribute__((__cdecl__)) atol (const char *__nptr);
void * __attribute__((__cdecl__)) bsearch (const void * __key, const void * __base, size_t __nmemb, size_t __size, int (* __attribute__((__cdecl__)) _compar) (const void *, const void *));




void * __attribute__((__cdecl__)) calloc (size_t __nmemb, size_t __size);
div_t __attribute__((__cdecl__)) div (int __numer, int __denom);
void __attribute__((__cdecl__)) exit (int __status) __attribute__ ((noreturn));
void __attribute__((__cdecl__)) free (void *);
char * __attribute__((__cdecl__)) getenv (const char *__string);
char * __attribute__((__cdecl__)) _getenv_r (struct _reent *, const char *__string);
char * __attribute__((__cdecl__)) _findenv (const char *, int *);
char * __attribute__((__cdecl__)) _findenv_r (struct _reent *, const char *, int *);
long __attribute__((__cdecl__)) labs (long);
ldiv_t __attribute__((__cdecl__)) ldiv (long __numer, long __denom);
void * __attribute__((__cdecl__)) malloc (size_t __size);
int __attribute__((__cdecl__)) mblen (const char *, size_t);
int __attribute__((__cdecl__)) _mblen_r (struct _reent *, const char *, size_t, int *);
int __attribute__((__cdecl__)) mbtowc (wchar_t *, const char *, size_t);
int __attribute__((__cdecl__)) _mbtowc_r (struct _reent *, wchar_t *, const char *, size_t, int *);
int __attribute__((__cdecl__)) wctomb (char *, wchar_t);
int __attribute__((__cdecl__)) _wctomb_r (struct _reent *, char *, wchar_t, int *);
size_t __attribute__((__cdecl__)) mbstowcs (wchar_t *, const char *, size_t);
size_t __attribute__((__cdecl__)) _mbstowcs_r (struct _reent *, wchar_t *, const char *, size_t, int *);
size_t __attribute__((__cdecl__)) wcstombs (char *, const wchar_t *, size_t);
size_t __attribute__((__cdecl__)) _wcstombs_r (struct _reent *, char *, const wchar_t *, size_t, int *);


int __attribute__((__cdecl__)) mkstemp (char *);
char * __attribute__((__cdecl__)) mktemp (char *);


void __attribute__((__cdecl__)) qsort (void * __base, size_t __nmemb, size_t __size, int(*_compar)(const void *, const void *));
int __attribute__((__cdecl__)) rand (void);
void * __attribute__((__cdecl__)) realloc (void * __r, size_t __size);
void __attribute__((__cdecl__)) srand (unsigned __seed);
double __attribute__((__cdecl__)) strtod (const char *__n, char **_end_PTR);
double __attribute__((__cdecl__)) _strtod_r (struct _reent *,const char *__n, char **_end_PTR);

float __attribute__((__cdecl__)) strtodf (const char *__n, char **_end_PTR);

long __attribute__((__cdecl__)) strtol (const char *__n, char **_end_PTR, int __base);
long __attribute__((__cdecl__)) _strtol_r (struct _reent *,const char *__n, char **_end_PTR, int __base);
unsigned long __attribute__((__cdecl__)) strtoul (const char *_n_PTR, char **_end_PTR, int __base);
unsigned long __attribute__((__cdecl__)) _strtoul_r (struct _reent *,const char *_n_PTR, char **_end_PTR, int __base);
int __attribute__((__cdecl__)) system (const char *__string);


int __attribute__((__cdecl__)) putenv (const char *__string);
int __attribute__((__cdecl__)) _putenv_r (struct _reent *, const char *__string);
int __attribute__((__cdecl__)) setenv (const char *__string, const char *__value, int __overwrite);
int __attribute__((__cdecl__)) _setenv_r (struct _reent *, const char *__string, const char *__value, int __overwrite);

char * __attribute__((__cdecl__)) gcvt (double,int,char *);
char * __attribute__((__cdecl__)) gcvtf (float,int,char *);
char * __attribute__((__cdecl__)) fcvt (double,int,int *,int *);
char * __attribute__((__cdecl__)) fcvtf (float,int,int *,int *);
char * __attribute__((__cdecl__)) ecvt (double,int,int *,int *);
char * __attribute__((__cdecl__)) ecvtbuf (double, int, int*, int*, char *);
char * __attribute__((__cdecl__)) fcvtbuf (double, int, int*, int*, char *);
char * __attribute__((__cdecl__)) ecvtf (float,int,int *,int *);
char * __attribute__((__cdecl__)) dtoa (double, int, int, int *, int*, char**);
int __attribute__((__cdecl__)) rand_r (unsigned *__seed);

double __attribute__((__cdecl__)) drand48 (void);
double __attribute__((__cdecl__)) _drand48_r (struct _reent *);
double __attribute__((__cdecl__)) erand48 (unsigned short [3]);
double __attribute__((__cdecl__)) _erand48_r (struct _reent *, unsigned short [3]);
long __attribute__((__cdecl__)) jrand48 (unsigned short [3]);
long __attribute__((__cdecl__)) _jrand48_r (struct _reent *, unsigned short [3]);
void __attribute__((__cdecl__)) lcong48 (unsigned short [7]);
void __attribute__((__cdecl__)) _lcong48_r (struct _reent *, unsigned short [7]);
long __attribute__((__cdecl__)) lrand48 (void);
long __attribute__((__cdecl__)) _lrand48_r (struct _reent *);
long __attribute__((__cdecl__)) mrand48 (void);
long __attribute__((__cdecl__)) _mrand48_r (struct _reent *);
long __attribute__((__cdecl__)) nrand48 (unsigned short [3]);
long __attribute__((__cdecl__)) _nrand48_r (struct _reent *, unsigned short [3]);
unsigned short *
       __attribute__((__cdecl__)) seed48 (unsigned short [3]);
unsigned short *
       __attribute__((__cdecl__)) _seed48_r (struct _reent *, unsigned short [3]);
void __attribute__((__cdecl__)) srand48 (long);
void __attribute__((__cdecl__)) _srand48_r (struct _reent *, long);




char * __attribute__((__cdecl__)) realpath (const char *, char *);
void __attribute__((__cdecl__)) unsetenv (const char *__string);
void __attribute__((__cdecl__)) _unsetenv_r (struct _reent *, const char *__string);
int __attribute__((__cdecl__)) random (void);
long __attribute__((__cdecl__)) srandom (unsigned __seed);
char * __attribute__((__cdecl__)) ptsname (int);
int __attribute__((__cdecl__)) grantpt (int);
int __attribute__((__cdecl__)) unlockpt (int);




char * __attribute__((__cdecl__)) _dtoa_r (struct _reent *, double, int, int, int *, int*, char**);
void * __attribute__((__cdecl__)) _malloc_r (struct _reent *, size_t);
void * __attribute__((__cdecl__)) _calloc_r (struct _reent *, size_t, size_t);
void __attribute__((__cdecl__)) _free_r (struct _reent *, void *);
void * __attribute__((__cdecl__)) _realloc_r (struct _reent *, void *, size_t);
void __attribute__((__cdecl__)) _mstats_r (struct _reent *, char *);
int __attribute__((__cdecl__)) _system_r (struct _reent *, const char *);

void __attribute__((__cdecl__)) __eprintf (const char *, const char *, unsigned int, const char *);
# 63 "../ncurses/curses.priv.h" 2
# 1 "/usr/include/string.h" 1 3
# 14 "/usr/include/string.h" 3
# 1 "/usr/include/_ansi.h" 1 3
# 15 "/usr/include/string.h" 2 3
# 1 "/usr/include/sys/reent.h" 1 3
# 16 "/usr/include/string.h" 2 3


# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stddef.h" 1 3
# 19 "/usr/include/string.h" 2 3





void * __attribute__((__cdecl__)) memchr (const void *, int, size_t);
int __attribute__((__cdecl__)) memcmp (const void *, const void *, size_t);
void * __attribute__((__cdecl__)) memcpy (void *, const void *, size_t);
void * __attribute__((__cdecl__)) memmove (void *, const void *, size_t);
void * __attribute__((__cdecl__)) memset (void *, int, size_t);
char *__attribute__((__cdecl__)) strcat (char *, const char *);
char *__attribute__((__cdecl__)) strchr (const char *, int);
int __attribute__((__cdecl__)) strcmp (const char *, const char *);
int __attribute__((__cdecl__)) strcoll (const char *, const char *);
char *__attribute__((__cdecl__)) strcpy (char *, const char *);
size_t __attribute__((__cdecl__)) strcspn (const char *, const char *);
char *__attribute__((__cdecl__)) strerror (int);
size_t __attribute__((__cdecl__)) strlen (const char *);
char *__attribute__((__cdecl__)) strncat (char *, const char *, size_t);
int __attribute__((__cdecl__)) strncmp (const char *, const char *, size_t);
char *__attribute__((__cdecl__)) strncpy (char *, const char *, size_t);
char *__attribute__((__cdecl__)) strpbrk (const char *, const char *);
char *__attribute__((__cdecl__)) strrchr (const char *, int);
size_t __attribute__((__cdecl__)) strspn (const char *, const char *);
char *__attribute__((__cdecl__)) strstr (const char *, const char *);


char *__attribute__((__cdecl__)) strtok (char *, const char *);


size_t __attribute__((__cdecl__)) strxfrm (char *, const char *, size_t);


char *__attribute__((__cdecl__)) strtok_r (char *, const char *, char **);

int __attribute__((__cdecl__)) bcmp (const char *, const char *, size_t);
void __attribute__((__cdecl__)) bcopy (const char *, char *, size_t);
void __attribute__((__cdecl__)) bzero (char *, size_t);
int __attribute__((__cdecl__)) ffs (int);
char *__attribute__((__cdecl__)) index (const char *, int);
void * __attribute__((__cdecl__)) memccpy (void *, const void *, int, size_t);
char *__attribute__((__cdecl__)) rindex (const char *, int);
int __attribute__((__cdecl__)) strcasecmp (const char *, const char *);
char *__attribute__((__cdecl__)) strdup (const char *);
char *__attribute__((__cdecl__)) _strdup_r (struct _reent *, const char *);
int __attribute__((__cdecl__)) strncasecmp (const char *, const char *, size_t);
char *__attribute__((__cdecl__)) strsep (char **, const char *);
char *__attribute__((__cdecl__)) strlwr (char *);
char *__attribute__((__cdecl__)) strupr (char *);


const char *__attribute__((__cdecl__)) strsignal (int __signo);

int __attribute__((__cdecl__)) strtosigno (const char *__name);
# 64 "../ncurses/curses.priv.h" 2
# 1 "/usr/include/sys/types.h" 1 3
# 65 "../ncurses/curses.priv.h" 2


# 1 "/usr/include/unistd.h" 1 3



# 1 "/usr/include/sys/unistd.h" 1 3







# 1 "/usr/include/_ansi.h" 1 3
# 9 "/usr/include/sys/unistd.h" 2 3
# 1 "/usr/include/sys/types.h" 1 3
# 10 "/usr/include/sys/unistd.h" 2 3


# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stddef.h" 1 3
# 13 "/usr/include/sys/unistd.h" 2 3

extern char **environ;

void __attribute__((__cdecl__)) _exit (int __status ) __attribute__ ((noreturn));

int __attribute__((__cdecl__)) access (const char *__path, int __amode );
unsigned __attribute__((__cdecl__)) alarm (unsigned __secs );
int __attribute__((__cdecl__)) chdir (const char *__path );
int __attribute__((__cdecl__)) chmod (const char *__path, mode_t __mode );
int __attribute__((__cdecl__)) chown (const char *__path, uid_t __owner, gid_t __group );

int __attribute__((__cdecl__)) chroot (const char *__path );

int __attribute__((__cdecl__)) close (int __fildes );
char __attribute__((__cdecl__)) *ctermid (char *__s );
char __attribute__((__cdecl__)) *cuserid (char *__s );
int __attribute__((__cdecl__)) dup (int __fildes );
int __attribute__((__cdecl__)) dup2 (int __fildes, int __fildes2 );
int __attribute__((__cdecl__)) execl (const char *__path, const char *, ... );
int __attribute__((__cdecl__)) execle (const char *__path, const char *, ... );
int __attribute__((__cdecl__)) execlp (const char *__file, const char *, ... );
int __attribute__((__cdecl__)) execv (const char *__path, char * const __argv[] );
int __attribute__((__cdecl__)) execve (const char *__path, char * const __argv[], char * const __envp[] );
int __attribute__((__cdecl__)) execvp (const char *__file, char * const __argv[] );
int __attribute__((__cdecl__)) fchmod (int __fildes, mode_t __mode );
int __attribute__((__cdecl__)) fchown (int __fildes, uid_t __owner, gid_t __group );
pid_t __attribute__((__cdecl__)) fork (void );
long __attribute__((__cdecl__)) fpathconf (int __fd, int __name );
int __attribute__((__cdecl__)) fsync (int __fd);
char __attribute__((__cdecl__)) *getcwd (char *__buf, size_t __size );
gid_t __attribute__((__cdecl__)) getegid (void );
uid_t __attribute__((__cdecl__)) geteuid (void );
gid_t __attribute__((__cdecl__)) getgid (void );
int __attribute__((__cdecl__)) getgroups (int __gidsetsize, gid_t __grouplist[] );
char __attribute__((__cdecl__)) *getlogin (void );

int __attribute__((__cdecl__)) getlogin_r (char *name, size_t namesize);

char __attribute__((__cdecl__)) *getpass (__const char *__prompt);
size_t __attribute__((__cdecl__)) getpagesize (void);
pid_t __attribute__((__cdecl__)) getpgid (pid_t);
pid_t __attribute__((__cdecl__)) getpgrp (void );
pid_t __attribute__((__cdecl__)) getpid (void );
pid_t __attribute__((__cdecl__)) getppid (void );
uid_t __attribute__((__cdecl__)) getuid (void );

char __attribute__((__cdecl__)) *getwd (char *__buf );

int __attribute__((__cdecl__)) isatty (int __fildes );
int __attribute__((__cdecl__)) lchown (const char *__path, uid_t __owner, gid_t __group );
int __attribute__((__cdecl__)) link (const char *__path1, const char *__path2 );
int __attribute__((__cdecl__)) nice (int __nice_value );
off_t __attribute__((__cdecl__)) lseek (int __fildes, off_t __offset, int __whence );
long __attribute__((__cdecl__)) pathconf (const char *__path, int __name );
int __attribute__((__cdecl__)) pause (void );

int __attribute__((__cdecl__)) pthread_atfork (void (*)(void), void (*)(void), void (*)(void));

int __attribute__((__cdecl__)) pipe (int __fildes[2] );
ssize_t __attribute__((__cdecl__)) read (int __fd, void *__buf, size_t __nbyte );
int __attribute__((__cdecl__)) rmdir (const char *__path );



void * __attribute__((__cdecl__)) sbrk (size_t __incr);


int __attribute__((__cdecl__)) setegid (gid_t __gid );
int __attribute__((__cdecl__)) seteuid (uid_t __uid );

int __attribute__((__cdecl__)) setgid (gid_t __gid );
int __attribute__((__cdecl__)) setpgid (pid_t __pid, pid_t __pgid );
int __attribute__((__cdecl__)) setpgrp (void );
pid_t __attribute__((__cdecl__)) setsid (void );
int __attribute__((__cdecl__)) setuid (uid_t __uid );
unsigned __attribute__((__cdecl__)) sleep (unsigned int __seconds );
void __attribute__((__cdecl__)) swab (const void *, void *, ssize_t);
long __attribute__((__cdecl__)) sysconf (int __name );
pid_t __attribute__((__cdecl__)) tcgetpgrp (int __fildes );
int __attribute__((__cdecl__)) tcsetpgrp (int __fildes, pid_t __pgrp_id );
char __attribute__((__cdecl__)) *ttyname (int __fildes );
int __attribute__((__cdecl__)) unlink (const char *__path );
int __attribute__((__cdecl__)) vhangup (void );
ssize_t __attribute__((__cdecl__)) write (int __fd, const void *__buf, size_t __nbyte );


pid_t __attribute__((__cdecl__)) vfork (void );




int __attribute__((__cdecl__)) _close (int __fildes );
pid_t __attribute__((__cdecl__)) _fork (void );
pid_t __attribute__((__cdecl__)) _getpid (void );
int __attribute__((__cdecl__)) _link (const char *__path1, const char *__path2 );
off_t __attribute__((__cdecl__)) _lseek (int __fildes, off_t __offset, int __whence );
ssize_t __attribute__((__cdecl__)) _read (int __fd, void *__buf, size_t __nbyte );
void * __attribute__((__cdecl__)) _sbrk (size_t __incr);
int __attribute__((__cdecl__)) _unlink (const char *__path );
ssize_t __attribute__((__cdecl__)) _write (int __fd, const void *__buf, size_t __nbyte );
int __attribute__((__cdecl__)) _execve (const char *__path, char * const __argv[], char * const __envp[] );


int __attribute__((__cdecl__)) getdtablesize (void);
int __attribute__((__cdecl__)) setdtablesize (int);
unsigned __attribute__((__cdecl__)) usleep (unsigned int __useconds);
int __attribute__((__cdecl__)) ftruncate (int __fd, off_t __length);
int __attribute__((__cdecl__)) truncate (const char *, off_t __length);


 int __attribute__((__cdecl__)) gethostname (char *__name, size_t __len);

char * __attribute__((__cdecl__)) mktemp (char *);
int __attribute__((__cdecl__)) sync (void);
int __attribute__((__cdecl__)) readlink (const char *__path, char *__buf, int __buflen);
int __attribute__((__cdecl__)) symlink (const char *__name1, const char *__name2);
# 140 "/usr/include/sys/unistd.h" 3
# 1 "/usr/include/sys/features.h" 1 3
# 141 "/usr/include/sys/unistd.h" 2 3
# 5 "/usr/include/unistd.h" 2 3
# 68 "../ncurses/curses.priv.h" 2







# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/limits.h" 1 3
# 11 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/limits.h" 3
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/syslimits.h" 1 3






# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/limits.h" 1 3
# 130 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/limits.h" 3
# 1 "/usr/include/limits.h" 1 3
# 131 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/limits.h" 2 3
# 8 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/syslimits.h" 2 3
# 12 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/limits.h" 2 3
# 76 "../ncurses/curses.priv.h" 2
# 90 "../ncurses/curses.priv.h"
# 1 "/usr/include/assert.h" 1 3
# 9 "/usr/include/assert.h" 3
# 1 "/usr/include/_ansi.h" 1 3
# 10 "/usr/include/assert.h" 2 3
# 25 "/usr/include/assert.h" 3
void __attribute__((__cdecl__)) __assert (const char *, int, const char *);
# 91 "../ncurses/curses.priv.h" 2
# 1 "/usr/include/stdio.h" 1 3
# 32 "/usr/include/stdio.h" 3
# 1 "/usr/include/_ansi.h" 1 3
# 33 "/usr/include/stdio.h" 2 3




# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stddef.h" 1 3
# 38 "/usr/include/stdio.h" 2 3


# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stdarg.h" 1 3
# 43 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stdarg.h" 3
typedef __builtin_va_list __gnuc_va_list;
# 41 "/usr/include/stdio.h" 2 3







# 1 "/usr/include/sys/reent.h" 1 3
# 49 "/usr/include/stdio.h" 2 3

typedef _fpos_t fpos_t;

typedef struct __sFILE FILE;
# 145 "/usr/include/stdio.h" 3
FILE * __attribute__((__cdecl__)) tmpfile (void);
char * __attribute__((__cdecl__)) tmpnam (char *);
int __attribute__((__cdecl__)) fclose (FILE *);
int __attribute__((__cdecl__)) fflush (FILE *);
FILE * __attribute__((__cdecl__)) freopen (const char *, const char *, FILE *);
void __attribute__((__cdecl__)) setbuf (FILE *, char *);
int __attribute__((__cdecl__)) setvbuf (FILE *, char *, int, size_t);
int __attribute__((__cdecl__)) fprintf (FILE *, const char *, ...);
int __attribute__((__cdecl__)) fscanf (FILE *, const char *, ...);
int __attribute__((__cdecl__)) printf (const char *, ...);
int __attribute__((__cdecl__)) scanf (const char *, ...);
int __attribute__((__cdecl__)) sscanf (const char *, const char *, ...);
int __attribute__((__cdecl__)) vfprintf (FILE *, const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) vprintf (const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) vsprintf (char *, const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) fgetc (FILE *);
char * __attribute__((__cdecl__)) fgets (char *, int, FILE *);
int __attribute__((__cdecl__)) fputc (int, FILE *);
int __attribute__((__cdecl__)) fputs (const char *, FILE *);
int __attribute__((__cdecl__)) getc (FILE *);
int __attribute__((__cdecl__)) getchar (void);
char * __attribute__((__cdecl__)) gets (char *);
int __attribute__((__cdecl__)) putc (int, FILE *);
int __attribute__((__cdecl__)) putchar (int);
int __attribute__((__cdecl__)) puts (const char *);
int __attribute__((__cdecl__)) ungetc (int, FILE *);
size_t __attribute__((__cdecl__)) fread (void *, size_t _size, size_t _n, FILE *);
size_t __attribute__((__cdecl__)) fwrite (const void * , size_t _size, size_t _n, FILE *);
int __attribute__((__cdecl__)) fgetpos (FILE *, fpos_t *);
int __attribute__((__cdecl__)) fseek (FILE *, long, int);
int __attribute__((__cdecl__)) fsetpos (FILE *, const fpos_t *);
long __attribute__((__cdecl__)) ftell ( FILE *);
void __attribute__((__cdecl__)) rewind (FILE *);
void __attribute__((__cdecl__)) clearerr (FILE *);
int __attribute__((__cdecl__)) feof (FILE *);
int __attribute__((__cdecl__)) ferror (FILE *);
void __attribute__((__cdecl__)) perror (const char *);

FILE * __attribute__((__cdecl__)) fopen (const char *_name, const char *_type);
int __attribute__((__cdecl__)) sprintf (char *, const char *, ...);
int __attribute__((__cdecl__)) remove (const char *);
int __attribute__((__cdecl__)) rename (const char *, const char *);


int __attribute__((__cdecl__)) vfiprintf (FILE *, const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) iprintf (const char *, ...);
int __attribute__((__cdecl__)) fiprintf (FILE *, const char *, ...);
int __attribute__((__cdecl__)) siprintf (char *, const char *, ...);
char * __attribute__((__cdecl__)) tempnam (const char *, const char *);
int __attribute__((__cdecl__)) vsnprintf (char *, size_t, const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) vfscanf (FILE *, const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) vscanf (const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) vsscanf (const char *, const char *, __gnuc_va_list);

int __attribute__((__cdecl__)) snprintf (char *, size_t, const char *, ...);
# 209 "/usr/include/stdio.h" 3
FILE * __attribute__((__cdecl__)) fdopen (int, const char *);

int __attribute__((__cdecl__)) fileno (FILE *);
int __attribute__((__cdecl__)) getw (FILE *);
int __attribute__((__cdecl__)) pclose (FILE *);
FILE * __attribute__((__cdecl__)) popen (const char *, const char *);
int __attribute__((__cdecl__)) putw (int, FILE *);
void __attribute__((__cdecl__)) setbuffer (FILE *, char *, int);
int __attribute__((__cdecl__)) setlinebuf (FILE *);






FILE * __attribute__((__cdecl__)) _fdopen_r (struct _reent *, int, const char *);
FILE * __attribute__((__cdecl__)) _fopen_r (struct _reent *, const char *, const char *);
int __attribute__((__cdecl__)) _fscanf_r (struct _reent *, FILE *, const char *, ...);
int __attribute__((__cdecl__)) _getchar_r (struct _reent *);
char * __attribute__((__cdecl__)) _gets_r (struct _reent *, char *);
int __attribute__((__cdecl__)) _iprintf_r (struct _reent *, const char *, ...);
int __attribute__((__cdecl__)) _mkstemp_r (struct _reent *, char *);
char * __attribute__((__cdecl__)) _mktemp_r (struct _reent *, char *);
void __attribute__((__cdecl__)) _perror_r (struct _reent *, const char *);
int __attribute__((__cdecl__)) _printf_r (struct _reent *, const char *, ...);
int __attribute__((__cdecl__)) _putchar_r (struct _reent *, int);
int __attribute__((__cdecl__)) _puts_r (struct _reent *, const char *);
int __attribute__((__cdecl__)) _remove_r (struct _reent *, const char *);
int __attribute__((__cdecl__)) _rename_r (struct _reent *, const char *_old, const char *_new);

int __attribute__((__cdecl__)) _scanf_r (struct _reent *, const char *, ...);
int __attribute__((__cdecl__)) _sprintf_r (struct _reent *, char *, const char *, ...);
int __attribute__((__cdecl__)) _snprintf_r (struct _reent *, char *, size_t, const char *, ...);
int __attribute__((__cdecl__)) _sscanf_r (struct _reent *, const char *, const char *, ...);
char * __attribute__((__cdecl__)) _tempnam_r (struct _reent *, const char *, const char *);
FILE * __attribute__((__cdecl__)) _tmpfile_r (struct _reent *);
char * __attribute__((__cdecl__)) _tmpnam_r (struct _reent *, char *);
int __attribute__((__cdecl__)) _vfprintf_r (struct _reent *, FILE *, const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) _vprintf_r (struct _reent *, const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) _vsprintf_r (struct _reent *, char *, const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) _vsnprintf_r (struct _reent *, char *, size_t, const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) _vfscanf_r (struct _reent *, FILE *, const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) _vscanf_r (struct _reent *, const char *, __gnuc_va_list);
int __attribute__((__cdecl__)) _vsscanf_r (struct _reent *, const char *, const char *, __gnuc_va_list);





int __attribute__((__cdecl__)) __srget (FILE *);
int __attribute__((__cdecl__)) __swbuf (int, FILE *);






FILE *__attribute__((__cdecl__)) funopen (const void * _cookie, int (*readfn)(void * _cookie, char *_buf, int _n), int (*writefn)(void * _cookie, const char *_buf, int _n), fpos_t (*seekfn)(void * _cookie, fpos_t _off, int _whence), int (*closefn)(void * _cookie));
# 283 "/usr/include/stdio.h" 3
static __inline__ int __sgetc(FILE *__p)
  {
    int __c = (--(__p)->_r < 0 ? __srget(__p) : (int)(*(__p)->_p++));
    if ((__p->_flags & 0x4000) && (__c == '\r'))
      {
      int __c2 = (--(__p)->_r < 0 ? __srget(__p) : (int)(*(__p)->_p++));
      if (__c2 == '\n')
        __c = __c2;
      else
        ungetc(__c2, __p);
      }
    return __c;
  }
# 92 "../ncurses/curses.priv.h" 2

# 1 "/usr/include/errno.h" 1 3
# 1 "/usr/include/sys/errno.h" 1 3
# 11 "/usr/include/sys/errno.h" 3
# 1 "/usr/include/sys/reent.h" 1 3
# 12 "/usr/include/sys/errno.h" 2 3



extern int *__errno (void);


extern __attribute__((dllimport)) const char * const _sys_errlist[];
extern __attribute__((dllimport)) int _sys_nerr;
# 2 "/usr/include/errno.h" 2 3
# 94 "../ncurses/curses.priv.h" 2





# 1 "../include/nc_panel.h" 1
# 51 "../include/nc_panel.h"
struct panel;

struct panelhook {
  struct panel* top_panel;
  struct panel* bottom_panel;
  struct panel* stdscr_pseudo_panel;
};


extern __attribute__((dllimport)) struct panelhook* __attribute__((__cdecl__)) _nc_panelhook (void);
# 100 "../ncurses/curses.priv.h" 2





# 1 "/usr/include/poll.h" 1 3
# 11 "/usr/include/poll.h" 3
# 1 "/usr/include/sys/poll.h" 1 3
# 14 "/usr/include/sys/poll.h" 3
# 1 "/usr/include/sys/cdefs.h" 1 3
# 15 "/usr/include/sys/poll.h" 2 3
# 33 "/usr/include/sys/poll.h" 3
struct pollfd {
  int fd;
  short events;
  short revents;
};

extern int poll (struct pollfd *fds, unsigned int nfds, int timeout);
# 12 "/usr/include/poll.h" 2 3
# 106 "../ncurses/curses.priv.h" 2
# 196 "../ncurses/curses.priv.h"
struct tries {
        struct tries *child;
        struct tries *sibling;
        unsigned char ch;
        unsigned short value;
};
# 222 "../ncurses/curses.priv.h"
typedef struct
{
    short red, green, blue;
}
color_t;
# 236 "../ncurses/curses.priv.h"
# 1 "../include/curses.h" 1
# 57 "../include/curses.h"
# 1 "../include/ncurses_dll.h" 1
# 58 "../include/curses.h" 2
# 76 "../include/curses.h"
typedef unsigned long chtype;

# 1 "/usr/include/stdio.h" 1 3
# 79 "../include/curses.h" 2
# 1 "../include/unctrl.h" 1
# 54 "../include/unctrl.h"
# 1 "../include/curses.h" 1
# 55 "../include/unctrl.h" 2


__attribute__((dllimport)) char * __attribute__((__cdecl__)) unctrl (chtype);
# 80 "../include/curses.h" 2
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stdarg.h" 1 3
# 110 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/include/stdarg.h" 3
typedef __gnuc_va_list va_list;
# 81 "../include/curses.h" 2
# 98 "../include/curses.h"
typedef unsigned char bool;
# 128 "../include/curses.h"
extern __attribute__((dllimport)) int COLORS;
extern __attribute__((dllimport)) int COLOR_PAIRS;
# 142 "../include/curses.h"
extern __attribute__((dllimport)) chtype acs_map[];
# 231 "../include/curses.h"
typedef struct screen SCREEN;
typedef struct _win_st WINDOW;

typedef chtype attr_t;
# 253 "../include/curses.h"
struct ldat
{
        chtype *text;
        short firstchar;
        short lastchar;
        short oldindex;
};

struct _win_st
{
        short _cury, _curx;


        short _maxy, _maxx;
        short _begy, _begx;

        short _flags;


        attr_t _attrs;
        chtype _bkgd;


        bool _notimeout;
        bool _clear;
        bool _leaveok;
        bool _scroll;
        bool _idlok;
        bool _idcok;
        bool _immed;
        bool _sync;
        bool _use_keypad;
        int _delay;

        struct ldat *_line;


        short _regtop;
        short _regbottom;


        int _parx;
        int _pary;
        WINDOW *_parent;


        struct pdat
        {
            short _pad_y, _pad_x;
            short _pad_top, _pad_left;
            short _pad_bottom, _pad_right;
        } _pad;

        short _yoffset;
};

extern __attribute__((dllimport)) WINDOW * stdscr;
extern __attribute__((dllimport)) WINDOW * curscr;
extern __attribute__((dllimport)) WINDOW * newscr;

extern __attribute__((dllimport)) int LINES;
extern __attribute__((dllimport)) int COLS;
extern __attribute__((dllimport)) int TABSIZE;




extern __attribute__((dllimport)) int ESCDELAY;

extern __attribute__((dllimport)) char ttytype[];




extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) keybound (int, int);
extern __attribute__((dllimport)) const char * __attribute__((__cdecl__)) curses_version (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) assume_default_colors (int, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) define_key (char *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) keyok (int, bool);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) resizeterm (int, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) use_default_colors (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) use_extended_names (bool);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wresize (WINDOW *, int, int);
# 389 "../include/curses.h"
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) addch (const chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) addchnstr (const chtype *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) addchstr (const chtype *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) addnstr (const char *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) addstr (const char *);







extern __attribute__((dllimport)) int __attribute__((__cdecl__)) attroff (attr_t);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) attron (attr_t);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) attrset (attr_t);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) attr_get (attr_t *, short *, void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) attr_off (attr_t, void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) attr_on (attr_t, void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) attr_set (attr_t, short, void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) baudrate (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) beep (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) bkgd (chtype);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) bkgdset (chtype);




extern __attribute__((dllimport)) int __attribute__((__cdecl__)) border (chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) box (WINDOW *, chtype, chtype);



extern __attribute__((dllimport)) bool __attribute__((__cdecl__)) can_change_color (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) cbreak (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) chgat (int, attr_t, short, const void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) clear (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) clearok (WINDOW *,bool);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) clrtobot (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) clrtoeol (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) color_content (short,short*,short*,short*);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) color_set (short,void*);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) COLOR_PAIR (int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) copywin (const WINDOW*,WINDOW*,int,int,int,int,int,int,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) curs_set (int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) def_prog_mode (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) def_shell_mode (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) delay_output (int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) delch (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) delscreen (SCREEN *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) delwin (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) deleteln (void);
extern __attribute__((dllimport)) WINDOW * __attribute__((__cdecl__)) derwin (WINDOW *,int,int,int,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) doupdate (void);
extern __attribute__((dllimport)) WINDOW * __attribute__((__cdecl__)) dupwin (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) echo (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) echochar (const chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) erase (void);




extern __attribute__((dllimport)) int __attribute__((__cdecl__)) endwin (void);
extern __attribute__((dllimport)) char __attribute__((__cdecl__)) erasechar (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) filter (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) flash (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) flushinp (void);
extern __attribute__((dllimport)) chtype __attribute__((__cdecl__)) getbkgd (WINDOW *);




extern __attribute__((dllimport)) int __attribute__((__cdecl__)) getch (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) getnstr (char *, int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) getstr (char *);



extern __attribute__((dllimport)) WINDOW * __attribute__((__cdecl__)) getwin (FILE *);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) halfdelay (int);
extern __attribute__((dllimport)) bool __attribute__((__cdecl__)) has_colors (void);
extern __attribute__((dllimport)) bool __attribute__((__cdecl__)) has_ic (void);
extern __attribute__((dllimport)) bool __attribute__((__cdecl__)) has_il (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) hline (chtype, int);



extern __attribute__((dllimport)) void __attribute__((__cdecl__)) idcok (WINDOW *, bool);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) idlok (WINDOW *, bool);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) immedok (WINDOW *, bool);
extern __attribute__((dllimport)) chtype __attribute__((__cdecl__)) inch (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) inchnstr (chtype *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) inchstr (chtype *);
extern __attribute__((dllimport)) WINDOW * __attribute__((__cdecl__)) initscr (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) init_color (short,short,short,short);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) init_pair (short,short,short);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) innstr (char *, int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) insch (chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) insdelln (int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) insertln (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) insnstr (const char *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) insstr (const char *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) instr (char *);





extern __attribute__((dllimport)) int __attribute__((__cdecl__)) intrflush (WINDOW *,bool);






extern __attribute__((dllimport)) bool __attribute__((__cdecl__)) isendwin (void);
extern __attribute__((dllimport)) bool __attribute__((__cdecl__)) is_linetouched (WINDOW *,int);
extern __attribute__((dllimport)) bool __attribute__((__cdecl__)) is_wintouched (WINDOW *);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) keyname (int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) keypad (WINDOW *,bool);
extern __attribute__((dllimport)) char __attribute__((__cdecl__)) killchar (void);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) leaveok (WINDOW *,bool);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) longname (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) meta (WINDOW *,bool);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) move (int, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvaddch (int, int, const chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvaddchnstr (int, int, const chtype *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvaddchstr (int, int, const chtype *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvaddnstr (int, int, const char *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvaddstr (int, int, const char *);







extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvchgat (int, int, int, attr_t, short, const void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvcur (int,int,int,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvdelch (int, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvderwin (WINDOW *, int, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvgetch (int, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvgetnstr (int, int, char *, int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvgetstr (int, int, char *);






extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvhline (int, int, chtype, int);



extern __attribute__((dllimport)) chtype __attribute__((__cdecl__)) mvinch (int, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvinchnstr (int, int, chtype *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvinchstr (int, int, chtype *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvinnstr (int, int, char *, int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvinsch (int, int, chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvinsnstr (int, int, const char *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvinsstr (int, int, const char *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvinstr (int, int, char *);
# 583 "../include/curses.h"
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvprintw (int,int, char *,...)
                __attribute__((format(printf,3,4)));
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvscanw (int,int, char *,...)
                __attribute__((format(scanf,3,4)));
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvvline (int, int, chtype, int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwaddch (WINDOW *, int, int, const chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwaddchnstr (WINDOW *, int, int, const chtype *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwaddchstr (WINDOW *, int, int, const chtype *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwaddnstr (WINDOW *, int, int, const char *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwaddstr (WINDOW *, int, int, const char *);







extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwchgat (WINDOW *, int, int, int, attr_t, short, const void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwdelch (WINDOW *, int, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwgetch (WINDOW *, int, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwgetnstr (WINDOW *, int, int, char *, int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwgetstr (WINDOW *, int, int, char *);






extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwhline (WINDOW *, int, int, chtype, int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwin (WINDOW *,int,int);
extern __attribute__((dllimport)) chtype __attribute__((__cdecl__)) mvwinch (WINDOW *, int, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwinchnstr (WINDOW *, int, int, chtype *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwinchstr (WINDOW *, int, int, chtype *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwinnstr (WINDOW *, int, int, char *, int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwinsch (WINDOW *, int, int, chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwinsnstr (WINDOW *, int, int, const char *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwinsstr (WINDOW *, int, int, const char *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwinstr (WINDOW *, int, int, char *);
# 642 "../include/curses.h"
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwprintw (WINDOW*,int,int, char *,...)
                __attribute__((format(printf,4,5)));
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwscanw (WINDOW *,int,int, char *,...)
                __attribute__((format(scanf,4,5)));
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mvwvline (WINDOW *,int, int, chtype, int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) napms (int);
extern __attribute__((dllimport)) WINDOW * __attribute__((__cdecl__)) newpad (int,int);
extern __attribute__((dllimport)) SCREEN * __attribute__((__cdecl__)) newterm ( char *,FILE *,FILE *);
extern __attribute__((dllimport)) WINDOW * __attribute__((__cdecl__)) newwin (int,int,int,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) nl (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) nocbreak (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) nodelay (WINDOW *,bool);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) noecho (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) nonl (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) noqiflush (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) noraw (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) notimeout (WINDOW *,bool);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) overlay (const WINDOW*,WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) overwrite (const WINDOW*,WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) pair_content (short,short*,short*);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) PAIR_NUMBER (int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) pechochar (WINDOW *, const chtype);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) pnoutrefresh (WINDOW*,int,int,int,int,int,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) prefresh (WINDOW *,int,int,int,int,int,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) printw ( char *,...)
                __attribute__((format(printf,1,2)));
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) putp (const char *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) putwin (WINDOW *, FILE *);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) qiflush (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) raw (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) redrawwin (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) refresh (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) resetty (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) reset_prog_mode (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) reset_shell_mode (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) ripoffline (int, int (*init)(WINDOW *, int));
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) savetty (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) scanw ( char *,...)
                __attribute__((format(scanf,1,2)));
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) scr_dump (const char *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) scr_init (const char *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) scrl (int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) scroll (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) scrollok (WINDOW *,bool);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) scr_restore (const char *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) scr_set (const char *);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) setscrreg (int,int);
extern __attribute__((dllimport)) SCREEN * __attribute__((__cdecl__)) set_term (SCREEN *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_attroff (const chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_attr_off (const attr_t, void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_attron (const chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_attr_on (attr_t,void*);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_attrset (const chtype);
extern __attribute__((dllimport)) attr_t __attribute__((__cdecl__)) slk_attr (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_attr_set (const attr_t,short,void*);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_clear (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_color (short);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_init (int);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) slk_label (int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_noutrefresh (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_refresh (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_restore (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_set (int,const char *,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) slk_touch (void);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) standout (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) standend (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) start_color (void);
extern __attribute__((dllimport)) WINDOW * __attribute__((__cdecl__)) subpad (WINDOW *, int, int, int, int);
extern __attribute__((dllimport)) WINDOW * __attribute__((__cdecl__)) subwin (WINDOW *,int,int,int,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) syncok (WINDOW *, bool);
extern __attribute__((dllimport)) chtype __attribute__((__cdecl__)) termattrs (void);
extern __attribute__((dllimport)) attr_t __attribute__((__cdecl__)) term_attrs (void);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) termname (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) tigetflag ( char *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) tigetnum ( char *);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) tigetstr ( char *);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) timeout (int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) touchline (WINDOW *, int, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) touchwin (WINDOW *);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) tparm ( char *, ...);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) typeahead (int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) ungetch (int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) untouchwin (WINDOW *);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) use_env (bool);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) vidattr (chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) vid_attr (attr_t, short, void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) vidputs (chtype, int (*)(int));



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) vline (chtype, int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) vwprintw (WINDOW *, char *,va_list);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) vw_printw (WINDOW *, char *,va_list);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) vwscanw (WINDOW *, char *,va_list);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) vw_scanw (WINDOW *, char *,va_list);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) waddch (WINDOW *, const chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) waddchnstr (WINDOW *,const chtype *const,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) waddchstr (WINDOW *,const chtype *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) waddnstr (WINDOW *,const char *const,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) waddstr (WINDOW *,const char *);







extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wattron (WINDOW *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wattroff (WINDOW *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wattrset (WINDOW *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wattr_get (WINDOW *, attr_t *, short *, void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wattr_on (WINDOW *, attr_t, void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wattr_off (WINDOW *, attr_t, void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wattr_set (WINDOW *, attr_t, short, void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wbkgd (WINDOW *,const chtype);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) wbkgdset (WINDOW *,chtype);




extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wborder (WINDOW *,chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wchgat (WINDOW *, int, attr_t, short, const void *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wclear (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wclrtobot (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wclrtoeol (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wcolor_set (WINDOW*,short,void*);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) wcursyncup (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wdelch (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wdeleteln (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wechochar (WINDOW *, const chtype);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) werase (WINDOW *);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wgetch (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wgetnstr (WINDOW *,char *,int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wgetstr (WINDOW *, char *);




extern __attribute__((dllimport)) int __attribute__((__cdecl__)) whline (WINDOW *, chtype, int);



extern __attribute__((dllimport)) chtype __attribute__((__cdecl__)) winch (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) winchnstr (WINDOW *, chtype *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) winchstr (WINDOW *, chtype *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) winnstr (WINDOW *, char *, int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) winsch (WINDOW *, chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) winsdelln (WINDOW *,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) winsertln (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) winsnstr (WINDOW *, const char *,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) winsstr (WINDOW *, const char *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) winstr (WINDOW *, char *);
# 836 "../include/curses.h"
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wmove (WINDOW *,int,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wnoutrefresh (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wprintw (WINDOW *, char *,...)
                __attribute__((format(printf,2,3)));
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wredrawln (WINDOW *,int,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wrefresh (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wscanw (WINDOW *, char *,...)
                __attribute__((format(scanf,2,3)));
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wscrl (WINDOW *,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wsetscrreg (WINDOW *,int,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wstandout (WINDOW *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wstandend (WINDOW *);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) wsyncdown (WINDOW *);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) wsyncup (WINDOW *);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) wtimeout (WINDOW *,int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wtouchln (WINDOW *,int,int,int);



extern __attribute__((dllimport)) int __attribute__((__cdecl__)) wvline (WINDOW *,chtype,int);




extern __attribute__((dllimport)) bool __attribute__((__cdecl__)) mouse_trafo (int*, int*, bool);
# 1296 "../include/curses.h"
typedef unsigned long mmask_t;

typedef struct
{
    short id;
    int x, y, z;
    mmask_t bstate;
}
MEVENT;

extern __attribute__((dllimport)) int __attribute__((__cdecl__)) getmouse (MEVENT *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) ungetmouse (MEVENT *);
extern __attribute__((dllimport)) mmask_t __attribute__((__cdecl__)) mousemask (mmask_t, mmask_t *);
extern __attribute__((dllimport)) bool __attribute__((__cdecl__)) wenclose (const WINDOW *, int, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mouseinterval (int);
extern __attribute__((dllimport)) bool __attribute__((__cdecl__)) wmouse_trafo (const WINDOW* win,int* y, int* x, bool to_screen);





extern __attribute__((dllimport)) int __attribute__((__cdecl__)) mcprint (char *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) has_key (int);



extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _tracef (const char *, ...) __attribute__((format(printf,1,2)));
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _tracedump (const char *, WINDOW *);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _traceattr (attr_t);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _traceattr2 (int, chtype);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _nc_tracebits (void);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _tracechar (const unsigned char);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _tracechtype (chtype);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _tracechtype2 (int, chtype);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _tracemouse (const MEVENT *);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) trace (const unsigned int);
# 237 "../ncurses/curses.priv.h" 2





typedef struct
{
        char *text;
        char *form_text;
        int x;
        char dirty;
        char visible;
} slk_ent;

typedef struct {
        char dirty;
        char hidden;
        struct _win_st *win;
        slk_ent *ent;
        char* buffer;
        short maxlab;
        short labcnt;
        short maxlen;
        chtype attr;
} SLK;

struct screen {
        int _ifd;
        FILE *_ofp;
        char *_setbuf;
        int _buffered;
        int _checkfd;
        struct term *_term;
        short _lines;
        short _columns;
        short _lines_avail;
        short _topstolen;

        WINDOW *_curscr;
        WINDOW *_newscr;
        WINDOW *_stdscr;

        struct tries *_keytry;
        struct tries *_key_ok;
        int _tried;

        unsigned int _fifo[135 +2];
        short _fifohead,
                        _fifotail,
                        _fifopeek,
                        _fifohold;

        int _endwin;
        unsigned long _current_attr;
        int _coloron;
        int _cursor;
        int _cursrow;
        int _curscol;
        int _nl;
        int _raw;
        int _cbreak;

        int _echo;
        int _use_meta;
        SLK *_slk;
        int slk_format;


        int _no_padding;

        int _char_padding;
        int _cr_cost;
        int _cup_cost;
        int _home_cost;
        int _ll_cost;




        int _cub1_cost;
        int _cuf1_cost;
        int _cud1_cost;
        int _cuu1_cost;
        int _cub_cost;
        int _cuf_cost;
        int _cud_cost;
        int _cuu_cost;
        int _hpa_cost;
        int _vpa_cost;

        int _ed_cost;
        int _el_cost;
        int _el1_cost;
        int _dch1_cost;
        int _ich1_cost;
        int _dch_cost;
        int _ich_cost;
        int _ech_cost;
        int _rep_cost;
        int _hpa_ch_cost;
        int _cup_ch_cost;
        int _cuf_ch_cost;
        int _inline_cost;
        int _smir_cost;
        int _rmir_cost;
        int _ip_cost;

        char * _address_cursor;

        int _scrolling;


        color_t *_color_table;
        int _color_count;
        unsigned short *_color_pairs;
        int _pair_count;

        bool _default_color;
        bool _has_sgr_39_49;
        int _default_fg;
        int _default_bg;

        chtype _xmc_suppress;
        chtype _xmc_triggers;
        chtype _acs_map[128];


        bool _use_rmso;
        bool _use_rmul;
# 374 "../ncurses/curses.priv.h"
        bool _nc_sp_idlok;
        bool _nc_sp_idcok;






        int _maxclick;
        bool (*_mouse_event) (SCREEN *);
        bool (*_mouse_inline)(SCREEN *);
        bool (*_mouse_parse) (int);
        void (*_mouse_resume)(SCREEN *);
        void (*_mouse_wrap) (SCREEN *);
        int _mouse_fd;





        int (*_resize)(int,int);






        struct panelhook _panelHook;




        struct _win_list *_nc_sp_windows;


        bool _sig_winch;
        SCREEN *_next_screen;


        unsigned long *oldhash, *newhash;

        bool _cleanup;
        int (*_outch)(int);
};

extern __attribute__((dllimport)) SCREEN * _nc_screen_chain;





        struct _win_list {
        struct _win_list *next;
        WINDOW *win;
};

typedef struct {
        int line;
        int (*hook)(struct _win_st *, int);
        struct _win_st *w;
} ripoff_t;
# 482 "../ncurses/curses.priv.h"
# 1 "/usr/include/fcntl.h" 1 3
# 14 "/usr/include/fcntl.h" 3
# 1 "/usr/include/sys/fcntl.h" 1 3






# 1 "/usr/include/_ansi.h" 1 3
# 8 "/usr/include/sys/fcntl.h" 2 3
# 139 "/usr/include/sys/fcntl.h" 3
struct flock {
        short l_type;
        short l_whence;
        long l_start;
        long l_len;
        short l_pid;
        short l_xxx;
};



struct eflock {
        short l_type;
        short l_whence;
        long l_start;
        long l_len;
        short l_pid;
        short l_xxx;
        long l_rpid;
        long l_rsys;
};



# 1 "/usr/include/sys/types.h" 1 3
# 164 "/usr/include/sys/fcntl.h" 2 3
# 1 "/usr/include/sys/stat.h" 1 3







# 1 "/usr/include/_ansi.h" 1 3
# 9 "/usr/include/sys/stat.h" 2 3
# 1 "/usr/include/time.h" 1 3
# 10 "/usr/include/sys/stat.h" 2 3
# 1 "/usr/include/sys/types.h" 1 3
# 11 "/usr/include/sys/stat.h" 2 3
# 25 "/usr/include/sys/stat.h" 3
struct stat
{
  dev_t st_dev;
  ino_t st_ino;
  mode_t st_mode;
  nlink_t st_nlink;
  uid_t st_uid;
  gid_t st_gid;
  dev_t st_rdev;
  off_t st_size;






  time_t st_atime;
  long st_spare1;
  time_t st_mtime;
  long st_spare2;
  time_t st_ctime;
  long st_spare3;
  long st_blksize;
  long st_blocks;
  long st_spare4[2];

};
# 118 "/usr/include/sys/stat.h" 3
int __attribute__((__cdecl__)) chmod ( const char *__path, mode_t __mode );
int __attribute__((__cdecl__)) fchmod (int __fd, mode_t __mode);
int __attribute__((__cdecl__)) fstat ( int __fd, struct stat *__sbuf );
int __attribute__((__cdecl__)) mkdir ( const char *_path, mode_t __mode );
int __attribute__((__cdecl__)) mkfifo ( const char *__path, mode_t __mode );
int __attribute__((__cdecl__)) stat ( const char *__path, struct stat *__sbuf );
mode_t __attribute__((__cdecl__)) umask ( mode_t __mask );


int __attribute__((__cdecl__)) lstat ( const char *__path, struct stat *__buf );
int __attribute__((__cdecl__)) mknod ( const char *__path, mode_t __mode, dev_t __dev );




int __attribute__((__cdecl__)) _fstat ( int __fd, struct stat *__sbuf );
int __attribute__((__cdecl__)) _stat ( const char *__path, struct stat *__sbuf );
# 165 "/usr/include/sys/fcntl.h" 2 3

extern int open (const char *, int, ...);
extern int creat (const char *, mode_t);
extern int fcntl (int, int, ...);



extern int _open (const char *, int, ...);
extern int _fcntl (int, int, ...);
# 15 "/usr/include/fcntl.h" 2 3
# 483 "../ncurses/curses.priv.h" 2
# 527 "../ncurses/curses.priv.h"
# 1 "../include/nc_alloc.h" 1
# 73 "../include/nc_alloc.h"
extern void *_nc_doalloc(void *, size_t);
# 528 "../ncurses/curses.priv.h" 2
# 569 "../ncurses/curses.priv.h"
extern __attribute__((dllimport)) unsigned _nc_tracing;
extern __attribute__((dllimport)) const char * __attribute__((__cdecl__)) _nc_visbuf2 (int, const char *);
# 661 "../ncurses/curses.priv.h"
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_expanded (void);
# 680 "../ncurses/curses.priv.h"
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_init_acs (void);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_msec_cost (const char *const, int);




extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_mvcur_init (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_mvcur_resume (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_mvcur_wrap (void);

extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_scrolln (int, int, int, int);

extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_screen_init (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_screen_resume (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_screen_wrap (void);


extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_has_mouse (void);




typedef struct {
    char *s_head;
    char *s_tail;
    size_t s_size;
} string_desc;


extern __attribute__((dllimport)) string_desc * __attribute__((__cdecl__)) _nc_str_init (string_desc * dst, char *src, size_t len);
extern __attribute__((dllimport)) string_desc * __attribute__((__cdecl__)) _nc_str_null (string_desc * dst, size_t len);
extern __attribute__((dllimport)) string_desc * __attribute__((__cdecl__)) _nc_str_copy (string_desc * dst, string_desc * src);
extern __attribute__((dllimport)) bool __attribute__((__cdecl__)) _nc_safe_strcat (string_desc * dst, const char *src);
extern __attribute__((dllimport)) bool __attribute__((__cdecl__)) _nc_safe_strcpy (string_desc * dst, const char *src);

extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_mvcur_init (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_mvcur_resume (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_mvcur_wrap (void);

extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_scrolln (int, int, int, int);

extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_screen_init (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_screen_resume (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_screen_wrap (void);







extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _nc_printf_string (const char *fmt, va_list ap);


extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_add_to_try (struct tries **tree, const char *str, unsigned short code);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _nc_expand_try (struct tries *tree, unsigned short code, int *count, size_t len);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_remove_key (struct tries **tree, unsigned short code);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_remove_string (struct tries **tree, char *string);


extern __attribute__((dllimport)) WINDOW * __attribute__((__cdecl__)) _nc_makenew (int, int, int, int, int);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _nc_home_terminfo (void);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _nc_trace_buf (int, size_t);
extern __attribute__((dllimport)) chtype __attribute__((__cdecl__)) _nc_background (WINDOW *);
extern __attribute__((dllimport)) chtype __attribute__((__cdecl__)) _nc_render (WINDOW *, chtype);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_access (const char *, int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_baudrate (int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_getenv_num (const char *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_keypad (bool);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_ospeed (int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_outch (int);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_setupscreen (short, short const, FILE *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_timed_wait (int, int, int *);
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_waddch_nosync (WINDOW *, const chtype);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_do_color (int, int, bool, int (*)(int));
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_freeall (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_freewin (WINDOW *win);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_hash_map (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_init_keytry (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_keep_tic_dir (const char *);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_make_oldhash (int i);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_flush (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_outstr (const char *str);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_scroll_oldhash (int n, int top, int bot);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_scroll_optimize (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_scroll_window (WINDOW *, int const, short const, short const, chtype);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_set_buffer (FILE *, bool);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_signal_handler (bool);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_synchook (WINDOW *win);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_trace_tries (struct tries *tree);


extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_update_screensize (void);







extern __attribute__((dllimport)) int * _nc_oldnums;
# 801 "../ncurses/curses.priv.h"
extern __attribute__((dllimport)) SCREEN * SP;
# 815 "../ncurses/curses.priv.h"
extern __attribute__((dllimport)) int _nc_slk_format;
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_slk_initialize (WINDOW *, int);
# 834 "../ncurses/curses.priv.h"
extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_ripoffline (int line, int (*init)(WINDOW *,int));
# 42 "tinfo/comp_hash.c" 2

# 1 "../include/tic.h" 1
# 47 "../include/tic.h"
# 1 "../include/curses.h" 1
# 48 "../include/tic.h" 2
# 119 "../include/tic.h"
extern __attribute__((dllimport)) unsigned _nc_tracing;
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_tracef (char *, ...) __attribute__((format(printf,1,2)));
extern __attribute__((dllimport)) const char * __attribute__((__cdecl__)) _nc_visbuf (const char *);
# 145 "../include/tic.h"
struct token
{
        char *tk_name;
        int tk_valnumber;
        char *tk_valstring;
};

extern __attribute__((dllimport)) struct token _nc_curr_token;




struct kn {
        const char *name;
        int code;
};

extern __attribute__((dllimport)) const struct kn _nc_key_names[];





struct tinfo_fkeys {
        unsigned offset;
        chtype code;
        };
# 180 "../include/tic.h"
extern __attribute__((dllimport)) struct tinfo_fkeys _nc_tinfo_fkeys[];
# 190 "../include/tic.h"
struct name_table_entry
{
        const char *nte_name;
        int nte_type;
        short nte_index;
        short nte_link;
};

struct alias
{
        const char *from;
        const char *to;
        const char *source;
};

extern __attribute__((dllimport)) const struct name_table_entry * const _nc_info_hash_table[];
extern __attribute__((dllimport)) const struct name_table_entry * const _nc_cap_hash_table[];

extern __attribute__((dllimport)) const struct alias _nc_capalias_table[];
extern __attribute__((dllimport)) const struct alias _nc_infoalias_table[];

extern __attribute__((dllimport)) const struct name_table_entry * __attribute__((__cdecl__)) _nc_get_table (bool);
extern __attribute__((dllimport)) const struct name_table_entry * const * __attribute__((__cdecl__)) _nc_get_hash_table (bool);
# 241 "../include/tic.h"
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _nc_basename (char *);


extern __attribute__((dllimport)) struct name_table_entry const * __attribute__((__cdecl__)) _nc_find_entry
        (const char *, const struct name_table_entry *const *);
extern __attribute__((dllimport)) struct name_table_entry const * __attribute__((__cdecl__)) _nc_find_type_entry
        (const char *, int, const struct name_table_entry *);


extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_get_token (void);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_push_token (int);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_reset_input (FILE *, char *);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_panic_mode (char);
extern __attribute__((dllimport)) int _nc_curr_line;
extern __attribute__((dllimport)) int _nc_curr_col;
extern __attribute__((dllimport)) long _nc_curr_file_pos;
extern __attribute__((dllimport)) long _nc_comment_start;
extern __attribute__((dllimport)) long _nc_comment_end;
extern __attribute__((dllimport)) int _nc_syntax;
extern __attribute__((dllimport)) long _nc_start_line;




extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_set_source (const char *const name);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_get_type (char *name);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_set_type (const char *const name);
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_syserr_abort (const char *const,...) __attribute__((format(printf,1,2))) __attribute__((noreturn));
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_err_abort (const char *const,...) __attribute__((format(printf,1,2))) __attribute__((noreturn));
extern __attribute__((dllimport)) void __attribute__((__cdecl__)) _nc_warning (const char *const,...) __attribute__((format(printf,1,2)));
extern __attribute__((dllimport)) bool _nc_suppress_warnings;


extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _nc_tic_expand (const char *, bool, int);


extern __attribute__((dllimport)) char __attribute__((__cdecl__)) _nc_trans_string (char *, char *);


extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _nc_captoinfo (const char *, const char *, int const);
extern __attribute__((dllimport)) char * __attribute__((__cdecl__)) _nc_infotocap (const char *, const char *, int const);


extern __attribute__((dllimport)) int _nc_nulls_sent;


extern const char * _nc_progname;


extern __attribute__((dllimport)) const char * __attribute__((__cdecl__)) _nc_tic_dir (const char *);


extern __attribute__((dllimport)) int __attribute__((__cdecl__)) _nc_tic_written (void);
# 44 "tinfo/comp_hash.c" 2
# 1 "../include/hashsize.h" 1
# 45 "tinfo/comp_hash.c" 2


# 1 "/usr/include/ctype.h" 1 3






# 1 "/usr/include/_ansi.h" 1 3
# 8 "/usr/include/ctype.h" 2 3

int __attribute__((__cdecl__)) isalnum (int __c);
int __attribute__((__cdecl__)) isalpha (int __c);
int __attribute__((__cdecl__)) iscntrl (int __c);
int __attribute__((__cdecl__)) isdigit (int __c);
int __attribute__((__cdecl__)) isgraph (int __c);
int __attribute__((__cdecl__)) islower (int __c);
int __attribute__((__cdecl__)) isprint (int __c);
int __attribute__((__cdecl__)) ispunct (int __c);
int __attribute__((__cdecl__)) isspace (int __c);
int __attribute__((__cdecl__)) isupper (int __c);
int __attribute__((__cdecl__)) isxdigit (int __c);
int __attribute__((__cdecl__)) tolower (int __c);
int __attribute__((__cdecl__)) toupper (int __c);


int __attribute__((__cdecl__)) isascii (int __c);
int __attribute__((__cdecl__)) toascii (int __c);
int __attribute__((__cdecl__)) _tolower (int __c);
int __attribute__((__cdecl__)) _toupper (int __c);
# 39 "/usr/include/ctype.h" 3
extern __attribute__((dllimport)) const char _ctype_[];
# 48 "tinfo/comp_hash.c" 2






static int hash_function(const char *);
# 69 "tinfo/comp_hash.c"
# 1 "../ncurses/tinfo/doalloc.c" 1
# 41 "../ncurses/tinfo/doalloc.c"
# 1 "../ncurses/curses.priv.h" 1
# 42 "../ncurses/tinfo/doalloc.c" 2



__attribute__((dllimport)) void * __attribute__((__cdecl__)) _nc_doalloc (void *oldp, size_t amount)
{
        void *newp;

        if (oldp != 0) {
                if ((newp = realloc(oldp, amount)) == 0) {
                        free(oldp);
                        (*__errno()) = 12;
                }
        } else {
                newp = (char *)malloc((amount)*sizeof(char));
        }
        return newp;
}
# 70 "tinfo/comp_hash.c" 2

static void _nc_make_hash_table(struct name_table_entry *table,
                     struct name_table_entry **hash_table)
{
int i;
int hashvalue;
int collisions = 0;

        for (i = 0; i < 497; i++) {
            hashvalue = hash_function(table[i].nte_name);

            if (hash_table[hashvalue] != (struct name_table_entry *) 0)
                collisions++;

            if (hash_table[hashvalue] != 0)
                table[i].nte_link = (short)(hash_table[hashvalue] - table);
            hash_table[hashvalue] = &table[i];
        }

                                                                                                  ;
}
# 104 "tinfo/comp_hash.c"
static
int
hash_function(const char *string)
{
long sum = 0;

                                        ;
        while (*string) {
            sum += (long)(*string + (*(string + 1) << 8));
            string++;
        }

                                     ;
        return (int)(sum % ( 497 * 2));
}
# 190 "tinfo/comp_hash.c"
static char **parse_columns(char *buffer)
{
        static char **list;

        int col = 0;

        if (list == 0 && (list = (char * *)calloc((1024),sizeof(char *))) == 0)
                return(0);

        if (*buffer != '#') {
                while (*buffer != '\0') {
                        char *s;
                        for (s = buffer; (*s != '\0') && !((_ctype_+1)[(unsigned)(*s)]&010); s++)
                                         ;
                        if (s != buffer) {
                                char mark = *s;
                                *s = '\0';
                                if ((s - buffer) > 1
                                 && (*buffer == '"')
                                 && (s[-1] == '"')) {
                                        buffer++;
                                        s[-1] = '\0';
                                }
                                list[col] = buffer;
                                col++;
                                if (mark == '\0')
                                        break;
                                while (*++s && ((_ctype_+1)[(unsigned)(*s)]&010))
                                                 ;
                                buffer = s;
                        } else
                                break;
                }
        }
        return col ? list : 0;
}

int main(int argc, char **argv)
{
        struct name_table_entry *name_table = (struct name_table_entry *)calloc((497),sizeof(struct name_table_entry));
        struct name_table_entry **hash_table = (struct name_table_entry * *)calloc((( 497 * 2)),sizeof(struct name_table_entry *));
        const char *root_name = "";
        int column = 0;
        int n;
        char buffer[1024];

        static const char * typenames[] = { "BOOLEAN", "NUMBER", "STRING" };

        short BoolCount = 0;
        short NumCount = 0;
        short StrCount = 0;




        if (argc <= 2
         || (column = atoi(argv[1])) <= 0
         || (column >= 1024)
         || *(root_name = argv[2]) == 0) {
                fprintf((_impure_ptr->_stderr), "usage: make_hash column root_name\n");
                exit(1);
        }




        for (n = 0; (n < 497) && fgets(buffer, 1024, (_impure_ptr->_stdin)); ) {
                char **list, *nlp = strchr(buffer, '\n');
                if (nlp)
                    *nlp = '\0';
                list = parse_columns(buffer);
                if (list == 0)
                    continue;
                name_table[n].nte_link = -1;
                name_table[n].nte_name = strdup(list[column]);
                if (!strcmp(list[2], "bool")) {
                        name_table[n].nte_type = 0;
                        name_table[n].nte_index = BoolCount++;
                } else if (!strcmp(list[2], "num")) {
                        name_table[n].nte_type = 1;
                        name_table[n].nte_index = NumCount++;
                } else if (!strcmp(list[2], "str")) {
                        name_table[n].nte_type = 2;
                        name_table[n].nte_index = StrCount++;
                } else {
                        fprintf((_impure_ptr->_stderr), "Unknown type: %s\n", list[2]);
                        exit(1);
                }
                n++;
        }
        _nc_make_hash_table(name_table, hash_table);




        printf("static struct name_table_entry const _nc_%s_table[] =\n",
                root_name);
        printf("{\n");
        for (n = 0; n < 497; n++) {
                sprintf(buffer, "\"%s\"",
                        name_table[n].nte_name);
                printf("\t{ %15s,\t%10s,\t%3d, %3d }%c\n",
                        buffer,
                        typenames[name_table[n].nte_type],
                        name_table[n].nte_index,
                        name_table[n].nte_link,
                        n < 497 - 1 ? ',' : ' ');
        }
        printf("};\n\n");

        printf("const struct name_table_entry * const _nc_%s_hash_table[%d] =\n",
                root_name,
                ( 497 * 2)+1);
        printf("{\n");
        for (n = 0; n < ( 497 * 2); n++) {
                if (hash_table[n] != 0) {
                        sprintf(buffer, "_nc_%s_table + %3ld",
                                root_name,
                                (long) (hash_table[n] - name_table));
                } else {
                        strcpy(buffer, "0");
                }
                printf("\t%s,\n", buffer);
        }
        printf("\t_nc_%s_table\t/* base-of-table */\n", root_name);
        printf("};\n\n");

        printf("#if (BOOLCOUNT!=%d)||(NUMCOUNT!=%d)||(STRCOUNT!=%d)\n",
                BoolCount, NumCount, StrCount);
        printf("#error\t--> term.h and comp_captab.c disagree about the <--\n");
        printf("#error\t--> numbers of booleans, numbers and/or strings <--\n");
        printf("#endif\n\n");

        return 0;
}



More information about the Gcc-bugs mailing list