Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 130957 Details for
Bug 192558
[4.1/ICE] sys-libs/ncurses-5.6-r1 will not compile
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Preprocessed source
ccQrdWE1.out (text/plain), 115.36 KB, created by
Curt Harms
on 2007-09-14 22:28:47 UTC
(
hide
)
Description:
Preprocessed source
Filename:
MIME Type:
Creator:
Curt Harms
Created:
2007-09-14 22:28:47 UTC
Size:
115.36 KB
patch
obsolete
>// /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.1.2/cc1plus -quiet -I../c++ -I../include -I/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++ -I/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/../include -I. -I../include -D_GNU_SOURCE -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix -Asystem=posix -DHAVE_CONFIG_H -D_GNU_SOURCE -DNDEBUG /var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesf.cc -msecure-plt -quiet -dumpbase cursesf.cc -mcpu=G3 -mtune=G3 -auxbase-strip ../obj_s/cursesf.o -O2 -fPIC -o - -frandom-seed=0 ># 1 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesf.cc" ># 1 "<built-in>" ># 1 "<command line>" ># 1 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesf.cc" ># 34 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesf.cc" ># 1 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/internal.h" 1 ># 39 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/internal.h" ># 1 "../include/ncurses_cfg.h" 1 ># 170 "../include/ncurses_cfg.h" ># 1 "../include/ncurses_def.h" 1 ># 171 "../include/ncurses_cfg.h" 2 ># 40 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/internal.h" 2 ># 50 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/internal.h" ># 1 "/usr/include/string.h" 1 3 4 ># 26 "/usr/include/string.h" 3 4 ># 1 "/usr/include/features.h" 1 3 4 ># 323 "/usr/include/features.h" 3 4 ># 1 "/usr/include/sys/cdefs.h" 1 3 4 ># 313 "/usr/include/sys/cdefs.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 314 "/usr/include/sys/cdefs.h" 2 3 4 ># 324 "/usr/include/features.h" 2 3 4 ># 346 "/usr/include/features.h" 3 4 ># 1 "/usr/include/gnu/stubs.h" 1 3 4 > > > ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 5 "/usr/include/gnu/stubs.h" 2 3 4 > > ># 1 "/usr/include/gnu/stubs-32.h" 1 3 4 ># 8 "/usr/include/gnu/stubs.h" 2 3 4 ># 347 "/usr/include/features.h" 2 3 4 ># 27 "/usr/include/string.h" 2 3 4 > >extern "C" { > > > > ># 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4 ># 214 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 3 4 >typedef unsigned int size_t; ># 34 "/usr/include/string.h" 2 3 4 > > > > >extern void *memcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memmove (void *__dest, __const void *__src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, > int __c, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern void *memset (void *__s, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > >extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memchr (__const void *__s, int __c, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern void *rawmemchr (__const void *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > >extern void *memrchr (__const void *__s, int __c, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strcat (char *__restrict __dest, __const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncat (char *__restrict __dest, __const char *__restrict __src, > size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcmp (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcoll (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern size_t strxfrm (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (2))); > > > > > > ># 1 "/usr/include/xlocale.h" 1 3 4 ># 28 "/usr/include/xlocale.h" 3 4 >typedef struct __locale_struct >{ > > struct locale_data *__locales[13]; > > > const unsigned short int *__ctype_b; > const int *__ctype_tolower; > const int *__ctype_toupper; > > > const char *__names[13]; >} *__locale_t; ># 119 "/usr/include/string.h" 2 3 4 > > >extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); > >extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n, > __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4))); > > > > >extern char *strdup (__const char *__s) > throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern char *strndup (__const char *__string, size_t __n) > throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); ># 165 "/usr/include/string.h" 3 4 > > >extern char *strchr (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > >extern char *strrchr (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strchrnul (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern size_t strcspn (__const char *__s, __const char *__reject) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern size_t strspn (__const char *__s, __const char *__accept) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strpbrk (__const char *__s, __const char *__accept) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strstr (__const char *__haystack, __const char *__needle) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *strtok (char *__restrict __s, __const char *__restrict __delim) > throw () __attribute__ ((__nonnull__ (2))); > > > > >extern char *__strtok_r (char *__restrict __s, > __const char *__restrict __delim, > char **__restrict __save_ptr) > throw () __attribute__ ((__nonnull__ (2, 3))); > >extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, > char **__restrict __save_ptr) > throw () __attribute__ ((__nonnull__ (2, 3))); > > > > >extern char *strcasestr (__const char *__haystack, __const char *__needle) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern void *memmem (__const void *__haystack, size_t __haystacklen, > __const void *__needle, size_t __needlelen) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))); > > > >extern void *__mempcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern void *mempcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern size_t strlen (__const char *__s) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern size_t strnlen (__const char *__string, size_t __maxlen) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strerror (int __errnum) throw (); > ># 281 "/usr/include/string.h" 3 4 >extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) > throw () __attribute__ ((__nonnull__ (2))); > > > > > >extern void __bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > > >extern void bcopy (__const void *__src, void *__dest, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern void bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > >extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *index (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > >extern char *rindex (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > >extern int ffs (int __i) throw () __attribute__ ((__const__)); > > > > >extern int ffsl (long int __l) throw () __attribute__ ((__const__)); > >__extension__ extern int ffsll (long long int __ll) > throw () __attribute__ ((__const__)); > > > > >extern int strcasecmp (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern int strcasecmp_l (__const char *__s1, __const char *__s2, > __locale_t __loc) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); > >extern int strncasecmp_l (__const char *__s1, __const char *__s2, > size_t __n, __locale_t __loc) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); > > > > > >extern char *strsep (char **__restrict __stringp, > __const char *__restrict __delim) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int strverscmp (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strsignal (int __sig) throw (); > > >extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *__stpncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern char *stpncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strfry (char *__string) throw () __attribute__ ((__nonnull__ (1))); > > >extern void *memfrob (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern char *basename (__const char *__filename) throw () __attribute__ ((__nonnull__ (1))); ># 426 "/usr/include/string.h" 3 4 >} ># 51 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/internal.h" 2 ># 35 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesf.cc" 2 ># 1 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesf.h" 1 ># 39 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesf.h" ># 1 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesp.h" 1 ># 39 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesp.h" ># 1 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" 1 ># 35 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" ># 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stdarg.h" 1 3 4 ># 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stdarg.h" 3 4 >typedef __builtin_va_list __gnuc_va_list; ># 105 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stdarg.h" 3 4 >typedef __gnuc_va_list va_list; ># 36 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" 2 ># 1 "/usr/include/stdio.h" 1 3 4 ># 30 "/usr/include/stdio.h" 3 4 >extern "C" { > > > ># 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4 ># 35 "/usr/include/stdio.h" 2 3 4 > ># 1 "/usr/include/bits/types.h" 1 3 4 ># 28 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 29 "/usr/include/bits/types.h" 2 3 4 > > ># 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4 ># 32 "/usr/include/bits/types.h" 2 3 4 > > >typedef unsigned char __u_char; >typedef unsigned short int __u_short; >typedef unsigned int __u_int; >typedef unsigned long int __u_long; > > >typedef signed char __int8_t; >typedef unsigned char __uint8_t; >typedef signed short int __int16_t; >typedef unsigned short int __uint16_t; >typedef signed int __int32_t; >typedef unsigned int __uint32_t; > > > > >__extension__ typedef signed long long int __int64_t; >__extension__ typedef unsigned long long int __uint64_t; > > > > > > > >__extension__ typedef long long int __quad_t; >__extension__ typedef unsigned long long int __u_quad_t; ># 134 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/typesizes.h" 1 3 4 ># 135 "/usr/include/bits/types.h" 2 3 4 > > >__extension__ typedef __u_quad_t __dev_t; >__extension__ typedef unsigned int __uid_t; >__extension__ typedef unsigned int __gid_t; >__extension__ typedef unsigned long int __ino_t; >__extension__ typedef __u_quad_t __ino64_t; >__extension__ typedef unsigned int __mode_t; >__extension__ typedef unsigned int __nlink_t; >__extension__ typedef long int __off_t; >__extension__ typedef __quad_t __off64_t; >__extension__ typedef int __pid_t; >__extension__ typedef struct { int __val[2]; } __fsid_t; >__extension__ typedef long int __clock_t; >__extension__ typedef unsigned long int __rlim_t; >__extension__ typedef __u_quad_t __rlim64_t; >__extension__ typedef unsigned int __id_t; >__extension__ typedef long int __time_t; >__extension__ typedef unsigned int __useconds_t; >__extension__ typedef long int __suseconds_t; > >__extension__ typedef int __daddr_t; >__extension__ typedef long int __swblk_t; >__extension__ typedef int __key_t; > > >__extension__ typedef int __clockid_t; > > >__extension__ typedef void * __timer_t; > > >__extension__ typedef long int __blksize_t; > > > > >__extension__ typedef long int __blkcnt_t; >__extension__ typedef __quad_t __blkcnt64_t; > > >__extension__ typedef unsigned long int __fsblkcnt_t; >__extension__ typedef __u_quad_t __fsblkcnt64_t; > > >__extension__ typedef unsigned long int __fsfilcnt_t; >__extension__ typedef __u_quad_t __fsfilcnt64_t; > >__extension__ typedef int __ssize_t; > > > >typedef __off64_t __loff_t; >typedef __quad_t *__qaddr_t; >typedef char *__caddr_t; > > >__extension__ typedef int __intptr_t; > > >__extension__ typedef unsigned int __socklen_t; ># 37 "/usr/include/stdio.h" 2 3 4 > > > > > > > > > >typedef struct _IO_FILE FILE; > > > > > ># 62 "/usr/include/stdio.h" 3 4 >typedef struct _IO_FILE __FILE; ># 72 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/libio.h" 1 3 4 ># 32 "/usr/include/libio.h" 3 4 ># 1 "/usr/include/_G_config.h" 1 3 4 ># 14 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4 ># 355 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 3 4 >typedef unsigned int wint_t; ># 15 "/usr/include/_G_config.h" 2 3 4 ># 24 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/include/wchar.h" 1 3 4 ># 48 "/usr/include/wchar.h" 3 4 ># 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4 ># 49 "/usr/include/wchar.h" 2 3 4 > ># 1 "/usr/include/bits/wchar.h" 1 3 4 ># 51 "/usr/include/wchar.h" 2 3 4 ># 76 "/usr/include/wchar.h" 3 4 >typedef struct >{ > int __count; > union > { > wint_t __wch; > char __wchb[4]; > } __value; >} __mbstate_t; ># 25 "/usr/include/_G_config.h" 2 3 4 > >typedef struct >{ > __off_t __pos; > __mbstate_t __state; >} _G_fpos_t; >typedef struct >{ > __off64_t __pos; > __mbstate_t __state; >} _G_fpos64_t; ># 44 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/include/gconv.h" 1 3 4 ># 28 "/usr/include/gconv.h" 3 4 ># 1 "/usr/include/wchar.h" 1 3 4 ># 48 "/usr/include/wchar.h" 3 4 ># 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4 ># 49 "/usr/include/wchar.h" 2 3 4 ># 29 "/usr/include/gconv.h" 2 3 4 > > ># 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4 ># 32 "/usr/include/gconv.h" 2 3 4 > > > > > >enum >{ > __GCONV_OK = 0, > __GCONV_NOCONV, > __GCONV_NODB, > __GCONV_NOMEM, > > __GCONV_EMPTY_INPUT, > __GCONV_FULL_OUTPUT, > __GCONV_ILLEGAL_INPUT, > __GCONV_INCOMPLETE_INPUT, > > __GCONV_ILLEGAL_DESCRIPTOR, > __GCONV_INTERNAL_ERROR >}; > > > >enum >{ > __GCONV_IS_LAST = 0x0001, > __GCONV_IGNORE_ERRORS = 0x0002 >}; > > > >struct __gconv_step; >struct __gconv_step_data; >struct __gconv_loaded_object; >struct __gconv_trans_data; > > > >typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *, > __const unsigned char **, __const unsigned char *, > unsigned char **, size_t *, int, int); > > >typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char); > > >typedef int (*__gconv_init_fct) (struct __gconv_step *); >typedef void (*__gconv_end_fct) (struct __gconv_step *); > > > >typedef int (*__gconv_trans_fct) (struct __gconv_step *, > struct __gconv_step_data *, void *, > __const unsigned char *, > __const unsigned char **, > __const unsigned char *, unsigned char **, > size_t *); > > >typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *, > __const unsigned char *, > unsigned char *, unsigned char *); > > >typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***, > size_t *); > > >typedef int (*__gconv_trans_init_fct) (void **, const char *); >typedef void (*__gconv_trans_end_fct) (void *); > >struct __gconv_trans_data >{ > > __gconv_trans_fct __trans_fct; > __gconv_trans_context_fct __trans_context_fct; > __gconv_trans_end_fct __trans_end_fct; > void *__data; > struct __gconv_trans_data *__next; >}; > > > >struct __gconv_step >{ > struct __gconv_loaded_object *__shlib_handle; > __const char *__modname; > > int __counter; > > char *__from_name; > char *__to_name; > > __gconv_fct __fct; > __gconv_btowc_fct __btowc_fct; > __gconv_init_fct __init_fct; > __gconv_end_fct __end_fct; > > > > int __min_needed_from; > int __max_needed_from; > int __min_needed_to; > int __max_needed_to; > > > int __stateful; > > void *__data; >}; > > > >struct __gconv_step_data >{ > unsigned char *__outbuf; > unsigned char *__outbufend; > > > > int __flags; > > > > int __invocation_counter; > > > > int __internal_use; > > __mbstate_t *__statep; > __mbstate_t __state; > > > > struct __gconv_trans_data *__trans; >}; > > > >typedef struct __gconv_info >{ > size_t __nsteps; > struct __gconv_step *__steps; > __extension__ struct __gconv_step_data __data []; >} *__gconv_t; ># 45 "/usr/include/_G_config.h" 2 3 4 >typedef union >{ > struct __gconv_info __cd; > struct > { > struct __gconv_info __cd; > struct __gconv_step_data __data; > } __combined; >} _G_iconv_t; > >typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); >typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); ># 33 "/usr/include/libio.h" 2 3 4 ># 166 "/usr/include/libio.h" 3 4 >struct _IO_jump_t; struct _IO_FILE; ># 176 "/usr/include/libio.h" 3 4 >typedef void _IO_lock_t; > > > > > >struct _IO_marker { > struct _IO_marker *_next; > struct _IO_FILE *_sbuf; > > > > int _pos; ># 199 "/usr/include/libio.h" 3 4 >}; > > >enum __codecvt_result >{ > __codecvt_ok, > __codecvt_partial, > __codecvt_error, > __codecvt_noconv >}; ># 267 "/usr/include/libio.h" 3 4 >struct _IO_FILE { > int _flags; > > > > > char* _IO_read_ptr; > char* _IO_read_end; > char* _IO_read_base; > char* _IO_write_base; > char* _IO_write_ptr; > char* _IO_write_end; > char* _IO_buf_base; > char* _IO_buf_end; > > char *_IO_save_base; > char *_IO_backup_base; > char *_IO_save_end; > > struct _IO_marker *_markers; > > struct _IO_FILE *_chain; > > int _fileno; > > > > int _flags2; > > __off_t _old_offset; > > > > unsigned short _cur_column; > signed char _vtable_offset; > char _shortbuf[1]; > > > > _IO_lock_t *_lock; ># 315 "/usr/include/libio.h" 3 4 > __off64_t _offset; ># 324 "/usr/include/libio.h" 3 4 > void *__pad1; > void *__pad2; > void *__pad3; > void *__pad4; > size_t __pad5; > > int _mode; > > char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; > >}; > > > > > >struct _IO_FILE_plus; > >extern struct _IO_FILE_plus _IO_2_1_stdin_; >extern struct _IO_FILE_plus _IO_2_1_stdout_; >extern struct _IO_FILE_plus _IO_2_1_stderr_; ># 360 "/usr/include/libio.h" 3 4 >typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); > > > > > > > >typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, > size_t __n); > > > > > > > >typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); > > >typedef int __io_close_fn (void *__cookie); > > > > >typedef __io_read_fn cookie_read_function_t; >typedef __io_write_fn cookie_write_function_t; >typedef __io_seek_fn cookie_seek_function_t; >typedef __io_close_fn cookie_close_function_t; > > >typedef struct >{ > __io_read_fn *read; > __io_write_fn *write; > __io_seek_fn *seek; > __io_close_fn *close; >} _IO_cookie_io_functions_t; >typedef _IO_cookie_io_functions_t cookie_io_functions_t; > >struct _IO_cookie_file; > > >extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write, > void *__cookie, _IO_cookie_io_functions_t __fns); > > > > >extern "C" { > > >extern int __underflow (_IO_FILE *) throw (); >extern int __uflow (_IO_FILE *) throw (); >extern int __overflow (_IO_FILE *, int) throw (); >extern wint_t __wunderflow (_IO_FILE *) throw (); >extern wint_t __wuflow (_IO_FILE *) throw (); >extern wint_t __woverflow (_IO_FILE *, wint_t) throw (); ># 450 "/usr/include/libio.h" 3 4 >extern int _IO_getc (_IO_FILE *__fp) throw (); >extern int _IO_putc (int __c, _IO_FILE *__fp) throw (); >extern int _IO_feof (_IO_FILE *__fp) throw (); >extern int _IO_ferror (_IO_FILE *__fp) throw (); > >extern int _IO_peekc_locked (_IO_FILE *__fp) throw (); > > > > > >extern void _IO_flockfile (_IO_FILE *) throw (); >extern void _IO_funlockfile (_IO_FILE *) throw (); >extern int _IO_ftrylockfile (_IO_FILE *) throw (); ># 480 "/usr/include/libio.h" 3 4 >extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, > __gnuc_va_list, int *__restrict); >extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, > __gnuc_va_list); >extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) throw (); >extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) throw (); > >extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) throw (); >extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) throw (); > >extern void _IO_free_backup_area (_IO_FILE *) throw (); ># 538 "/usr/include/libio.h" 3 4 ># 1 "/usr/include/bits/libio-ldbl.h" 1 3 4 ># 24 "/usr/include/bits/libio-ldbl.h" 3 4 >extern __typeof (_IO_vfscanf) _IO_vfscanf __asm ("" "__nldbl_" "_IO_vfscanf"); >extern __typeof (_IO_vfprintf) _IO_vfprintf __asm ("" "__nldbl_" "_IO_vfprintf"); ># 539 "/usr/include/libio.h" 2 3 4 > > > >} ># 73 "/usr/include/stdio.h" 2 3 4 ># 86 "/usr/include/stdio.h" 3 4 > > > > >typedef _G_fpos64_t fpos_t; > > > >typedef _G_fpos64_t fpos64_t; ># 138 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 139 "/usr/include/stdio.h" 2 3 4 > > > >extern struct _IO_FILE *stdin; >extern struct _IO_FILE *stdout; >extern struct _IO_FILE *stderr; > > > > > > > >extern int remove (__const char *__filename) throw (); > >extern int rename (__const char *__old, __const char *__new) throw (); > > > > >extern int renameat (int __oldfd, __const char *__old, int __newfd, > __const char *__new) throw (); > > > ># 172 "/usr/include/stdio.h" 3 4 >extern FILE *tmpfile (void) __asm__ ("" "tmpfile64"); > > > > > > >extern FILE *tmpfile64 (void); > > > >extern char *tmpnam (char *__s) throw (); > > > > > >extern char *tmpnam_r (char *__s) throw (); ># 201 "/usr/include/stdio.h" 3 4 >extern char *tempnam (__const char *__dir, __const char *__pfx) > throw () __attribute__ ((__malloc__)); > > > > > > > > >extern int fclose (FILE *__stream); > > > > >extern int fflush (FILE *__stream); > ># 226 "/usr/include/stdio.h" 3 4 >extern int fflush_unlocked (FILE *__stream); ># 236 "/usr/include/stdio.h" 3 4 >extern int fcloseall (void); > > > > ># 257 "/usr/include/stdio.h" 3 4 >extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64"); > >extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64"); > > > > > > > > > >extern FILE *fopen64 (__const char *__restrict __filename, > __const char *__restrict __modes); >extern FILE *freopen64 (__const char *__restrict __filename, > __const char *__restrict __modes, > FILE *__restrict __stream); > > > > >extern FILE *fdopen (int __fd, __const char *__modes) throw (); > > > > > >extern FILE *fopencookie (void *__restrict __magic_cookie, > __const char *__restrict __modes, > _IO_cookie_io_functions_t __io_funcs) throw (); > > >extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes) throw (); > > > > >extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) throw (); > > > > > > >extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) throw (); > > > >extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, > int __modes, size_t __n) throw (); > > > > > >extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, > size_t __size) throw (); > > >extern void setlinebuf (FILE *__stream) throw (); > > > > > > > > >extern int fprintf (FILE *__restrict __stream, > __const char *__restrict __format, ...); > > > > >extern int printf (__const char *__restrict __format, ...); > >extern int sprintf (char *__restrict __s, > __const char *__restrict __format, ...) throw (); > > > > > >extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg); > > > > >extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg); > >extern int vsprintf (char *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg) throw (); > > > > > >extern int snprintf (char *__restrict __s, size_t __maxlen, > __const char *__restrict __format, ...) > throw () __attribute__ ((__format__ (__printf__, 3, 4))); > >extern int vsnprintf (char *__restrict __s, size_t __maxlen, > __const char *__restrict __format, __gnuc_va_list __arg) > throw () __attribute__ ((__format__ (__printf__, 3, 0))); > > > > > > >extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f, > __gnuc_va_list __arg) > throw () __attribute__ ((__format__ (__printf__, 2, 0))); >extern int __asprintf (char **__restrict __ptr, > __const char *__restrict __fmt, ...) > throw () __attribute__ ((__format__ (__printf__, 2, 3))); >extern int asprintf (char **__restrict __ptr, > __const char *__restrict __fmt, ...) > throw () __attribute__ ((__format__ (__printf__, 2, 3))); > > > > > > > >extern int vdprintf (int __fd, __const char *__restrict __fmt, > __gnuc_va_list __arg) > __attribute__ ((__format__ (__printf__, 2, 0))); >extern int dprintf (int __fd, __const char *__restrict __fmt, ...) > __attribute__ ((__format__ (__printf__, 2, 3))); > > > > > > > > >extern int fscanf (FILE *__restrict __stream, > __const char *__restrict __format, ...) ; > > > > >extern int scanf (__const char *__restrict __format, ...) ; > >extern int sscanf (__const char *__restrict __s, > __const char *__restrict __format, ...) throw (); > > > > > > > > >extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg) > __attribute__ ((__format__ (__scanf__, 2, 0))) ; > > > > > >extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) > __attribute__ ((__format__ (__scanf__, 1, 0))) ; > > >extern int vsscanf (__const char *__restrict __s, > __const char *__restrict __format, __gnuc_va_list __arg) > throw () __attribute__ ((__format__ (__scanf__, 2, 0))); > > > > > > > > > >extern int fgetc (FILE *__stream); >extern int getc (FILE *__stream); > > > > > >extern int getchar (void); > ># 458 "/usr/include/stdio.h" 3 4 >extern int getc_unlocked (FILE *__stream); >extern int getchar_unlocked (void); ># 469 "/usr/include/stdio.h" 3 4 >extern int fgetc_unlocked (FILE *__stream); > > > > > > > > > > > >extern int fputc (int __c, FILE *__stream); >extern int putc (int __c, FILE *__stream); > > > > > >extern int putchar (int __c); > ># 502 "/usr/include/stdio.h" 3 4 >extern int fputc_unlocked (int __c, FILE *__stream); > > > > > > > >extern int putc_unlocked (int __c, FILE *__stream); >extern int putchar_unlocked (int __c); > > > > > > >extern int getw (FILE *__stream); > > >extern int putw (int __w, FILE *__stream); > > > > > > > > >extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) > ; > > > > > > >extern char *gets (char *__s) ; > ># 548 "/usr/include/stdio.h" 3 4 >extern char *fgets_unlocked (char *__restrict __s, int __n, > FILE *__restrict __stream) ; ># 564 "/usr/include/stdio.h" 3 4 >extern __ssize_t __getdelim (char **__restrict __lineptr, > size_t *__restrict __n, int __delimiter, > FILE *__restrict __stream) ; >extern __ssize_t getdelim (char **__restrict __lineptr, > size_t *__restrict __n, int __delimiter, > FILE *__restrict __stream) ; > > > > > > > >extern __ssize_t getline (char **__restrict __lineptr, > size_t *__restrict __n, > FILE *__restrict __stream) ; > > > > > > > > >extern int fputs (__const char *__restrict __s, FILE *__restrict __stream); > > > > > >extern int puts (__const char *__s); > > > > > > >extern int ungetc (int __c, FILE *__stream); > > > > > > >extern size_t fread (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; > > > > >extern size_t fwrite (__const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __s) ; > ># 625 "/usr/include/stdio.h" 3 4 >extern int fputs_unlocked (__const char *__restrict __s, > FILE *__restrict __stream); ># 636 "/usr/include/stdio.h" 3 4 >extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; >extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; > > > > > > > > >extern int fseek (FILE *__stream, long int __off, int __whence); > > > > >extern long int ftell (FILE *__stream) ; > > > > >extern void rewind (FILE *__stream); > ># 680 "/usr/include/stdio.h" 3 4 >extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64"); > > >extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64"); > > > > > > > > ># 705 "/usr/include/stdio.h" 3 4 >extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64"); > >extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64"); > > > > > > > > > >extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); >extern __off64_t ftello64 (FILE *__stream) ; >extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); >extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos); > > > > >extern void clearerr (FILE *__stream) throw (); > >extern int feof (FILE *__stream) throw () ; > >extern int ferror (FILE *__stream) throw () ; > > > > >extern void clearerr_unlocked (FILE *__stream) throw (); >extern int feof_unlocked (FILE *__stream) throw () ; >extern int ferror_unlocked (FILE *__stream) throw () ; > > > > > > > > >extern void perror (__const char *__s); > > > > > > ># 1 "/usr/include/bits/sys_errlist.h" 1 3 4 ># 27 "/usr/include/bits/sys_errlist.h" 3 4 >extern int sys_nerr; >extern __const char *__const sys_errlist[]; > > >extern int _sys_nerr; >extern __const char *__const _sys_errlist[]; ># 753 "/usr/include/stdio.h" 2 3 4 > > > > >extern int fileno (FILE *__stream) throw () ; > > > > >extern int fileno_unlocked (FILE *__stream) throw () ; ># 772 "/usr/include/stdio.h" 3 4 >extern FILE *popen (__const char *__command, __const char *__modes) ; > > > > > >extern int pclose (FILE *__stream); > > > > > >extern char *ctermid (char *__s) throw (); > > > > > >extern char *cuserid (char *__s); > > > > >struct obstack; > > >extern int obstack_printf (struct obstack *__restrict __obstack, > __const char *__restrict __format, ...) > throw () __attribute__ ((__format__ (__printf__, 2, 3))); >extern int obstack_vprintf (struct obstack *__restrict __obstack, > __const char *__restrict __format, > __gnuc_va_list __args) > throw () __attribute__ ((__format__ (__printf__, 2, 0))); > > > > > > > >extern void flockfile (FILE *__stream) throw (); > > > >extern int ftrylockfile (FILE *__stream) throw () ; > > >extern void funlockfile (FILE *__stream) throw (); ># 833 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/bits/stdio.h" 1 3 4 ># 33 "/usr/include/bits/stdio.h" 3 4 >inline int >vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg) >{ > return vfprintf (stdout, __fmt, __arg); >} > > >inline int >getchar (void) >{ > return _IO_getc (stdin); >} > > > > >inline int >getc_unlocked (FILE *__fp) >{ > return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); >} > > >inline int >getchar_unlocked (void) >{ > return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); >} > > > > >inline int >putchar (int __c) >{ > return _IO_putc (__c, stdout); >} > > > > >inline int >fputc_unlocked (int __c, FILE *__stream) >{ > return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); >} > > > > > >inline int >putc_unlocked (int __c, FILE *__stream) >{ > return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); >} > > >inline int >putchar_unlocked (int __c) >{ > return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); >} > > > > > >inline __ssize_t >getline (char **__lineptr, size_t *__n, FILE *__stream) >{ > return __getdelim (__lineptr, __n, '\n', __stream); >} > > > > > >inline int >feof_unlocked (FILE *__stream) throw () >{ > return (((__stream)->_flags & 0x10) != 0); >} > > >inline int >ferror_unlocked (FILE *__stream) throw () >{ > return (((__stream)->_flags & 0x20) != 0); >} ># 834 "/usr/include/stdio.h" 2 3 4 > > > > > ># 1 "/usr/include/bits/stdio-ldbl.h" 1 3 4 ># 24 "/usr/include/bits/stdio-ldbl.h" 3 4 > >extern __typeof (fprintf) fprintf __asm ("" "__nldbl_" "fprintf"); >extern __typeof (printf) printf __asm ("" "__nldbl_" "printf"); >extern __typeof (sprintf) sprintf __asm ("" "__nldbl_" "sprintf"); >extern __typeof (vfprintf) vfprintf __asm ("" "__nldbl_" "vfprintf"); >extern __typeof (vprintf) vprintf __asm ("" "__nldbl_" "vprintf"); >extern __typeof (vsprintf) vsprintf __asm ("" "__nldbl_" "vsprintf"); >extern __typeof (fscanf) fscanf __asm ("" "__nldbl_" "fscanf"); >extern __typeof (scanf) scanf __asm ("" "__nldbl_" "scanf"); >extern __typeof (sscanf) sscanf __asm ("" "__nldbl_" "sscanf"); > > > > >extern __typeof (snprintf) snprintf __asm ("" "__nldbl_" "snprintf"); >extern __typeof (vsnprintf) vsnprintf __asm ("" "__nldbl_" "vsnprintf"); > > > > > >extern __typeof (vfscanf) vfscanf __asm ("" "__nldbl_" "vfscanf"); >extern __typeof (vsscanf) vsscanf __asm ("" "__nldbl_" "vsscanf"); >extern __typeof (vscanf) vscanf __asm ("" "__nldbl_" "vscanf"); > > > > >extern __typeof (vdprintf) vdprintf __asm ("" "__nldbl_" "vdprintf"); >extern __typeof (dprintf) dprintf __asm ("" "__nldbl_" "dprintf"); >extern __typeof (vasprintf) vasprintf __asm ("" "__nldbl_" "vasprintf"); >extern __typeof (__asprintf) __asprintf __asm ("" "__nldbl_" "__asprintf"); >extern __typeof (asprintf) asprintf __asm ("" "__nldbl_" "asprintf"); >extern __typeof (obstack_printf) obstack_printf __asm ("" "__nldbl_" "obstack_printf"); >extern __typeof (obstack_vprintf) obstack_vprintf __asm ("" "__nldbl_" "obstack_vprintf"); ># 840 "/usr/include/stdio.h" 2 3 4 > > >} ># 37 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" 2 > ># 1 "../c++/etip.h" 1 ># 120 "../c++/etip.h" ># 1 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/../include/ncurses_dll.h" 1 ># 121 "../c++/etip.h" 2 > >extern "C" { > > > > ># 1 "/usr/include/assert.h" 1 3 4 ># 128 "../c++/etip.h" 2 ># 1 "../include/eti.h" 1 ># 129 "../c++/etip.h" 2 ># 1 "/usr/include/errno.h" 1 3 4 ># 32 "/usr/include/errno.h" 3 4 >extern "C" { > > > ># 1 "/usr/include/bits/errno.h" 1 3 4 ># 25 "/usr/include/bits/errno.h" 3 4 ># 1 "/usr/include/linux/errno.h" 1 3 4 > > > ># 1 "/usr/include/asm/errno.h" 1 3 4 > > > ># 1 "/usr/include/asm-generic/errno.h" 1 3 4 > > > ># 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 ># 5 "/usr/include/asm-generic/errno.h" 2 3 4 ># 5 "/usr/include/asm/errno.h" 2 3 4 ># 5 "/usr/include/linux/errno.h" 2 3 4 ># 26 "/usr/include/bits/errno.h" 2 3 4 ># 43 "/usr/include/bits/errno.h" 3 4 >extern int *__errno_location (void) throw () __attribute__ ((__const__)); ># 37 "/usr/include/errno.h" 2 3 4 ># 55 "/usr/include/errno.h" 3 4 >extern char *program_invocation_name, *program_invocation_short_name; > > > >} ># 69 "/usr/include/errno.h" 3 4 >typedef int error_t; ># 130 "../c++/etip.h" 2 >} ># 146 "../c++/etip.h" >class NCursesPanel; >class NCursesMenu; >class NCursesForm; > >class NCursesException >{ >public: > const char *message; > int errorno; > > NCursesException (const char* msg, int err) > : message(msg), errorno (err) > {}; > > NCursesException (const char* msg) > : message(msg), errorno ((-1)) > {}; > > NCursesException& operator=(const NCursesException& rhs) > { > errorno = rhs.errorno; > return *this; > } > > NCursesException(const NCursesException& rhs) > : message(rhs.message), errorno(rhs.errorno) > { > } > > virtual const char *classname() const { > return "NCursesWindow"; > } > > virtual ~NCursesException() > { > } >}; > >class NCursesPanelException : public NCursesException >{ >public: > const NCursesPanel* p; > > NCursesPanelException (const char *msg, int err) : > NCursesException (msg, err), > p (__null) > {}; > > NCursesPanelException (const NCursesPanel* panel, > const char *msg, > int err) : > NCursesException (msg, err), > p (panel) > {}; > > NCursesPanelException (int err) : > NCursesException ("panel library error", err), > p (__null) > {}; > > NCursesPanelException (const NCursesPanel* panel, > int err) : > NCursesException ("panel library error", err), > p (panel) > {}; > > NCursesPanelException& operator=(const NCursesPanelException& rhs) > { > if (this != &rhs) { > NCursesException::operator=(rhs); > p = rhs.p; > } > return *this; > } > > NCursesPanelException(const NCursesPanelException& rhs) > : NCursesException(rhs), p(rhs.p) > { > } > > virtual const char *classname() const { > return "NCursesPanel"; > } > > virtual ~NCursesPanelException() > { > } >}; > >class NCursesMenuException : public NCursesException >{ >public: > const NCursesMenu* m; > > NCursesMenuException (const char *msg, int err) : > NCursesException (msg, err), > m (__null) > {}; > > NCursesMenuException (const NCursesMenu* menu, > const char *msg, > int err) : > NCursesException (msg, err), > m (menu) > {}; > > NCursesMenuException (int err) : > NCursesException ("menu library error", err), > m (__null) > {}; > > NCursesMenuException (const NCursesMenu* menu, > int err) : > NCursesException ("menu library error", err), > m (menu) > {}; > > NCursesMenuException& operator=(const NCursesMenuException& rhs) > { > if (this != &rhs) { > NCursesException::operator=(rhs); > m = rhs.m; > } > return *this; > } > > NCursesMenuException(const NCursesMenuException& rhs) > : NCursesException(rhs), m(rhs.m) > { > } > > virtual const char *classname() const { > return "NCursesMenu"; > } > > virtual ~NCursesMenuException() > { > } >}; > >class NCursesFormException : public NCursesException >{ >public: > const NCursesForm* f; > > NCursesFormException (const char *msg, int err) : > NCursesException (msg, err), > f (__null) > {}; > > NCursesFormException (const NCursesForm* form, > const char *msg, > int err) : > NCursesException (msg, err), > f (form) > {}; > > NCursesFormException (int err) : > NCursesException ("form library error", err), > f (__null) > {}; > > NCursesFormException (const NCursesForm* form, > int err) : > NCursesException ("form library error", err), > f (form) > {}; > > NCursesFormException& operator=(const NCursesFormException& rhs) > { > if (this != &rhs) { > NCursesException::operator=(rhs); > f = rhs.f; > } > return *this; > } > > NCursesFormException(const NCursesFormException& rhs) > : NCursesException(rhs), f(rhs.f) > { > } > > virtual const char *classname() const { > return "NCursesForm"; > } > > virtual ~NCursesFormException() > { > } >}; > > > > > > >inline void THROW(const NCursesException *e) { ># 367 "../c++/etip.h" > throw *e; > > > > >} ># 39 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" 2 > > > > > >extern "C" { ># 1 "../include/curses.h" 1 ># 129 "../include/curses.h" >typedef unsigned long chtype; >typedef unsigned long mmask_t; > > > ># 1 "../include/unctrl.h" 1 ># 51 "../include/unctrl.h" >extern "C" { > > ># 1 "../include/curses.h" 1 ># 55 "../include/unctrl.h" 2 > > > const char * unctrl (chtype); > > >} ># 135 "../include/curses.h" 2 > > ># 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 1 3 4 ># 152 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/stddef.h" 3 4 >typedef int ptrdiff_t; ># 138 "../include/curses.h" 2 ># 158 "../include/curses.h" >typedef unsigned char NCURSES_BOOL; ># 180 "../include/curses.h" >extern "C" { ># 209 "../include/curses.h" >extern int COLORS; >extern int COLOR_PAIRS; ># 227 "../include/curses.h" >extern chtype acs_map[]; ># 317 "../include/curses.h" >typedef struct screen SCREEN; >typedef struct _win_st WINDOW; > >typedef chtype attr_t; ># 344 "../include/curses.h" >typedef struct >{ > attr_t attr; > wchar_t chars[5]; > > > >} >cchar_t; > > > >struct ldat; > >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; > > > cchar_t _bkgrnd; > > > > >}; > >extern WINDOW * stdscr; >extern WINDOW * curscr; >extern WINDOW * newscr; > >extern int LINES; >extern int COLS; >extern int TABSIZE; > > > > >extern int ESCDELAY; > > > > > >extern bool is_term_resized (int, int); >extern char * keybound (int, int); >extern const char * curses_version (void); >extern int assume_default_colors (int, int); >extern int define_key (const char *, int); >extern int key_defined (const char *); >extern int keyok (int, bool); >extern int resize_term (int, int); >extern int resizeterm (int, int); >extern int use_default_colors (void); >extern int use_extended_names (bool); >extern int use_legacy_coding (int); >extern int wresize (WINDOW *, int, int); >extern void nofilter(void); ># 546 "../include/curses.h" >extern int addch (const chtype); >extern int addchnstr (const chtype *, int); >extern int addchstr (const chtype *); >extern int addnstr (const char *, int); >extern int addstr (const char *); >extern int attroff (int); >extern int attron (int); >extern int attrset (int); >extern int attr_get (attr_t *, short *, void *); >extern int attr_off (attr_t, void *); >extern int attr_on (attr_t, void *); >extern int attr_set (attr_t, short, void *); >extern int baudrate (void); >extern int beep (void); >extern int bkgd (chtype); >extern void bkgdset (chtype); >extern int border (chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); >extern int box (WINDOW *, chtype, chtype); >extern bool can_change_color (void); >extern int cbreak (void); >extern int chgat (int, attr_t, short, const void *); >extern int clear (void); >extern int clearok (WINDOW *,bool); >extern int clrtobot (void); >extern int clrtoeol (void); >extern int color_content (short,short*,short*,short*); >extern int color_set (short,void*); >extern int COLOR_PAIR (int); >extern int copywin (const WINDOW*,WINDOW*,int,int,int,int,int,int,int); >extern int curs_set (int); >extern int def_prog_mode (void); >extern int def_shell_mode (void); >extern int delay_output (int); >extern int delch (void); >extern void delscreen (SCREEN *); >extern int delwin (WINDOW *); >extern int deleteln (void); >extern WINDOW * derwin (WINDOW *,int,int,int,int); >extern int doupdate (void); >extern WINDOW * dupwin (WINDOW *); >extern int echo (void); >extern int echochar (const chtype); >extern int erase (void); >extern int endwin (void); >extern char erasechar (void); >extern void filter (void); >extern int flash (void); >extern int flushinp (void); >extern chtype getbkgd (WINDOW *); >extern int getch (void); >extern int getnstr (char *, int); >extern int getstr (char *); >extern WINDOW * getwin (FILE *); >extern int halfdelay (int); >extern bool has_colors (void); >extern bool has_ic (void); >extern bool has_il (void); >extern int hline (chtype, int); >extern void idcok (WINDOW *, bool); >extern int idlok (WINDOW *, bool); >extern void immedok (WINDOW *, bool); >extern chtype inch (void); >extern int inchnstr (chtype *, int); >extern int inchstr (chtype *); >extern WINDOW * initscr (void); >extern int init_color (short,short,short,short); >extern int init_pair (short,short,short); >extern int innstr (char *, int); >extern int insch (chtype); >extern int insdelln (int); >extern int insertln (void); >extern int insnstr (const char *, int); >extern int insstr (const char *); >extern int instr (char *); >extern int intrflush (WINDOW *,bool); >extern bool isendwin (void); >extern bool is_linetouched (WINDOW *,int); >extern bool is_wintouched (WINDOW *); >extern const char * keyname (int); >extern int keypad (WINDOW *,bool); >extern char killchar (void); >extern int leaveok (WINDOW *,bool); >extern char * longname (void); >extern int meta (WINDOW *,bool); >extern int move (int, int); >extern int mvaddch (int, int, const chtype); >extern int mvaddchnstr (int, int, const chtype *, int); >extern int mvaddchstr (int, int, const chtype *); >extern int mvaddnstr (int, int, const char *, int); >extern int mvaddstr (int, int, const char *); >extern int mvchgat (int, int, int, attr_t, short, const void *); >extern int mvcur (int,int,int,int); >extern int mvdelch (int, int); >extern int mvderwin (WINDOW *, int, int); >extern int mvgetch (int, int); >extern int mvgetnstr (int, int, char *, int); >extern int mvgetstr (int, int, char *); >extern int mvhline (int, int, chtype, int); >extern chtype mvinch (int, int); >extern int mvinchnstr (int, int, chtype *, int); >extern int mvinchstr (int, int, chtype *); >extern int mvinnstr (int, int, char *, int); >extern int mvinsch (int, int, chtype); >extern int mvinsnstr (int, int, const char *, int); >extern int mvinsstr (int, int, const char *); >extern int mvinstr (int, int, char *); >extern int mvprintw (int,int, const char *,...) > __attribute__((format(printf,3,4))); >extern int mvscanw (int,int, const char *,...) > __attribute__((format(scanf,3,4))); >extern int mvvline (int, int, chtype, int); >extern int mvwaddch (WINDOW *, int, int, const chtype); >extern int mvwaddchnstr (WINDOW *, int, int, const chtype *, int); >extern int mvwaddchstr (WINDOW *, int, int, const chtype *); >extern int mvwaddnstr (WINDOW *, int, int, const char *, int); >extern int mvwaddstr (WINDOW *, int, int, const char *); >extern int mvwchgat (WINDOW *, int, int, int, attr_t, short, const void *); >extern int mvwdelch (WINDOW *, int, int); >extern int mvwgetch (WINDOW *, int, int); >extern int mvwgetnstr (WINDOW *, int, int, char *, int); >extern int mvwgetstr (WINDOW *, int, int, char *); >extern int mvwhline (WINDOW *, int, int, chtype, int); >extern int mvwin (WINDOW *,int,int); >extern chtype mvwinch (WINDOW *, int, int); >extern int mvwinchnstr (WINDOW *, int, int, chtype *, int); >extern int mvwinchstr (WINDOW *, int, int, chtype *); >extern int mvwinnstr (WINDOW *, int, int, char *, int); >extern int mvwinsch (WINDOW *, int, int, chtype); >extern int mvwinsnstr (WINDOW *, int, int, const char *, int); >extern int mvwinsstr (WINDOW *, int, int, const char *); >extern int mvwinstr (WINDOW *, int, int, char *); >extern int mvwprintw (WINDOW*,int,int, const char *,...) > __attribute__((format(printf,4,5))); >extern int mvwscanw (WINDOW *,int,int, const char *,...) > __attribute__((format(scanf,4,5))); >extern int mvwvline (WINDOW *,int, int, chtype, int); >extern int napms (int); >extern WINDOW * newpad (int,int); >extern SCREEN * newterm (const char *,FILE *,FILE *); >extern WINDOW * newwin (int,int,int,int); >extern int nl (void); >extern int nocbreak (void); >extern int nodelay (WINDOW *,bool); >extern int noecho (void); >extern int nonl (void); >extern void noqiflush (void); >extern int noraw (void); >extern int notimeout (WINDOW *,bool); >extern int overlay (const WINDOW*,WINDOW *); >extern int overwrite (const WINDOW*,WINDOW *); >extern int pair_content (short,short*,short*); >extern int PAIR_NUMBER (int); >extern int pechochar (WINDOW *, const chtype); >extern int pnoutrefresh (WINDOW*,int,int,int,int,int,int); >extern int prefresh (WINDOW *,int,int,int,int,int,int); >extern int printw (const char *,...) > __attribute__((format(printf,1,2))); >extern int putwin (WINDOW *, FILE *); >extern void qiflush (void); >extern int raw (void); >extern int redrawwin (WINDOW *); >extern int refresh (void); >extern int resetty (void); >extern int reset_prog_mode (void); >extern int reset_shell_mode (void); >extern int ripoffline (int, int (*)(WINDOW *, int)); >extern int savetty (void); >extern int scanw (const char *,...) > __attribute__((format(scanf,1,2))); >extern int scr_dump (const char *); >extern int scr_init (const char *); >extern int scrl (int); >extern int scroll (WINDOW *); >extern int scrollok (WINDOW *,bool); >extern int scr_restore (const char *); >extern int scr_set (const char *); >extern int setscrreg (int,int); >extern SCREEN * set_term (SCREEN *); >extern int slk_attroff (const chtype); >extern int slk_attr_off (const attr_t, void *); >extern int slk_attron (const chtype); >extern int slk_attr_on (attr_t,void*); >extern int slk_attrset (const chtype); >extern attr_t slk_attr (void); >extern int slk_attr_set (const attr_t,short,void*); >extern int slk_clear (void); >extern int slk_color (short); >extern int slk_init (int); >extern char * slk_label (int); >extern int slk_noutrefresh (void); >extern int slk_refresh (void); >extern int slk_restore (void); >extern int slk_set (int,const char *,int); >extern int slk_touch (void); >extern int standout (void); >extern int standend (void); >extern int start_color (void); >extern WINDOW * subpad (WINDOW *, int, int, int, int); >extern WINDOW * subwin (WINDOW *,int,int,int,int); >extern int syncok (WINDOW *, bool); >extern chtype termattrs (void); >extern char * termname (void); >extern void timeout (int); >extern int touchline (WINDOW *, int, int); >extern int touchwin (WINDOW *); >extern int typeahead (int); >extern int ungetch (int); >extern int untouchwin (WINDOW *); >extern void use_env (bool); >extern int vidattr (chtype); >extern int vidputs (chtype, int (*)(int)); >extern int vline (chtype, int); >extern int vwprintw (WINDOW *, const char *,va_list); >extern int vw_printw (WINDOW *, const char *,va_list); >extern int vwscanw (WINDOW *, const char *,va_list); >extern int vw_scanw (WINDOW *, const char *,va_list); >extern int waddch (WINDOW *, const chtype); >extern int waddchnstr (WINDOW *,const chtype *,int); >extern int waddchstr (WINDOW *,const chtype *); >extern int waddnstr (WINDOW *,const char *,int); >extern int waddstr (WINDOW *,const char *); >extern int wattron (WINDOW *, int); >extern int wattroff (WINDOW *, int); >extern int wattrset (WINDOW *, int); >extern int wattr_get (WINDOW *, attr_t *, short *, void *); >extern int wattr_on (WINDOW *, attr_t, void *); >extern int wattr_off (WINDOW *, attr_t, void *); >extern int wattr_set (WINDOW *, attr_t, short, void *); >extern int wbkgd (WINDOW *, chtype); >extern void wbkgdset (WINDOW *,chtype); >extern int wborder (WINDOW *,chtype,chtype,chtype,chtype,chtype,chtype,chtype,chtype); >extern int wchgat (WINDOW *, int, attr_t, short, const void *); >extern int wclear (WINDOW *); >extern int wclrtobot (WINDOW *); >extern int wclrtoeol (WINDOW *); >extern int wcolor_set (WINDOW*,short,void*); >extern void wcursyncup (WINDOW *); >extern int wdelch (WINDOW *); >extern int wdeleteln (WINDOW *); >extern int wechochar (WINDOW *, const chtype); >extern int werase (WINDOW *); >extern int wgetch (WINDOW *); >extern int wgetnstr (WINDOW *,char *,int); >extern int wgetstr (WINDOW *, char *); >extern int whline (WINDOW *, chtype, int); >extern chtype winch (WINDOW *); >extern int winchnstr (WINDOW *, chtype *, int); >extern int winchstr (WINDOW *, chtype *); >extern int winnstr (WINDOW *, char *, int); >extern int winsch (WINDOW *, chtype); >extern int winsdelln (WINDOW *,int); >extern int winsertln (WINDOW *); >extern int winsnstr (WINDOW *, const char *,int); >extern int winsstr (WINDOW *, const char *); >extern int winstr (WINDOW *, char *); >extern int wmove (WINDOW *,int,int); >extern int wnoutrefresh (WINDOW *); >extern int wprintw (WINDOW *, const char *,...) > __attribute__((format(printf,2,3))); >extern int wredrawln (WINDOW *,int,int); >extern int wrefresh (WINDOW *); >extern int wscanw (WINDOW *, const char *,...) > __attribute__((format(scanf,2,3))); >extern int wscrl (WINDOW *,int); >extern int wsetscrreg (WINDOW *,int,int); >extern int wstandout (WINDOW *); >extern int wstandend (WINDOW *); >extern void wsyncdown (WINDOW *); >extern void wsyncup (WINDOW *); >extern void wtimeout (WINDOW *,int); >extern int wtouchln (WINDOW *,int,int,int); >extern int wvline (WINDOW *,chtype,int); > > > > >extern int tigetflag (const char *); >extern int tigetnum (const char *); >extern char * tigetstr (const char *); >extern int putp (const char *); > > >extern char * tparm (const char *, ...); > > > > > >extern char ttytype[]; > > > > >extern int getcurx (const WINDOW *); >extern int getcury (const WINDOW *); >extern int getbegx (const WINDOW *); >extern int getbegy (const WINDOW *); >extern int getmaxx (const WINDOW *); >extern int getmaxy (const WINDOW *); >extern int getparx (const WINDOW *); >extern int getpary (const WINDOW *); ># 1304 "../include/curses.h" >typedef struct >{ > short id; > int x, y, z; > mmask_t bstate; >} >MEVENT; > >extern int getmouse (MEVENT *); >extern int ungetmouse (MEVENT *); >extern mmask_t mousemask (mmask_t, mmask_t *); >extern bool wenclose (const WINDOW *, int, int); >extern int mouseinterval (int); >extern bool wmouse_trafo (const WINDOW*, int*, int*, bool); >extern bool mouse_trafo (int*, int*, bool); > > > > > >extern int mcprint (char *, int); >extern int has_key (int); > > > >extern void _tracef (const char *, ...) __attribute__((format(printf,1,2))); >extern void _tracedump (const char *, WINDOW *); >extern char * _traceattr (attr_t); >extern char * _traceattr2 (int, chtype); >extern char * _nc_tracebits (void); >extern char * _tracechar (int); >extern char * _tracechtype (chtype); >extern char * _tracechtype2 (int, chtype); > > >extern char * _tracecchar_t (const cchar_t *); > >extern char * _tracecchar_t2 (int, const cchar_t *); > > > > >extern char * _tracemouse (const MEVENT *); >extern void trace (const unsigned int); ># 1391 "../include/curses.h" >} ># 46 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" 2 >} ># 59 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" >inline int CUR_addch(chtype ch) { return waddch(stdscr,ch); } > > > > > >inline int CUR_echochar(chtype ch) { return wechochar(stdscr,ch); } > > > > > >inline int CUR_insdelln(int n) { return winsdelln(stdscr,n); } > > > > > >inline int CUR_addstr(const char * str) { return waddnstr(stdscr,str,-1); } > > > > > >inline int CUR_attron(chtype at) { return wattr_on(stdscr, static_cast<attr_t>(at), __null); } > > > > > >inline int CUR_attroff(chtype at) { return wattr_off(stdscr, static_cast<attr_t>(at), __null); } > > > > > >inline chtype CUR_attrset(chtype at) { return ((stdscr)->_attrs = (at)); } > > > > > >inline chtype CUR_color_set(short p, void* opts) { return wcolor_set(stdscr,p,opts); } > > > > > >inline int CUR_border(chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br) >{ return wborder(stdscr, ls, rs, ts, bs, tl, tr, bl, br); } ># 120 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" >inline int CUR_mvwhline(WINDOW *win, int y, int x, chtype c, int n) { > return (wmove(win,y,x) == (-1) ? (-1) : whline(win,c,n)); } > > > > > >inline int CUR_mvwvline(WINDOW *win, int y, int x, chtype c, int n) { > return (wmove(win,y,x) == (-1) ? (-1) : wvline(win,c,n)); } ># 144 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" >extern "C" int clearok(WINDOW*, bool); > > > >inline int CUR_clrtobot() { return wclrtobot(stdscr); } > > > > > >inline int CUR_clrtoeol() { return wclrtoeol(stdscr); } > > > > > >inline int CUR_delch() { return wdelch(stdscr); } > > > > > >inline int CUR_deleteln() { return winsdelln(stdscr,-1); } ># 187 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" >inline int CUR_getch() { return wgetch(stdscr); } > > > > > >inline int CUR_getstr(char *_str) { return wgetnstr(stdscr, _str, -1); } > > > > > >inline int CUR_instr(char *_str) { return winnstr(stdscr, _str, -1); } > > > > > >inline int CUR_innstr(char *_str, int n) { return winnstr(stdscr,_str,n); } > > > > > >inline int CUR_mvwinnstr(WINDOW *win, int y, int x, char *_str, int n) { > return (wmove(win,y,x) == (-1) ? (-1) : winnstr(win,_str,n)); } > > > > > >inline int CUR_mvinnstr(int y, int x, char *_str, int n) { > return CUR_mvwinnstr(stdscr,y,x,_str,n); } > > > > > >inline int CUR_winsstr(WINDOW *w, const char *_str) { > return winsnstr(w, _str, -1); } > > > > > >inline int CUR_mvwinsstr(WINDOW *w, int y, int x, const char *_str) { > return (wmove(w,y,x) == (-1) ? (-1) : CUR_winsstr(w,_str)); } > > > > > >inline int CUR_insstr(const char *_str) { > return CUR_winsstr(stdscr,_str); } > > > > > >inline int CUR_mvinsstr(int y, int x, const char *_str) { > return CUR_mvwinsstr(stdscr,y,x,_str); } > > > > > >inline int CUR_insnstr(const char *_str, int n) { > return winsnstr(stdscr,_str,n); } > > > > > >inline int CUR_mvwinsnstr(WINDOW *w, int y, int x, const char *_str, int n) { > return (wmove(w,y,x) == (-1) ? (-1) : winsnstr(w,_str,n)); } > > > > > >inline int CUR_mvinsnstr(int y, int x, const char *_str, int n) { > return CUR_mvwinsnstr(stdscr,y,x,_str,n); } > > > > > >inline int CUR_getnstr(char *_str, int n) { return wgetnstr(stdscr, _str, n); } > > > > > >inline void CUR_getyx(const WINDOW* win, int& y, int& x) { > (y = ((win)?(win)->_cury:(-1)), x = ((win)?(win)->_curx:(-1))); } > > > > > >inline void CUR_getbegyx(WINDOW* win, int& y, int& x) { (y = ((win)?(win)->_begy:(-1)), x = ((win)?(win)->_begx:(-1))); } > > > > > >inline void CUR_getmaxyx(WINDOW* win, int& y, int& x) { (y = ((win)?((win)->_maxy + 1):(-1)), x = ((win)?((win)->_maxx + 1):(-1))); } > > > > > >inline int CUR_hline(chtype ch, int n) { return whline(stdscr, ch, n); } > > > > > >inline chtype CUR_inch() { return winch(stdscr); } > > > > > >inline int CUR_insch(chtype c) { return winsch(stdscr,c); } > > > > > >inline int CUR_insertln() { return winsdelln(stdscr,1); } ># 327 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" >extern "C" int leaveok(WINDOW* win, bool bf); ># 343 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" >inline int CUR_redrawwin(WINDOW *win) { return wredrawln(win, 0, (win)->_maxy+1); } > > > > > >inline int CUR_scrl(int l) { return wscrl(stdscr,l); } > > > > > >inline int CUR_scroll(WINDOW *win) { return wscrl(win,1); } ># 366 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" >extern "C" int scrollok(WINDOW*, bool); > > > > > > >inline int CUR_setscrreg(int t, int b) { return wsetscrreg(stdscr,t,b); } > > > > > >inline int CUR_standend() { return (((stdscr)->_attrs = ((1UL - 1UL)))); } > > > > > >inline int CUR_standout() { return (((stdscr)->_attrs = (((1UL) << ((8) + 8))))); } ># 398 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" >inline void CUR_timeout(int delay) { wtimeout(stdscr,delay); } > > > > > >inline int CUR_touchline(WINDOW *win, int s, int c) >{ return wtouchln((win), s, c, 1); } > > > > > >inline int CUR_touchwin(WINDOW *win) { return wtouchln((win), 0, ((win)?((win)->_maxy + 1):(-1)), 1); } > > > > > >inline int CUR_untouchwin(WINDOW *win) { return wtouchln((win), 0, ((win)?((win)->_maxy + 1):(-1)), 0); } > > > > > >inline int CUR_vline(chtype ch, int n) { return wvline(stdscr, ch, n); } > > > > > >inline int CUR_waddstr(WINDOW *win, char *str) { return waddnstr(win,str,-1); } > > > > > >inline int CUR_waddchstr(WINDOW *win, chtype *at) { return waddchnstr(win,at,-1); } > > > > > >inline int CUR_wstandend(WINDOW *win) { return (((win)->_attrs = ((1UL - 1UL)))); } > > > > > >inline int CUR_wstandout(WINDOW *win) { return (((win)->_attrs = (((1UL) << ((8) + 8))))); } > > > > > > >inline int CUR_wattroff(WINDOW *win, int att) { return wattr_off(win, static_cast<attr_t>(att), __null); } > > > > > >inline int CUR_chgat(int n, attr_t attr, short color, const void *opts) { > return wchgat(stdscr,n,attr,color,opts); } > > > > > >inline int CUR_mvchgat(int y, int x, int n, > attr_t attr, short color, const void *opts) { > return (wmove(stdscr,y,x) == (-1) ? (-1) : wchgat(stdscr,n,attr,color,opts)); } > > > > > >inline int CUR_mvwchgat(WINDOW *win, int y, int x, int n, > attr_t attr, short color, const void *opts) { > return (wmove(win,y,x) == (-1) ? (-1) : wchgat(win,n,attr,color,opts)); } > > > > > >inline int CUR_wattrset(WINDOW *win, int att) { return ((win)->_attrs = (att)); } ># 495 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" >inline int CUR_mvwaddch(WINDOW *win, int y, int x, const chtype ch) >{ return (wmove(win,y,x) == (-1) ? (-1) : waddch(win,ch)); } > > > > > >inline int CUR_mvwaddchnstr(WINDOW *win, int y, int x, chtype *str, int n) >{ return (wmove(win,y,x) == (-1) ? (-1) : waddchnstr(win,str,n)); } > > > > > >inline int CUR_mvwaddchstr(WINDOW *win, int y, int x, chtype *str) >{ return (wmove(win,y,x) == (-1) ? (-1) : waddchnstr(win,str,-1)); } > > > > > >inline int CUR_addnstr(const char *str, int n) >{ return waddnstr(stdscr,str,n); } > > > > > >inline int CUR_mvwaddnstr(WINDOW *win, int y, int x, const char *str, int n) >{ return (wmove(win,y,x) == (-1) ? (-1) : waddnstr(win,str,n)); } > > > > > >inline int CUR_mvwaddstr(WINDOW *win, int y, int x, const char * str) >{ return (wmove(win,y,x) == (-1) ? (-1) : waddnstr(win,str,-1)); } > > > > > >inline int CUR_mvwdelch(WINDOW *win, int y, int x) >{ return (wmove(win,y,x) == (-1) ? (-1) : wdelch(win)); } > > > > > >inline int CUR_mvwgetch(WINDOW *win, int y, int x) { return (wmove(win,y,x) == (-1) ? (-1) : wgetch(win));} > > > > > >inline int CUR_mvwgetstr(WINDOW *win, int y, int x, char *str) >{return (wmove(win,y,x) == (-1) ? (-1) : wgetnstr(win, str, -1));} > > > > > >inline int CUR_mvwgetnstr(WINDOW *win, int y, int x, char *str, int n) >{return (wmove(win,y,x) == (-1) ? (-1) : wgetnstr(win,str,n));} > > > > > >inline chtype CUR_mvwinch(WINDOW *win, int y, int x) { > return (wmove(win,y,x) == (-1) ? static_cast<chtype>((-1)) : winch(win));} > > > > > >inline int CUR_mvwinsch(WINDOW *win, int y, int x, chtype c) >{ return (wmove(win,y,x) == (-1) ? (-1) : winsch(win,c)); } > > > > > >inline int CUR_mvaddch(int y, int x, chtype ch) >{ return CUR_mvwaddch(stdscr,y,x,ch); } > > > > > >inline int CUR_mvaddnstr(int y, int x, const char *str, int n) >{ return CUR_mvwaddnstr(stdscr,y,x,str,n); } > > > > > >inline int CUR_mvaddstr(int y, int x, const char * str) >{ return CUR_mvwaddstr(stdscr,y,x,str); } > > > > > >inline int CUR_mvdelch(int y, int x) { return CUR_mvwdelch(stdscr,y,x);} > > > > > >inline int CUR_mvgetch(int y, int x) { return CUR_mvwgetch(stdscr,y,x);} > > > > > >inline int CUR_mvgetstr(int y, int x, char *str) {return CUR_mvwgetstr(stdscr,y,x,str);} > > > > > >inline int CUR_mvgetnstr(int y, int x, char *str, int n) { > return CUR_mvwgetnstr(stdscr,y,x,str,n);} > > > > > >inline chtype CUR_mvinch(int y, int x) { return CUR_mvwinch(stdscr,y,x);} > > > > > >inline int CUR_mvinsch(int y, int x, chtype c) >{ return CUR_mvwinsch(stdscr,y,x,c); } ># 643 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" >inline int CUR_fixterm(void) { return reset_prog_mode(); } > > > > > >inline int CUR_resetterm(void) { return reset_shell_mode(); } > > > > > >inline int CUR_saveterm(void) { return def_prog_mode(); } > > > > > >inline int CUR_crmode(void) { return cbreak(); } > > > > > >inline int CUR_nocrmode(void) { return nocbreak(); } > > > > > >inline chtype CUR_getbkgd(const WINDOW *win) { return ((win)->_bkgd); } > > > > > >inline int CUR_bkgd(chtype ch) { return wbkgd(stdscr,ch); } > > > > > >inline void CUR_bkgdset(chtype ch) { wbkgdset(stdscr,ch); } ># 696 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" >extern "C" int _nc_ripoffline(int, int (*init)(WINDOW*, int)); >extern "C" int _nc_xx_ripoff_init(WINDOW *, int); >extern "C" int _nc_has_mouse(void); > >class NCursesWindow >{ > friend class NCursesMenu; > friend class NCursesForm; > >private: > static bool b_initialized; > static void initialize(); > friend int _nc_xx_ripoff_init(WINDOW *, int); > > void init(); > > short getcolor(int getback) const; > > static int setpalette(short fore, short back, short pair); > static int colorInitialized; > > > > NCursesWindow(WINDOW* win, int ncols); > >protected: > virtual void err_handler(const char *) const throw(NCursesException); > > > static long count; > > > > > WINDOW* w; > > bool alloced; > > NCursesWindow* par; > NCursesWindow* subwins; > NCursesWindow* sib; > > void kill_subwindows(); > > > > > NCursesWindow(); > >public: > NCursesWindow(WINDOW* &window); > > NCursesWindow(int nlines, > int ncols, > int begin_y, > int begin_x); > > NCursesWindow(NCursesWindow& par, > int nlines, > int ncols, > int begin_y, > int begin_x, > char absrel = 'a'); > > > NCursesWindow(NCursesWindow& par, > bool do_box = 1); > > > > > NCursesWindow& operator=(const NCursesWindow& rhs) > { > if (this != &rhs) > *this = rhs; > return *this; > } > > NCursesWindow(const NCursesWindow& rhs) > : w(rhs.w), alloced(rhs.alloced), par(rhs.par), subwins(rhs.subwins), sib(rhs.sib) > { > } > > virtual ~NCursesWindow(); > > NCursesWindow Clone(); > > > > static void useColors(void); > > > static int ripoffline(int ripoff_lines, > int (*init)(NCursesWindow& win)); ># 802 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesw.h" > int lines() const { initialize(); return LINES; } > > > int cols() const { initialize(); return COLS; } > > > int tabsize() const { initialize(); return TABSIZE; } > > > static int NumberOfColors(); > > > int colors() const { return NumberOfColors(); } > > > > > > int height() const { return maxy() + 1; } > > > int width() const { return maxx() + 1; } > > > int begx() const { return w->_begx; } > > > int begy() const { return w->_begy; } > > > int maxx() const { return w->_maxx; } > > > int maxy() const { return w->_maxy; } > > > short getcolor() const; > > > short foreground() const { return getcolor(0); } > > > short background() const { return getcolor(1); } > > > int setpalette(short fore, short back); > > > int setcolor(short pair); > > > > > > virtual int mvwin(int begin_y, int begin_x) { > return ::mvwin(w, begin_y, begin_x); } > > > > > > > int move(int y, int x) { return ::wmove(w, y, x); } > > > void CUR_getyx(int& y, int& x) const { ::CUR_getyx(w, y, x); } > > > int mvcur(int oldrow, int oldcol, int newrow, int newcol) const { > return ::mvcur(oldrow, oldcol, newrow, newcol); } > > > > > > int CUR_getch() { return ::wgetch(w); } > > > int CUR_getch(int y, int x) { return ::CUR_mvwgetch(w, y, x); } > > > int CUR_getstr(char* str, int n=-1) { > return ::wgetnstr(w, str, n); } > > > > > int CUR_getstr(int y, int x, char* str, int n=-1) { > return ::CUR_mvwgetnstr(w, y, x, str, n); } > > > > int CUR_instr(char *s, int n=-1) { return ::winnstr(w, s, n); } > > > > > int CUR_instr(int y, int x, char *s, int n=-1) { > return ::CUR_mvwinnstr(w, y, x, s, n); } > > > > int scanw(const char* fmt, ...) > > > __attribute__ ((format (scanf, 2, 3))); > > > > > int scanw(int y, int x, const char* fmt, ...) > > > > __attribute__ ((format (scanf, 4, 5))); > > > > > > > > int CUR_addch(const chtype ch) { return ::waddch(w, ch); } > > > int CUR_addch(int y, int x, const chtype ch) { > return ::CUR_mvwaddch(w, y, x, ch); } > > > > int CUR_echochar(const chtype ch) { return ::wechochar(w, ch); } > > > int CUR_addstr(const char* str, int n=-1) { > return ::waddnstr(w, str, n); } > > > > int CUR_addstr(int y, int x, const char * str, int n=-1) { > return ::CUR_mvwaddnstr(w, y, x, str, n); } > > > > int printw(const char* fmt, ...) > > > __attribute__ ((format (printf, 2, 3))); > > > > > int printw(int y, int x, const char * fmt, ...) > > > __attribute__ ((format (printf, 4, 5))); > > > > > chtype CUR_inch() const { return ::winch(w); } > > > chtype CUR_inch(int y, int x) { return ::CUR_mvwinch(w, y, x); } > > > > int CUR_insch(chtype ch) { return ::winsch(w, ch); } > > > > int CUR_insch(int y, int x, chtype ch) { > return ::CUR_mvwinsch(w, y, x, ch); } > > > > int CUR_insertln() { return ::winsdelln(w, 1); } > > > int CUR_insdelln(int n=1) { return ::winsdelln(w, n); } > > > > int CUR_insstr(const char *s, int n=-1) { > return ::winsnstr(w, s, n); } > > > > > int CUR_insstr(int y, int x, const char *s, int n=-1) { > return ::CUR_mvwinsnstr(w, y, x, s, n); } > > > > int CUR_attron (chtype at) { return ::wattr_on(w, static_cast<attr_t>(at), __null); } > > > int CUR_attroff(chtype at) { return ::CUR_wattroff(w, static_cast<int>(at)); } > > > int CUR_attrset(chtype at) { return ::CUR_wattrset(w, static_cast<int>(at)); } > > > int CUR_color_set(short color_pair_number, void* opts=__null) { > return ::wcolor_set(w, color_pair_number, opts); } > > > int CUR_chgat(int n, attr_t attr, short color, const void *opts=__null) { > return ::wchgat(w, n, attr, color, opts); } > > > > > int CUR_chgat(int y, int x, > int n, attr_t attr, short color, const void *opts=__null) { > return ::CUR_mvwchgat(w, y, x, n, attr, color, opts); } > > > > > > > chtype CUR_getbkgd() const { return ::CUR_getbkgd(w); } > > > int CUR_bkgd(const chtype ch) { return ::wbkgd(w, ch); } > > > void CUR_bkgdset(chtype ch) { ::wbkgdset(w, ch); } > > > > > > int box(chtype vert=0, chtype hor=0) { > return ::wborder(w, vert, vert, hor, hor, 0, 0, 0, 0); } > > > > > int CUR_border(chtype left=0, chtype right=0, > chtype top =0, chtype bottom=0, > chtype top_left =0, chtype top_right=0, > chtype bottom_left =0, chtype bottom_right=0) { > return ::wborder(w, left, right, top, bottom, top_left, top_right, > bottom_left, bottom_right); } > > > > > > > > int CUR_hline(int len, chtype ch=0) { return ::whline(w, ch, len); } > > > > int CUR_hline(int y, int x, int len, chtype ch=0) { > return ::CUR_mvwhline(w, y, x, ch, len); } > > > int CUR_vline(int len, chtype ch=0) { return ::wvline(w, ch, len); } > > > > int CUR_vline(int y, int x, int len, chtype ch=0) { > return ::CUR_mvwvline(w, y, x, ch, len); } > > > > > > int erase() { return ::werase(w); } > > > int clear() { return ::wclear(w); } > > > int clearok(bool bf) { return ::clearok(w, bf); } > > > > int CUR_clrtobot() { return ::wclrtobot(w); } > > > int CUR_clrtoeol() { return ::wclrtoeol(w); } > > > int CUR_delch() { return ::wdelch(w); } > > > int CUR_delch(int y, int x) { return ::CUR_mvwdelch(w, y, x); } > > > > int CUR_deleteln() { return ::winsdelln(w, -1); } > > > > > > int CUR_scroll(int amount=1) { return ::wscrl(w, amount); } > > > > int scrollok(bool bf) { return ::scrollok(w, bf); } > > > > > int CUR_setscrreg(int from, int to) { > return ::wsetscrreg(w, from, to); } > > > int idlok(bool bf) { return ::idlok(w, bf); } > > > > > void idcok(bool bf) { ::idcok(w, bf); } > > > > int CUR_touchwin() { return ::wtouchln(w, 0, height(), 1); } > > > int CUR_untouchwin() { return ::wtouchln(w, 0, height(), 0); } > > > int touchln(int s, int cnt, bool changed=1) { > return ::wtouchln(w, s, cnt, static_cast<int>(changed ? 1 : 0)); } > > > > bool is_linetouched(int line) const { > return (::is_linetouched(w, line) ? 1:0); } > > > bool is_wintouched() const { > return (::is_wintouched(w) ? 1:0); } > > > int leaveok(bool bf) { return ::leaveok(w, bf); } > > > > int redrawln(int from, int n) { return ::wredrawln(w, from, n); } > > > int CUR_redrawwin() { return ::wredrawln(w, 0, height()); } > > > int doupdate() { return ::doupdate(); } > > > void syncdown() { ::wsyncdown(w); } > > > void syncup() { ::wsyncup(w); } > > > void cursyncup() { ::wcursyncup(w); } > > > int syncok(bool bf) { return ::syncok(w, bf); } > > > > > > > void immedok(bool bf) { ::immedok(w, bf); } > > > > int keypad(bool bf) { return ::keypad(w, bf); } > > > int meta(bool bf) { return ::meta(w, bf); } > > > > int CUR_standout() { return ::CUR_wstandout(w); } > > > int CUR_standend() { return ::CUR_wstandend(w); } > > > > > > > virtual int refresh() { return ::wrefresh(w); } > > > > virtual int noutrefresh() { return ::wnoutrefresh(w); } > > > > > > > int overlay(NCursesWindow& win) { > return ::overlay(w, win.w); } > > > int overwrite(NCursesWindow& win) { > return ::overwrite(w, win.w); } > > > int copywin(NCursesWindow& win, > int sminrow, int smincol, > int dminrow, int dmincol, > int dmaxrow, int dmaxcol, bool overlaywin=1) { > return ::copywin(w, win.w, sminrow, smincol, dminrow, dmincol, > dmaxrow, dmaxcol, static_cast<int>(overlaywin ? 1 : 0)); } > > > > > > > > bool has_mouse() const; > > > > > > NCursesWindow* child() { return subwins; } > > > NCursesWindow* sibling() { return sib; } > > > NCursesWindow* parent() { return par; } > > > bool isDescendant(NCursesWindow& win); > >}; > > > > >class NCursesColorWindow : public NCursesWindow >{ >public: > NCursesColorWindow(WINDOW* &window) > : NCursesWindow(window) { > useColors(); } > > NCursesColorWindow(int nlines, > int ncols, > int begin_y, > int begin_x) > : NCursesWindow(nlines, ncols, begin_y, begin_x) { > useColors(); } > > NCursesColorWindow(NCursesWindow& parentWin, > int nlines, > int ncols, > int begin_y, > int begin_x, > char absrel = 'a') > : NCursesWindow(parentWin, > nlines, ncols, > begin_y, begin_x, > absrel ) { > useColors(); } >}; > > > > > typedef enum { > REQ_PAD_REFRESH = 0777 + 1, > REQ_PAD_UP, > REQ_PAD_DOWN, > REQ_PAD_LEFT, > REQ_PAD_RIGHT, > REQ_PAD_EXIT > } Pad_Request; > > const Pad_Request PAD_LOW = REQ_PAD_REFRESH; > const Pad_Request PAD_HIGH = REQ_PAD_EXIT; > > > > > >class NCursesPad : public NCursesWindow >{ >private: > NCursesWindow* viewWin; > NCursesWindow* viewSub; > > int h_gridsize, v_gridsize; > >protected: > int min_row, min_col; > > NCursesWindow* Win(void) const { > > return (viewSub?viewSub:(viewWin?viewWin:0)); > } > > NCursesWindow* getWindow(void) const { > return viewWin; > } > > NCursesWindow* getSubWindow(void) const { > return viewSub; > } > > virtual int driver (int key); > > > virtual void OnUnknownOperation(int pad_req) { > ::beep(); > } > > > virtual void OnNavigationError(int pad_req) { > ::beep(); > } > > > virtual void OnOperation(int pad_req) { > }; > > > >public: > NCursesPad(int nlines, int ncols); > > > NCursesPad& operator=(const NCursesPad& rhs) > { > if (this != &rhs) { > *this = rhs; > NCursesWindow::operator=(rhs); > } > return *this; > } > > NCursesPad(const NCursesPad& rhs) > : NCursesWindow(rhs), > viewWin(rhs.viewWin), > viewSub(rhs.viewSub), > h_gridsize(rhs.h_gridsize), > v_gridsize(rhs.v_gridsize), > min_row(rhs.min_row), > min_col(rhs.min_col) > { > } > > virtual ~NCursesPad() {} > > int CUR_echochar(const chtype ch) { return ::pechochar(w, ch); } > > > > int refresh(); > > > > int refresh(int pminrow, int pmincol, > int sminrow, int smincol, > int smaxrow, int smaxcol) { > return ::prefresh(w, pminrow, pmincol, > sminrow, smincol, smaxrow, smaxcol); > } > > > > > int noutrefresh(); > > > > int noutrefresh(int pminrow, int pmincol, > int sminrow, int smincol, > int smaxrow, int smaxcol) { > return ::pnoutrefresh(w, pminrow, pmincol, > sminrow, smincol, smaxrow, smaxcol); > } > > > virtual void setWindow(NCursesWindow& view, int v_grid = 1, int h_grid = 1); > > > virtual void setSubWindow(NCursesWindow& sub); > > > > > virtual void operator() (void); > >}; > > > > >class NCursesFramedPad : public NCursesPad >{ >protected: > virtual void OnOperation(int pad_req); > >public: > NCursesFramedPad(NCursesWindow& win, int nlines, int ncols, > int v_grid = 1, int h_grid = 1) > : NCursesPad(nlines, ncols) { > NCursesPad::setWindow(win, v_grid, h_grid); > NCursesPad::setSubWindow(*(new NCursesWindow(win))); > } > > > virtual ~NCursesFramedPad() { > delete getSubWindow(); > } > > void setWindow(NCursesWindow& view, int v_grid = 1, int h_grid = 1) { > err_handler("Operation not allowed"); > } > > > void setSubWindow(NCursesWindow& sub) { > err_handler("Operation not allowed"); > } > > >}; ># 40 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesp.h" 2 > >extern "C" { ># 1 "../include/panel.h" 1 ># 43 "../include/panel.h" >typedef struct panel >{ > WINDOW *win; > struct panel *below; > struct panel *above; > const void *user; >} PANEL; > > >extern "C" { > > >extern WINDOW* panel_window (const PANEL *); >extern void update_panels (void); >extern int hide_panel (PANEL *); >extern int show_panel (PANEL *); >extern int del_panel (PANEL *); >extern int top_panel (PANEL *); >extern int bottom_panel (PANEL *); >extern PANEL* new_panel (WINDOW *); >extern PANEL* panel_above (const PANEL *); >extern PANEL* panel_below (const PANEL *); >extern int set_panel_userptr (PANEL *, const void *); >extern const void* panel_userptr (const PANEL *); >extern int move_panel (PANEL *, int, int); >extern int replace_panel (PANEL *,WINDOW *); >extern int panel_hidden (const PANEL *); > > >} ># 43 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesp.h" 2 >} > >class NCursesPanel > : public NCursesWindow >{ >protected: > PANEL *p; > static NCursesPanel *dummy; > >private: > > > typedef struct { > void* m_user; > const NCursesPanel* m_back; > const PANEL* m_owner; > } UserHook; > > inline UserHook *UserPointer() > { > UserHook* uptr = reinterpret_cast<UserHook*>( > const_cast<void *>(::panel_userptr (p))); > return uptr; > } > > void init(); > >protected: > void set_user(void *user) > { > UserHook* uptr = UserPointer(); > (static_cast<void> (0)); > uptr->m_user = user; > } > > > void *get_user() > { > UserHook* uptr = UserPointer(); > (static_cast<void> (0)); > return uptr->m_user; > } > > void OnError (int err) const throw(NCursesPanelException) > { > if (err==(-1)) > THROW(new NCursesPanelException (this, err)); > } > > > > > virtual int getKey(void); > >public: > NCursesPanel(int nlines, > int ncols, > int begin_y = 0, > int begin_x = 0) > : NCursesWindow(nlines,ncols,begin_y,begin_x), p(0) > { > init(); > } > > > NCursesPanel() > : NCursesWindow(::stdscr), p(0) > { > init(); > } > > > > NCursesPanel& operator=(const NCursesPanel& rhs) > { > if (this != &rhs) { > *this = rhs; > NCursesWindow::operator=(rhs); > } > return *this; > } > > NCursesPanel(const NCursesPanel& rhs) > : NCursesWindow(rhs), > p(rhs.p) > { > } > > virtual ~NCursesPanel(); > > > inline void hide() > { > OnError (::hide_panel(p)); > } > > > inline void show() > { > OnError (::show_panel(p)); > } > > > inline void top() > { > OnError (::top_panel(p)); > } > > > inline void bottom() > { > OnError (::bottom_panel(p)); > } > > > > > virtual int mvwin(int y, int x) > { > OnError(::move_panel(p, y, x)); > return (0); > } > > inline bool hidden() const > { > return (::panel_hidden (p) ? 1 : 0); > } ># 179 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesp.h" > inline NCursesPanel& above() const > { > OnError((-1)); > return *dummy; > } > > inline NCursesPanel& below() const > { > OnError((-1)); > return *dummy; > } > > > > virtual int refresh(); > > > > virtual int noutrefresh(); > > > static void redraw(); > > > > virtual void frame(const char* title=__null, > const char* btitle=__null); > > > > virtual void boldframe(const char* title=__null, > const char* btitle=__null); > > > virtual void label(const char* topLabel, > const char* bottomLabel); > > > virtual void centertext(int row,const char* label); > >}; > > > > > >template<class T> class NCursesUserPanel : public NCursesPanel >{ >public: > NCursesUserPanel (int nlines, > int ncols, > int begin_y = 0, > int begin_x = 0, > const T* p_UserData = static_cast<T*>(0)) > : NCursesPanel (nlines, ncols, begin_y, begin_x) > { > if (p) > set_user (const_cast<void *>(p_UserData)); > }; > > > > NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel() > { > if (p) > set_user(const_cast<void *>(p_UserData)); > }; > > > > virtual ~NCursesUserPanel() {}; > > T* UserData (void) const > { > return reinterpret_cast<T*>(get_user ()); > }; > > > virtual void setUserData (const T* p_UserData) > { > if (p) > set_user (const_cast<void *>(p_UserData)); > } > >}; ># 40 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesf.h" 2 > > > > > >extern "C" { ># 1 "../include/form.h" 1 ># 42 "../include/form.h" > extern "C" { > > > >typedef void *FIELD_CELL; > > > > > > >typedef int Form_Options; >typedef int Field_Options; > > > > > >typedef struct { > short pmin; > short pmax; > short smin; > short smax; >} _PAGE; > > > > > >typedef struct fieldnode { > unsigned short status; > short rows; > short cols; > short frow; > short fcol; > int drows; > int dcols; > int maxgrow; > int nrow; > short nbuf; > short just; > short page; > short index; > int pad; > chtype fore; > chtype back; > Field_Options opts; > struct fieldnode * snext; > struct fieldnode * sprev; > struct fieldnode * link; > struct formnode * form; > struct typenode * type; > void * arg; > FIELD_CELL * buf; > void * usrptr; ># 105 "../include/form.h" > >} FIELD; > > > > > >typedef struct typenode { > unsigned short status; > long ref; > struct typenode * left; > struct typenode * right; > > void* (*makearg)(va_list *); > void* (*copyarg)(const void *); > void (*freearg)(void *); > > bool (*fcheck)(FIELD *,const void *); > bool (*ccheck)(int,const void *); > > bool (*next)(FIELD *,const void *); > bool (*prev)(FIELD *,const void *); > >} FIELDTYPE; > > > > > >typedef struct formnode { > unsigned short status; > short rows; > short cols; > int currow; > int curcol; > int toprow; > int begincol; > short maxfield; > short maxpage; > short curpage; > Form_Options opts; > WINDOW * win; > WINDOW * sub; > WINDOW * w; > FIELD ** field; > FIELD * current; > _PAGE * page; > void * usrptr; > > void (*forminit)(struct formnode *); > void (*formterm)(struct formnode *); > void (*fieldinit)(struct formnode *); > void (*fieldterm)(struct formnode *); > >} FORM; > >typedef void (*Form_Hook)(FORM *); ># 268 "../include/form.h" >extern FIELDTYPE * TYPE_ALPHA; >extern FIELDTYPE * TYPE_ALNUM; >extern FIELDTYPE * TYPE_ENUM; >extern FIELDTYPE * TYPE_INTEGER; >extern FIELDTYPE * TYPE_NUMERIC; >extern FIELDTYPE * TYPE_REGEXP; > > > > > >extern FIELDTYPE * TYPE_IPV4; > > > > >extern FORM * _nc_Default_Form; >extern FIELD * _nc_Default_Field; > > > > > >extern FIELDTYPE * new_fieldtype ( > bool (* const field_check)(FIELD *,const void *), > bool (* const char_check)(int,const void *)); >extern FIELDTYPE * link_fieldtype( > FIELDTYPE *, FIELDTYPE *); > >extern int free_fieldtype (FIELDTYPE *); >extern int set_fieldtype_arg (FIELDTYPE *, > void * (* const make_arg)(va_list *), > void * (* const copy_arg)(const void *), > void (* const free_arg)(void *)); >extern int set_fieldtype_choice (FIELDTYPE *, > bool (* const next_choice)(FIELD *,const void *), > bool (* const prev_choice)(FIELD *,const void *)); > > > > >extern FIELD * new_field (int,int,int,int,int,int); >extern FIELD * dup_field (FIELD *,int,int); >extern FIELD * link_field (FIELD *,int,int); > >extern int free_field (FIELD *); >extern int field_info (const FIELD *,int *,int *,int *,int *,int *,int *); >extern int dynamic_field_info (const FIELD *,int *,int *,int *); >extern int set_max_field ( FIELD *,int); >extern int move_field (FIELD *,int,int); >extern int set_field_type (FIELD *,FIELDTYPE *,...); >extern int set_new_page (FIELD *,bool); >extern int set_field_just (FIELD *,int); >extern int field_just (const FIELD *); >extern int set_field_fore (FIELD *,chtype); >extern int set_field_back (FIELD *,chtype); >extern int set_field_pad (FIELD *,int); >extern int field_pad (const FIELD *); >extern int set_field_buffer (FIELD *,int,const char *); >extern int set_field_status (FIELD *,bool); >extern int set_field_userptr (FIELD *, void *); >extern int set_field_opts (FIELD *,Field_Options); >extern int field_opts_on (FIELD *,Field_Options); >extern int field_opts_off (FIELD *,Field_Options); > >extern chtype field_fore (const FIELD *); >extern chtype field_back (const FIELD *); > >extern bool new_page (const FIELD *); >extern bool field_status (const FIELD *); > >extern void * field_arg (const FIELD *); > >extern void * field_userptr (const FIELD *); > >extern FIELDTYPE * field_type (const FIELD *); > >extern char * field_buffer (const FIELD *,int); > >extern Field_Options field_opts (const FIELD *); > > > > > >extern FORM * new_form (FIELD **); > >extern FIELD ** form_fields (const FORM *); >extern FIELD * current_field (const FORM *); > >extern WINDOW * form_win (const FORM *); >extern WINDOW * form_sub (const FORM *); > >extern Form_Hook form_init (const FORM *); >extern Form_Hook form_term (const FORM *); >extern Form_Hook field_init (const FORM *); >extern Form_Hook field_term (const FORM *); > >extern int free_form (FORM *); >extern int set_form_fields (FORM *,FIELD **); >extern int field_count (const FORM *); >extern int set_form_win (FORM *,WINDOW *); >extern int set_form_sub (FORM *,WINDOW *); >extern int set_current_field (FORM *,FIELD *); >extern int field_index (const FIELD *); >extern int set_form_page (FORM *,int); >extern int form_page (const FORM *); >extern int scale_form (const FORM *,int *,int *); >extern int set_form_init (FORM *,Form_Hook); >extern int set_form_term (FORM *,Form_Hook); >extern int set_field_init (FORM *,Form_Hook); >extern int set_field_term (FORM *,Form_Hook); >extern int post_form (FORM *); >extern int unpost_form (FORM *); >extern int pos_form_cursor (FORM *); >extern int form_driver (FORM *,int); >extern int set_form_userptr (FORM *,void *); >extern int set_form_opts (FORM *,Form_Options); >extern int form_opts_on (FORM *,Form_Options); >extern int form_opts_off (FORM *,Form_Options); >extern int form_request_by_name (const char *); > >extern const char * form_request_name (int); > >extern void * form_userptr (const FORM *); > >extern Form_Options form_opts (const FORM *); > >extern bool data_ahead (const FORM *); >extern bool data_behind (const FORM *); > > > } ># 47 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesf.h" 2 >} > > > > > >class NCursesFormField; > > > >class NCursesFieldType >{ > friend class NCursesFormField; > >protected: > FIELDTYPE* fieldtype; > > inline void OnError(int err) const throw(NCursesFormException) { > if (err!=(0)) > THROW(new NCursesFormException (err)); > } > > NCursesFieldType(FIELDTYPE *f) : fieldtype(f) { > } > > virtual ~NCursesFieldType() {} > > > virtual void set(NCursesFormField& f) = 0; > >public: > NCursesFieldType() > : fieldtype(static_cast<FIELDTYPE*>(0)) > { > } > > NCursesFieldType& operator=(const NCursesFieldType& rhs) > { > if (this != &rhs) { > *this = rhs; > } > return *this; > } > > NCursesFieldType(const NCursesFieldType& rhs) > : fieldtype(rhs.fieldtype) > { > } > >}; > > > > > > >class NCursesFormField >{ > friend class NCursesForm; > >protected: > FIELD *field; > NCursesFieldType* ftype; > > > inline void OnError (int err) const throw(NCursesFormException) { > if (err != (0)) > THROW(new NCursesFormException (err)); > } > >public: > > NCursesFormField() > : field(static_cast<FIELD*>(0)), > ftype(static_cast<NCursesFieldType*>(0)) > { > } > > > NCursesFormField (int rows, > int ncols, > int first_row = 0, > int first_col = 0, > int offscreen_rows = 0, > int additional_buffers = 0) > : field(0), > ftype(static_cast<NCursesFieldType*>(0)) > { > field = ::new_field(rows, ncols, first_row, first_col, > offscreen_rows, additional_buffers); > if (!field) > OnError((*__errno_location ())); > } > > NCursesFormField& operator=(const NCursesFormField& rhs) > { > if (this != &rhs) { > *this = rhs; > } > return *this; > } > > NCursesFormField(const NCursesFormField& rhs) > : field(rhs.field), ftype(rhs.ftype) > { > } > > virtual ~NCursesFormField (); > > > inline NCursesFormField* dup(int first_row, int first_col) > { > NCursesFormField* f = new NCursesFormField(); > if (!f) > OnError((-1)); > else { > f->ftype = ftype; > f->field = ::dup_field(field,first_row,first_col); > if (!f->field) > OnError((*__errno_location ())); > } > return f; > } > > > inline NCursesFormField* link(int first_row, int first_col) { > NCursesFormField* f = new NCursesFormField(); > if (!f) > OnError((-1)); > else { > f->ftype = ftype; > f->field = ::link_field(field,first_row,first_col); > if (!f->field) > OnError((*__errno_location ())); > } > return f; > } > > > inline FIELD* get_field() const { > return field; > } > > > inline void info(int& rows, int& ncols, > int& first_row, int& first_col, > int& offscreen_rows, int& additional_buffers) const { > OnError(::field_info(field, &rows, &ncols, > &first_row, &first_col, > &offscreen_rows, &additional_buffers)); > } > > > inline void dynamic_info(int& dynamic_rows, int& dynamic_cols, > int& max_growth) const { > OnError(::dynamic_field_info(field, &dynamic_rows, &dynamic_cols, > &max_growth)); > } > > > > inline void set_maximum_growth(int growth = 0) { > OnError(::set_max_field(field,growth)); > } > > > inline void move(int row, int col) { > OnError(::move_field(field,row,col)); > } > > > inline void new_page(bool pageFlag = 0) { > OnError(::set_new_page(field,pageFlag)); > } > > > inline bool is_new_page() const { > return ::new_page(field); > } > > > inline void set_justification(int just) { > OnError(::set_field_just(field,just)); > } > > > inline int justification() const { > return ::field_just(field); > } > > inline void set_foreground(chtype foreground) { > OnError(::set_field_fore(field,foreground)); > } > > > inline chtype fore() const { > return ::field_fore(field); > } > > > inline void set_background(chtype background) { > OnError(::set_field_back(field,background)); > } > > > inline chtype back() const { > return ::field_back(field); > } > > > inline void set_pad_character(int padding) { > OnError(::set_field_pad(field, padding)); > } > > > inline int pad() const { > return ::field_pad(field); > } > > > inline void options_on (Field_Options opts) { > OnError (::field_opts_on (field, opts)); > } > > > inline void options_off (Field_Options opts) { > OnError (::field_opts_off (field, opts)); > } > > > inline Field_Options options () const { > return ::field_opts (field); > } > > > inline void set_options (Field_Options opts) { > OnError (::set_field_opts (field, opts)); > } > > > inline void set_changed(bool changeFlag = 1) { > OnError(::set_field_status(field,changeFlag)); > } > > > inline bool changed() const { > return ::field_status(field); > } > > > > inline int (index)() const { > return ::field_index(field); > } > > > inline void set_value(const char *val, int buffer = 0) { > OnError(::set_field_buffer(field,buffer,val)); > } > > > inline char* value(int buffer = 0) const { > return ::field_buffer(field,buffer); > } > > > inline void set_fieldtype(NCursesFieldType& f) { > ftype = &f; > f.set(*this); > } > > > inline NCursesFieldType* fieldtype() const { > return ftype; > } > >}; > > > > >extern "C" { > void _nc_xx_frm_init(FORM *); > void _nc_xx_frm_term(FORM *); > void _nc_xx_fld_init(FORM *); > void _nc_xx_fld_term(FORM *); >} > > > > > > >class NCursesForm : public NCursesPanel >{ >protected: > FORM* form; > >private: > NCursesWindow* sub; > bool b_sub_owner; > bool b_framed; > bool b_autoDelete; > > NCursesFormField** my_fields; > > > > typedef struct { > void* m_user; > const NCursesForm* m_back; > const FORM* m_owner; > } UserHook; > > > static inline NCursesForm* getHook(const FORM *f) { > UserHook* hook = reinterpret_cast<UserHook*>(::form_userptr(f)); > (static_cast<void> (0)); > return const_cast<NCursesForm*>(hook->m_back); > } > > friend void _nc_xx_frm_init(FORM *); > friend void _nc_xx_frm_term(FORM *); > friend void _nc_xx_fld_init(FORM *); > friend void _nc_xx_fld_term(FORM *); > > > FIELD** mapFields(NCursesFormField* nfields[]); > >protected: > > inline void set_user(void *user) { > UserHook* uptr = reinterpret_cast<UserHook*>(::form_userptr (form)); > (static_cast<void> (0)); > uptr->m_user = user; > } > > inline void *get_user() { > UserHook* uptr = reinterpret_cast<UserHook*>(::form_userptr (form)); > (static_cast<void> (0)); > return uptr->m_user; > } > > void InitForm (NCursesFormField* Fields[], > bool with_frame, > bool autoDeleteFields); > > inline void OnError (int err) const throw(NCursesFormException) { > if (err != (0)) > THROW(new NCursesFormException (err)); > } > > > virtual int driver (int c) ; > > > > NCursesForm( int nlines, > int ncols, > int begin_y = 0, > int begin_x = 0) > : NCursesPanel(nlines, ncols, begin_y, begin_x), > form (static_cast<FORM*>(0)), > sub(0), > b_sub_owner(0), > b_framed(0), > b_autoDelete(0), > my_fields(0) > { > } > >public: > > NCursesForm (NCursesFormField* Fields[], > bool with_frame=0, > bool autoDelete_Fields=0) > : NCursesPanel(), > form(0), > sub(0), > b_sub_owner(0), > b_framed(0), > b_autoDelete(0), > my_fields(0) > { > InitForm(Fields, with_frame, autoDelete_Fields); > } > > > NCursesForm (NCursesFormField* Fields[], > int nlines, > int ncols, > int begin_y, > int begin_x, > bool with_frame=0, > bool autoDelete_Fields=0) > : NCursesPanel(nlines, ncols, begin_y, begin_x), > form(0), > sub(0), > b_sub_owner(0), > b_framed(0), > b_autoDelete(0), > my_fields(0) > { > InitForm(Fields, with_frame, autoDelete_Fields); > } > > NCursesForm& operator=(const NCursesForm& rhs) > { > if (this != &rhs) { > *this = rhs; > NCursesPanel::operator=(rhs); > } > return *this; > } > > NCursesForm(const NCursesForm& rhs) > : NCursesPanel(rhs), > form(rhs.form), > sub(rhs.sub), > b_sub_owner(rhs.b_sub_owner), > b_framed(rhs.b_framed), > b_autoDelete(rhs.b_autoDelete), > my_fields(rhs.my_fields) > { > } > > virtual ~NCursesForm(); > > > virtual void setDefaultAttributes(); > > > inline NCursesFormField* current_field() const { > return my_fields[::field_index(::current_field(form))]; > } > > > void setSubWindow(NCursesWindow& sub); > > > inline void setFields(NCursesFormField* Fields[]) { > OnError(::set_form_fields(form,mapFields(Fields))); > } > > > inline void unpost (void) { > OnError (::unpost_form (form)); > } > > > inline void post(bool flag = 1) { > OnError (flag ? ::post_form(form) : ::unpost_form (form)); > } > > > inline void frame(const char *title=__null, const char* btitle=__null) { > if (b_framed) > NCursesPanel::frame(title,btitle); > else > OnError((-1)); > } > > inline void boldframe(const char *title=__null, const char* btitle=__null) { > if (b_framed) > NCursesPanel::boldframe(title,btitle); > else > OnError((-1)); > } > > inline void label(const char *topLabel, const char *bottomLabel) { > if (b_framed) > NCursesPanel::label(topLabel,bottomLabel); > else > OnError((-1)); > } > > > > > > > > virtual void On_Form_Init(); > > > > virtual void On_Form_Termination(); > > > virtual void On_Field_Init(NCursesFormField& field); > > > virtual void On_Field_Termination(NCursesFormField& field); > > > void scale(int& rows, int& ncols) const { > OnError(::scale_form(form,&rows,&ncols)); > } > > > int count() const { > return ::field_count(form); > } > > > void set_page(int pageNum) { > OnError(::set_form_page(form, pageNum)); > } > > > int page() const { > return ::form_page(form); > } > > > inline void options_on (Form_Options opts) { > OnError (::form_opts_on (form, opts)); > } > > > inline void options_off (Form_Options opts) { > OnError (::form_opts_off (form, opts)); > } > > > inline Form_Options options () const { > return ::form_opts (form); > } > > > inline void set_options (Form_Options opts) { > OnError (::set_form_opts (form, opts)); > } > > > inline bool data_ahead() const { > return ::data_ahead(form); > } > > > inline bool data_behind() const { > return ::data_behind(form); > } > > > inline void position_cursor () { > OnError (::pos_form_cursor (form)); > } > > inline void set_current(NCursesFormField& F) { > OnError (::set_current_field(form, F.field)); > } > > > > > > virtual int virtualize(int c); > > > inline NCursesFormField* operator[](int i) const { > if ( (i < 0) || (i >= ::field_count (form)) ) > OnError ((-2)); > return my_fields[i]; > } > > > > virtual NCursesFormField* operator()(void); > > > virtual void On_Request_Denied(int c) const; > virtual void On_Invalid_Field(int c) const; > virtual void On_Unknown_Command(int c) const; > >}; ># 631 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesf.h" >template<class T> class NCursesUserField : public NCursesFormField >{ >public: > NCursesUserField (int rows, > int ncols, > int first_row = 0, > int first_col = 0, > const T* p_UserData = static_cast<T*>(0), > int offscreen_rows = 0, > int additional_buffers = 0) > : NCursesFormField (rows, ncols, > first_row, first_col, > offscreen_rows, additional_buffers) { > if (field) > OnError(::set_field_userptr(field, static_cast<void *>(p_UserData))); > } > > virtual ~NCursesUserField() {}; > > inline const T* UserData (void) const { > return reinterpret_cast<const T*>(::field_userptr (field)); > } > > inline virtual void setUserData(const T* p_UserData) { > if (field) > OnError (::set_field_userptr (field, static_cast<void *>(p_UserData))); > } >}; > > > > > >template<class T> class NCursesUserForm : public NCursesForm >{ >protected: > > > NCursesUserForm( int nlines, > int ncols, > int begin_y = 0, > int begin_x = 0, > const T* p_UserData = static_cast<T*>(0)) > : NCursesForm(nlines,ncols,begin_y,begin_x) { > if (form) > set_user (const_cast<void *>(p_UserData)); > } > >public: > NCursesUserForm (NCursesFormField Fields[], > const T* p_UserData = static_cast<T*>(0), > bool with_frame=0, > bool autoDelete_Fields=0) > : NCursesForm (Fields, with_frame, autoDelete_Fields) { > if (form) > set_user (const_cast<void *>(p_UserData)); > }; > > NCursesUserForm (NCursesFormField Fields[], > int nlines, > int ncols, > int begin_y = 0, > int begin_x = 0, > const T* p_UserData = static_cast<T*>(0), > bool with_frame=0, > bool autoDelete_Fields=0) > : NCursesForm (Fields, nlines, ncols, begin_y, begin_x, > with_frame, autoDelete_Fields) { > if (form) > set_user (const_cast<void *>(p_UserData)); > }; > > virtual ~NCursesUserForm() { > }; > > inline T* UserData (void) const { > return reinterpret_cast<T*>(get_user ()); > }; > > inline virtual void setUserData (const T* p_UserData) { > if (form) > set_user (const_cast<void *>(p_UserData)); > } > >}; > > > > > >class Alpha_Field : public NCursesFieldType >{ >private: > int min_field_width; > > void set(NCursesFormField& f) { > OnError(::set_field_type(f.get_field(),fieldtype,min_field_width)); > } > >public: > Alpha_Field(int width) > : NCursesFieldType(TYPE_ALPHA), > min_field_width(width) { > } >}; > >class Alphanumeric_Field : public NCursesFieldType >{ >private: > int min_field_width; > > void set(NCursesFormField& f) { > OnError(::set_field_type(f.get_field(),fieldtype,min_field_width)); > } > >public: > Alphanumeric_Field(int width) > : NCursesFieldType(TYPE_ALNUM), > min_field_width(width) { > } >}; > >class Integer_Field : public NCursesFieldType >{ >private: > int precision; > long lower_limit, upper_limit; > > void set(NCursesFormField& f) { > OnError(::set_field_type(f.get_field(),fieldtype, > precision,lower_limit,upper_limit)); > } > >public: > Integer_Field(int prec, long low=0L, long high=0L) > : NCursesFieldType(TYPE_INTEGER), > precision(prec), lower_limit(low), upper_limit(high) { > } >}; > >class Numeric_Field : public NCursesFieldType >{ >private: > int precision; > double lower_limit, upper_limit; > > void set(NCursesFormField& f) { > OnError(::set_field_type(f.get_field(),fieldtype, > precision,lower_limit,upper_limit)); > } > >public: > Numeric_Field(int prec, double low=0.0, double high=0.0) > : NCursesFieldType(TYPE_NUMERIC), > precision(prec), lower_limit(low), upper_limit(high) { > } >}; > >class Regular_Expression_Field : public NCursesFieldType >{ >private: > char* regex; > > void set(NCursesFormField& f) { > OnError(::set_field_type(f.get_field(),fieldtype,regex)); > } > > void copy_regex(const char *source) > { > regex = new char[1 + ::strlen(source)]; > (::strcpy)(regex, source); > } > >public: > Regular_Expression_Field(const char *expr) > : NCursesFieldType(TYPE_REGEXP), > regex(__null) > { > copy_regex(expr); > } > > Regular_Expression_Field& operator=(const Regular_Expression_Field& rhs) > { > if (this != &rhs) { > *this = rhs; > copy_regex(rhs.regex); > NCursesFieldType::operator=(rhs); > } > return *this; > } > > Regular_Expression_Field(const Regular_Expression_Field& rhs) > : NCursesFieldType(rhs), > regex(__null) > { > copy_regex(rhs.regex); > } > > ~Regular_Expression_Field() { > delete[] regex; > } >}; > >class Enumeration_Field : public NCursesFieldType >{ >private: > const char** list; > int case_sensitive; > int non_unique_matches; > > void set(NCursesFormField& f) { > OnError(::set_field_type(f.get_field(),fieldtype, > list,case_sensitive,non_unique_matches)); > } >public: > Enumeration_Field(const char* enums[], > bool case_sens=0, > bool non_unique=0) > : NCursesFieldType(TYPE_ENUM), > list(enums), > case_sensitive(case_sens ? -1 : 0), > non_unique_matches(non_unique ? -1 : 0) { > } > > Enumeration_Field& operator=(const Enumeration_Field& rhs) > { > if (this != &rhs) { > *this = rhs; > NCursesFieldType::operator=(rhs); > } > return *this; > } > > Enumeration_Field(const Enumeration_Field& rhs) > : NCursesFieldType(rhs), > list(rhs.list), > case_sensitive(rhs.case_sensitive), > non_unique_matches(rhs.non_unique_matches) > { > } >}; > >class IPV4_Address_Field : public NCursesFieldType >{ >private: > void set(NCursesFormField& f) { > OnError(::set_field_type(f.get_field(),fieldtype)); > } > >public: > IPV4_Address_Field() : NCursesFieldType(TYPE_IPV4) { > } >}; > >extern "C" { > bool _nc_xx_fld_fcheck(FIELD *, const void*); > bool _nc_xx_fld_ccheck(int c, const void *); > void* _nc_xx_fld_makearg(va_list*); >} > > > > > > >class UserDefinedFieldType : public NCursesFieldType >{ > friend class UDF_Init; >private: > > > static FIELDTYPE* generic_fieldtype; > >protected: > > > friend bool _nc_xx_fld_fcheck(FIELD *, const void*); > friend bool _nc_xx_fld_ccheck(int c, const void *); > friend void* _nc_xx_fld_makearg(va_list*); > > void set(NCursesFormField& f) { > OnError(::set_field_type(f.get_field(),fieldtype,&f)); > } > >protected: > > > virtual bool field_check(NCursesFormField& f) = 0; > > > > virtual bool char_check (int c) = 0; > >public: > UserDefinedFieldType() : NCursesFieldType(generic_fieldtype) { > } >}; > >extern "C" { > bool _nc_xx_next_choice(FIELD*, const void *); > bool _nc_xx_prev_choice(FIELD*, const void *); >} > > > > > > >class UserDefinedFieldType_With_Choice : public UserDefinedFieldType >{ > friend class UDF_Init; >private: > > > static FIELDTYPE* generic_fieldtype_with_choice; > > > > friend bool _nc_xx_next_choice(FIELD*, const void *); > friend bool _nc_xx_prev_choice(FIELD*, const void *); > >protected: > > > virtual bool next (NCursesFormField& f) = 0; > > > > virtual bool previous(NCursesFormField& f) = 0; > >public: > UserDefinedFieldType_With_Choice() { > fieldtype = generic_fieldtype_with_choice; > } >}; ># 36 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesf.cc" 2 ># 1 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesapp.h" 1 ># 39 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesapp.h" ># 1 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursslk.h" 1 ># 41 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursslk.h" >class Soft_Label_Key_Set { >public: > > class Soft_Label_Key { > friend class Soft_Label_Key_Set; > public: > typedef enum { Left=0, Center=1, Right=2 } Justification; > > private: > char *label; > Justification format; > int num; > > Soft_Label_Key() : label(__null), format(Left), num(-1) { > } > > virtual ~Soft_Label_Key() { > delete[] label; > }; > > public: > > Soft_Label_Key& operator=(char *text); > > > Soft_Label_Key& operator=(Justification just) { > format = just; > return *this; > } > > > inline char* operator()(void) const { > return label; > } > > Soft_Label_Key& operator=(const Soft_Label_Key& rhs) > { > if (this != &rhs) { > *this = rhs; > } > return *this; > } > > Soft_Label_Key(const Soft_Label_Key& rhs) > : label(__null), > format(rhs.format), > num(rhs.num) > { > *this = rhs.label; > } > }; > >public: > typedef enum { > None = -1, > Three_Two_Three = 0, > Four_Four = 1, > PC_Style = 2, > PC_Style_With_Index = 3 > } Label_Layout; > >private: > static long count; > static Label_Layout format; > static int num_labels; > bool b_attrInit; > > Soft_Label_Key *slk_array; > > > void init(); > > > void activate_label(int i, bool bf=1); > > > void activate_labels(bool bf); > >protected: > inline void Error (const char* msg) const throw(NCursesException) { > THROW(new NCursesException (msg)); > } > > > void clear() { > if ((-1)==::slk_clear()) > Error("slk_clear"); > } > > > void restore() { > if ((-1)==::slk_restore()) > Error("slk_restore"); > } > >public: > > > > > > Soft_Label_Key_Set(Label_Layout fmt); > > > > Soft_Label_Key_Set(); > > Soft_Label_Key_Set& operator=(const Soft_Label_Key_Set& rhs) > { > if (this != &rhs) { > *this = rhs; > init(); > } > return *this; > } > > Soft_Label_Key_Set(const Soft_Label_Key_Set& rhs) > : b_attrInit(rhs.b_attrInit), > slk_array(__null) > { > init(); > } > > virtual ~Soft_Label_Key_Set(); > > > Soft_Label_Key& operator[](int i); > > > inline int labels() const { return num_labels; } > > > inline void refresh() { > if ((-1)==::slk_refresh()) > Error("slk_refresh"); > } > > > > inline void noutrefresh() { > if ((-1)==::slk_noutrefresh()) > Error("slk_noutrefresh"); > } > > > inline void touch() { > if ((-1)==::slk_touch()) > Error("slk_touch"); > } > > > inline void show(int i) { > activate_label(i,0); > activate_label(i,1); > } > > > inline void hide(int i) { > activate_label(i,0); > } > > > inline void show() { > activate_labels(0); > activate_labels(1); > } > > > inline void hide() { > activate_labels(0); > } > > inline void CUR_attron(attr_t attrs) { > if ((-1)==::slk_attron(attrs)) > Error("slk_attron"); > } > > inline void CUR_attroff(attr_t attrs) { > if ((-1)==::slk_attroff(attrs)) > Error("slk_attroff"); > } > > inline void CUR_attrset(attr_t attrs) { > if ((-1)==::slk_attrset(attrs)) > Error("slk_attrset"); > } > > inline void color(short color_pair_number) { > if ((-1)==::slk_color(color_pair_number)) > Error("slk_color"); > } > > inline attr_t attr() const { > return ::slk_attr(); > } >}; ># 40 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesapp.h" 2 > >class NCursesApplication { >public: > typedef struct _slk_link { > struct _slk_link* prev; > Soft_Label_Key_Set* SLKs; > } SLK_Link; >private: > static int rinit(NCursesWindow& w); > static NCursesApplication* theApp; > > static SLK_Link* slk_stack; > >protected: > static NCursesWindow* titleWindow; > > bool b_Colors; > NCursesWindow* Root_Window; > > > > virtual void init(bool bColors); > > > > virtual int titlesize() const { > return 0; > } > > > > virtual void title() { > } > > > > virtual Soft_Label_Key_Set::Label_Layout useSLKs() const { > return Soft_Label_Key_Set::None; > } > > > > virtual void init_labels(Soft_Label_Key_Set& S) const { > } > > > > virtual int run() = 0; > > > > NCursesApplication(bool wantColors = 0); > > NCursesApplication& operator=(const NCursesApplication& rhs) > { > if (this != &rhs) { > *this = rhs; > } > return *this; > } > > NCursesApplication(const NCursesApplication& rhs) > : b_Colors(rhs.b_Colors), > Root_Window(rhs.Root_Window) > { > } > >public: > virtual ~NCursesApplication(); > > > static NCursesApplication* getApplication() { > return theApp; > } > > > int operator()(void); > > > > virtual void handleArgs(int argc, char* argv[]) { > } > > > inline bool useColors() const { > return b_Colors; > } > > > > void push(Soft_Label_Key_Set& S); > > > > bool pop(); > > > Soft_Label_Key_Set* top() const; > > > virtual chtype foregrounds() const { > return b_Colors ? ((1) << ((0) + 8)) : ((1UL) << ((13) + 8)); > } > > > virtual chtype backgrounds() const { > return b_Colors ? ((2) << ((0) + 8)) : (1UL - 1UL); > } > > > virtual chtype inactives() const { > return b_Colors ? (((3) << ((0) + 8))|((1UL) << ((12) + 8))) : ((1UL) << ((12) + 8)); > } > > > virtual chtype labels() const { > return b_Colors ? ((4) << ((0) + 8)) : (1UL - 1UL); > } > > > virtual chtype dialog_backgrounds() const { > return b_Colors ? ((4) << ((0) + 8)) : (1UL - 1UL); > } > > > virtual chtype window_backgrounds() const { > return b_Colors ? ((5) << ((0) + 8)) : (1UL - 1UL); > } > > > virtual chtype screen_titles() const { > return b_Colors ? ((6) << ((0) + 8)) : ((1UL) << ((13) + 8)); > } > >}; ># 37 "/var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/c++/cursesf.cc" 2 > >static const char Ident[] = "$Id: cursesf.cc,v 1.21 2005/08/13 18:09:06 tom Exp $"; > >NCursesFormField::~NCursesFormField () >{ > if (field) > OnError(::free_field (field)); >} > > > > >FIELD** >NCursesForm::mapFields(NCursesFormField* nfields[]) >{ > int fieldCount = 0,lcv; > FIELD** old_fields; > > (static_cast<void> (0)); > > for (lcv=0; nfields[lcv]->field; ++lcv) > ++fieldCount; > > FIELD** fields = new FIELD*[fieldCount + 1]; > > for (lcv=0;nfields[lcv]->field;++lcv) { > fields[lcv] = nfields[lcv]->field; > } > fields[lcv] = __null; > > my_fields = nfields; > > if (form && (old_fields = ::form_fields(form))) { > ::set_form_fields(form, static_cast<FIELD**>(0)); > delete[] old_fields; > } > return fields; >} > >void NCursesForm::setDefaultAttributes() >{ > NCursesApplication* S = NCursesApplication::getApplication(); > > int n = count(); > if (n > 0) { > for(int i=0; i<n; i++) { > NCursesFormField* f = (*this)[i]; > if ((f->options() & ((0x0008U)|(0x0002U)))==((0x0008U)|(0x0002U))) { > if (S) { > f->set_foreground(S->foregrounds()); > f->set_background(S->backgrounds()); > } > f->set_pad_character('_'); > } > else { > if (S) > f->set_background(S->labels()); > } > } > } > > if (S) { > CUR_bkgd(' '|S->dialog_backgrounds()); > if (sub) > sub->CUR_bkgd(' '|S->dialog_backgrounds()); > } >} > >void >NCursesForm::InitForm(NCursesFormField* nfields[], > bool with_frame, > bool autoDelete_Fields) >{ > int mrows, mcols; > > keypad(1); > meta(1); > > b_framed = with_frame; > b_autoDelete = autoDelete_Fields; > > form = static_cast<FORM*>(0); > form = ::new_form(mapFields(nfields)); > if (!form) > OnError ((-1)); > > UserHook* hook = new UserHook; > hook->m_user = __null; > hook->m_back = this; > hook->m_owner = form; > ::set_form_userptr(form, reinterpret_cast<void*>(hook)); > > ::set_form_init (form, _nc_xx_frm_init); > ::set_form_term (form, _nc_xx_frm_term); > ::set_field_init (form, _nc_xx_fld_init); > ::set_field_term (form, _nc_xx_fld_term); > > scale(mrows, mcols); > ::set_form_win(form, w); > > if (with_frame) { > if ((mrows > height()-2) || (mcols > width()-2)) > OnError((-6)); > sub = new NCursesWindow(*this,mrows,mcols,1,1,'r'); > ::set_form_sub(form, sub->w); > b_sub_owner = 1; > } > else { > sub = static_cast<NCursesWindow*>(0); > b_sub_owner = 0; > } > options_on((0x0001U)); > setDefaultAttributes(); >} > >NCursesForm::~NCursesForm() >{ > UserHook* hook = reinterpret_cast<UserHook*>(::form_userptr(form)); > delete hook; > if (b_sub_owner) { > delete sub; > ::set_form_sub(form, static_cast<WINDOW *>(0)); > } > if (form) { > FIELD** fields = ::form_fields(form); > int cnt = count(); > > OnError(::set_form_fields(form, static_cast<FIELD**>(0))); > > if (b_autoDelete) { > if (cnt>0) { > for (int i=0; i <= cnt; i++) > delete my_fields[i]; > } > delete[] my_fields; > } > > ::free_form(form); > > delete[] fields; > } >} > >void >NCursesForm::setSubWindow(NCursesWindow& nsub) >{ > if (!isDescendant(nsub)) > OnError((-1)); > else { > if (b_sub_owner) > delete sub; > sub = ⊄ > ::set_form_sub(form,sub->w); > } >} > > > > > > >void >_nc_xx_frm_init(FORM *f) >{ > NCursesForm::getHook(f)->On_Form_Init(); >} > >void >_nc_xx_frm_term(FORM *f) >{ > NCursesForm::getHook(f)->On_Form_Termination(); >} > >void >_nc_xx_fld_init(FORM *f) >{ > NCursesForm* F = NCursesForm::getHook(f); > F->On_Field_Init (*(F->current_field ())); >} > >void >_nc_xx_fld_term(FORM *f) >{ > NCursesForm* F = NCursesForm::getHook(f); > F->On_Field_Termination (*(F->current_field ())); >} > >void >NCursesForm::On_Form_Init() >{ >} > >void >NCursesForm::On_Form_Termination() >{ >} > >void >NCursesForm::On_Field_Init(NCursesFormField& field) >{ >} > >void >NCursesForm::On_Field_Termination(NCursesFormField& field) >{ >} > > >int >NCursesForm::driver (int c) >{ > int res = ::form_driver (form, c); > switch (res) { > case (0): > case (-12): > case (-13): > case (-8): > break; > default: > OnError (res); > } > return (res); >} > >void NCursesForm::On_Request_Denied(int c) const >{ > ::beep(); >} > >void NCursesForm::On_Invalid_Field(int c) const >{ > ::beep(); >} > >void NCursesForm::On_Unknown_Command(int c) const >{ > ::beep(); >} > >static const int CMD_QUIT = (0777 + 128) + 1; > >NCursesFormField* >NCursesForm::operator()(void) >{ > int drvCmnd; > int err; > int c; > > post(); > show(); > refresh(); > > while (((drvCmnd = virtualize((c=getKey()))) != CMD_QUIT)) { > switch((err=driver(drvCmnd))) { > case (-12): > On_Request_Denied(c); > break; > case (-13): > On_Invalid_Field(c); > break; > case (-8): > On_Unknown_Command(c); > break; > case (0): > break; > default: > OnError(err); > } > } > > unpost(); > hide(); > refresh(); > return my_fields[::field_index (::current_field (form))]; >} > > > > > >int >NCursesForm::virtualize(int c) >{ > switch(c) { > > case 0406 : return((0777 + 7)); > case 0550 : return((0777 + 8)); > > case 0402 : return((0777 + 30)); > case 0403 : return((0777 + 29)); > case 0404 : return((0777 + 18)); > case 0405 : return((0777 + 17)); > > case 0522 : return((0777 + 1)); > case 0523 : return((0777 + 2)); > > case 0407 : return((0777 + 35)); > case 0527 : return((0777 + 31)); > case 0515 : return((0777 + 40)); > > case (('X') & 0x1f) : return(CMD_QUIT); > > case (('F') & 0x1f) : return((0777 + 5)); > case (('B') & 0x1f) : return((0777 + 6)); > case (('L') & 0x1f) : return((0777 + 13)); > case (('R') & 0x1f) : return((0777 + 14)); > case (('U') & 0x1f) : return((0777 + 15)); > case (('D') & 0x1f) : return((0777 + 16)); > > case (('W') & 0x1f) : return((0777 + 21)); > case (('T') & 0x1f) : return((0777 + 22)); > > case (('A') & 0x1f) : return((0777 + 23)); > case (('E') & 0x1f) : return((0777 + 24)); > > case (('I') & 0x1f) : return((0777 + 32)); > case (('M') & 0x1f) : > case (('J') & 0x1f) : return((0777 + 31)); > case (('O') & 0x1f) : return((0777 + 33)); > case (('V') & 0x1f) : return((0777 + 34)); > case (('H') & 0x1f) : return((0777 + 35)); > case (('Y') & 0x1f) : return((0777 + 36)); > case (('G') & 0x1f) : return((0777 + 37)); > case (('K') & 0x1f) : return((0777 + 39)); > > case (('N') & 0x1f) : return((0777 + 56)); > case (('P') & 0x1f) : return((0777 + 57)); > > default: > return(c); > } >} > > > > > >bool _nc_xx_fld_fcheck(FIELD *f, const void *u) >{ > NCursesFormField* F = reinterpret_cast<NCursesFormField*>(const_cast<void *>(u)); > (static_cast<void> (0)); > UserDefinedFieldType* udf = reinterpret_cast<UserDefinedFieldType*>(F->fieldtype()); > (static_cast<void> (0)); > return udf->field_check(*F); >} > >bool _nc_xx_fld_ccheck(int c, const void *u) >{ > NCursesFormField* F = reinterpret_cast<NCursesFormField*>(const_cast<void *>(u)); > (static_cast<void> (0)); > UserDefinedFieldType* udf = > reinterpret_cast<UserDefinedFieldType*>(F->fieldtype()); > (static_cast<void> (0)); > return udf->char_check(c); >} > >void* _nc_xx_fld_makearg(va_list* va) >{ > return __builtin_va_arg(*va,NCursesFormField*); >} > >FIELDTYPE* UserDefinedFieldType::generic_fieldtype = > ::new_fieldtype(_nc_xx_fld_fcheck, > _nc_xx_fld_ccheck); > >FIELDTYPE* UserDefinedFieldType_With_Choice::generic_fieldtype_with_choice = > ::new_fieldtype(_nc_xx_fld_fcheck, > _nc_xx_fld_ccheck); > >bool _nc_xx_next_choice(FIELD *f, const void *u) >{ > NCursesFormField* F = reinterpret_cast<NCursesFormField*>(const_cast<void *>(u)); > (static_cast<void> (0)); > UserDefinedFieldType_With_Choice* udf = > reinterpret_cast<UserDefinedFieldType_With_Choice*>(F->fieldtype()); > (static_cast<void> (0)); > return udf->next(*F); >} > >bool _nc_xx_prev_choice(FIELD *f, const void *u) >{ > NCursesFormField* F = reinterpret_cast<NCursesFormField*>(const_cast<void *>(u)); > (static_cast<void> (0)); > UserDefinedFieldType_With_Choice* udf = > reinterpret_cast<UserDefinedFieldType_With_Choice*>(F->fieldtype()); > (static_cast<void> (0)); > return udf->previous(*F); >} > >class UDF_Init >{ >private: > int code; > static UDF_Init* I; > >public: > UDF_Init() > : code(0) > { > code = ::set_fieldtype_arg(UserDefinedFieldType::generic_fieldtype, > _nc_xx_fld_makearg, > __null, > __null); > if (code==(0)) > code = ::set_fieldtype_arg > (UserDefinedFieldType_With_Choice::generic_fieldtype_with_choice, > _nc_xx_fld_makearg, > __null, > __null); > if (code==(0)) > code = ::set_fieldtype_choice > (UserDefinedFieldType_With_Choice::generic_fieldtype_with_choice, > _nc_xx_next_choice, > _nc_xx_prev_choice); > } >}; > >UDF_Init* UDF_Init::I = new UDF_Init();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 192558
:
130955
| 130957 |
130958