This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ crashes if you don't #include <vector>
- To: egcs-bugs at cygnus dot com
- Subject: g++ crashes if you don't #include <vector>
- From: "David J. Dooling" <dooling at piglet dot chem-eng dot nwu dot edu>
- Date: 4 Feb 1999 16:49:10 -0000
- Reply-to: d-dooling at nwu dot edu
This is a bug caused by ill-formed code (like the desctructor with
arguments (http://egcs.cygnus.com/c++bugs.html)). As such, I am just
writing to let you know.
-Brief description: when I compile a file which uses one of the STL
containers without including the appropriate header file (e.g,
#include <vector> if I am using std::vector>) the compiler dies
with a fatal error (see below). I have tested this for both
`deque' and `vector' and on two architectures (see below). If I
include the appropriate header, it compiles fine. As stated above,
this is obviously due to bad code, but an error message would be
better than a crash.
-egcs version: 1.1.1
-architecture: alphaev56 running Digital Unix (osf) 4.0d
i586 pc running linux-2.0.34 (Red Hat 5.1) (binutils 2.9.1)
^(AMD K6-2 350)
-configure options on alpha: --prefix=/usr/local/egcs
-configure options on i586:
-I had no problems configuring, building or installing on either
machine (much easier than gcc-2.8.1!).
-command line: $ g++ -v --save-temps -g -c parameter.cc
-output:
Reading specs from /usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Dunix -D__osf__ -D_LONGLONG -DSYSTYPE_BSD -D_SYSTYPE_BSD -D__unix__ -D__osf__ -D_LONGLONG -D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__unix -D__SYSTYPE_BSD -Asystem(unix) -Asystem(xpg4) -D__EXCEPTIONS -g -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus -Acpu(alpha) -Amachine(alpha) -D__alpha -D__alpha__ -D__alpha_ev5__ -Acpu(ev5) -D__alpha_bwx__ -Acpu(bwx) parameter.cc parameter.ii
GNU CPP version egcs-2.91.60 19981201 (egcs-1.1.1 release)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/egcs/include/g++
/usr/local/include
/usr/local/egcs/alphaev56-dec-osf4.0d/include
/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include
/usr/include
End of search list.
/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/cc1plus parameter.ii -quiet -dumpbase parameter.cc -g -version -o parameter.s
GNU C++ version egcs-2.91.60 19981201 (egcs-1.1.1 release) (alphaev56-dec-osf4.0d) compiled by GNU C version egcs-2.91.60 19981201 (egcs-1.1.1 release).
In file included from parameter.cc:24:
parameter.h:61: Internal compiler error 980711.
parameter.h:61: Please submit a full bug report to `egcs-bugs@cygnus.com'.
parameter.h:61: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
---- end command output ---
Here are the output files. I have not compressed them because they
are small. Look for ``==='' to get to the next file. The files I
included are: parameter.ii, parameter.s, parameter.h, and
parameter.cc, in that order. Enjoy.
=== parameter.ii ===
# 1 "parameter.cc"
# 1 "parameter.h" 1
# 1 "/usr/local/egcs/include/g++/string" 1 3
# 1 "/usr/local/egcs/include/g++/std/bastring.h" 1 3
#pragma interface
# 1 "/usr/local/egcs/include/g++/cstddef" 1 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 1 3
# 61 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 3
typedef long int ptrdiff_t;
typedef long unsigned int size_t;
typedef unsigned int wint_t;
# 317 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 3
# 6 "/usr/local/egcs/include/g++/cstddef" 2 3
# 35 "/usr/local/egcs/include/g++/std/bastring.h" 2 3
# 1 "/usr/local/egcs/include/g++/std/straits.h" 1 3
#pragma interface "std/straits.h"
extern "C++" {
template <class charT>
struct string_char_traits {
typedef charT char_type;
static void assign (char_type& c1, const char_type& c2)
{ c1 = c2; }
static bool eq (const char_type& c1, const char_type& c2)
{ return (c1 == c2); }
static bool ne (const char_type& c1, const char_type& c2)
{ return !(c1 == c2); }
static bool lt (const char_type& c1, const char_type& c2)
{ return (c1 < c2); }
static char_type eos () { return char_type(); }
static bool is_del(char_type a) { return 0; }
static int compare (const char_type* s1, const char_type* s2, size_t n)
{
size_t i;
for (i = 0; i < n; ++i)
if (ne (s1[i], s2[i]))
return lt (s1[i], s2[i]) ? -1 : 1;
return 0;
}
static size_t length (const char_type* s)
{
size_t l = 0;
while (ne (*s++, eos ()))
++l;
return l;
}
static char_type* copy (char_type* s1, const char_type* s2, size_t n)
{
for (; n--; )
assign (s1[n], s2[n]);
return s1;
}
static char_type* move (char_type* s1, const char_type* s2, size_t n)
{
char_type a[n];
size_t i;
for (i = 0; i < n; ++i)
assign (a[i], s2[i]);
for (i = 0; i < n; ++i)
assign (s1[i], a[i]);
return s1;
}
static char_type* set (char_type* s1, const char_type& c, size_t n)
{
for (; n--; )
assign (s1[n], c);
return s1;
}
};
class istream;
class ostream;
# 1 "/usr/local/egcs/include/g++/cctype" 1 3
# 1 "/usr/include/ctype.h" 1 3
extern "C" {
# 1 "/usr/include/standards.h" 1 3
# 223 "/usr/include/standards.h" 3
# 262 "/usr/include/standards.h" 3
# 57 "/usr/include/ctype.h" 2 3
extern int isalpha (int) ;
extern int isalnum (int) ;
extern int iscntrl (int) ;
extern int isdigit (int) ;
extern int isgraph (int) ;
extern int islower (int) ;
extern int isprint (int) ;
extern int ispunct (int) ;
extern int isspace (int) ;
extern int isupper (int) ;
extern int isxdigit (int) ;
extern int toupper (int) ;
extern int tolower (int) ;
extern int isascii (int) ;
extern int toascii (int) ;
extern int (_toupper) (int) ;
extern int (_tolower) (int) ;
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/types.h" 1 3
# 124 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/types.h" 3
typedef unsigned int wctype_t;
typedef long fpos_t;
typedef int time_t;
typedef int clock_t;
# 155 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/types.h" 3
typedef long ssize_t;
typedef unsigned char uchar_t;
typedef unsigned short ushort_t;
typedef unsigned int uint_t;
typedef unsigned long ulong_t;
typedef volatile unsigned char vuchar_t;
typedef volatile unsigned short vushort_t;
typedef volatile unsigned int vuint_t;
typedef volatile unsigned long vulong_t;
typedef struct { long r[1]; } *physadr_t;
typedef struct label_t {
long val[10];
} label_t;
# 200 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/types.h" 3
typedef int level_t;
typedef int daddr_t;
typedef char * caddr_t;
typedef long * qaddr_t;
typedef char * addr_t;
typedef uint_t ino_t;
typedef short cnt_t;
typedef int dev_t;
typedef int chan_t;
# 303 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/types.h" 3
typedef long off_t;
typedef unsigned long rlim_t;
typedef int paddr_t;
typedef ushort_t nlink_t;
typedef int key_t;
typedef uint_t mode_t;
typedef uint_t uid_t;
typedef uint_t gid_t;
typedef void * mid_t;
typedef int pid_t;
typedef char slab_t[12];
typedef ulong_t shmatt_t;
typedef ulong_t msgqnum_t;
typedef ulong_t msglen_t;
typedef unsigned long sigset_t;
typedef struct __pthread_attr_t {
long __valid ;
char* __name ;
unsigned long __arg ;
unsigned long __reserved [19];
} pthread_attr_t;
typedef struct __pthread_mutexattr_t {
long __valid ;
unsigned long __reserved [15];
} pthread_mutexattr_t;
typedef struct __pthread_condattr_t {
long __valid ;
unsigned long __reserved [13];
} pthread_condattr_t;
typedef struct __pthread_t {
void* __reserved1 ;
void* __reserved2 ;
unsigned short __size ;
unsigned char __version ;
unsigned char __reserved3 ;
unsigned char __external ;
unsigned char __reserved4 [2];
unsigned char __creator ;
unsigned long __sequence ;
unsigned long __reserved5 [2];
void* __per_kt_area ;
void* __stack_base ;
void* __stack_reserve ;
void* __stack_yellow ;
void* __stack_guard ;
unsigned long __stack_size ;
void** __tsd_values ;
unsigned long __tsd_count ;
unsigned int __reserved6 ;
unsigned int __reserved7 ;
unsigned int __thread_flags ;
int __thd_errno ;
void* __stack_hiwater ;
} *pthread_t, pthreadTeb_t;
typedef volatile struct __pthread_mutex_t {
unsigned int __lock ;
unsigned int __valid ;
char* __name ;
unsigned int __arg ;
unsigned int __depth ;
unsigned long __sequence ;
unsigned long __owner ;
void* __block ;
} pthread_mutex_t;
typedef volatile struct __pthread_cond_t {
unsigned int __state ;
unsigned int __valid ;
char* __name ;
unsigned int __arg ;
unsigned long __sequence ;
void* __block ;
} pthread_cond_t;
typedef unsigned int pthread_key_t;
typedef volatile struct __pthread_once_t {
long __state ;
long __reserved [10];
} pthread_once_t;
typedef long timer_t;
typedef void (*sig_t) (int,void (*)(int)) ;
typedef pid_t id_t;
typedef unsigned int useconds_t;
typedef uint_t major_t;
typedef uint_t minor_t;
typedef uint_t devs_t;
typedef uint_t unit_t;
# 1 "/usr/include/mach/machine/vm_types.h" 1 3
typedef unsigned long vm_offset_t;
typedef unsigned long vm_size_t;
# 556 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/types.h" 2 3
typedef uchar_t uchar;
typedef ushort_t ushort;
typedef uint_t uint;
typedef ulong_t ulong;
typedef physadr_t physadr;
typedef uchar_t u_char;
typedef ushort_t u_short;
typedef uint_t u_int;
typedef ulong_t u_long;
typedef vuchar_t vu_char;
typedef vushort_t vu_short;
typedef vuint_t vu_int;
typedef vulong_t vu_long;
typedef struct _quad { int val[2]; } quad;
typedef long swblk_t;
typedef u_long fixpt_t;
# 1 "/usr/include/sys/select.h" 1 3
extern "C" {
# 118 "/usr/include/sys/select.h" 3
# 144 "/usr/include/sys/select.h" 3
typedef int fd_mask;
typedef struct fd_set {
fd_mask fds_bits[((( 4096 )+(( (sizeof(fd_mask) * 8 ) )-1))/( (sizeof(fd_mask) * 8 ) )) ];
} fd_set;
# 202 "/usr/include/sys/select.h" 3
extern void bzero (char *, int) ;
struct timeval;
int select (int, fd_set *, fd_set *, fd_set *, struct timeval *) ;
}
# 589 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/types.h" 2 3
typedef unsigned char sa_family_t;
typedef unsigned int in_addr_t;
typedef unsigned short in_port_t;
# 104 "/usr/include/ctype.h" 2 3
# 1 "/usr/include/sys/localedef.h" 1 3
extern "C" {
typedef struct _LC_charmap_t _LC_charmap_t;
typedef struct _LC_monetary_t _LC_monetary_t;
typedef struct _LC_numeric_t _LC_numeric_t;
typedef struct _LC_resp_t _LC_resp_t;
typedef struct _LC_time_t _LC_time_t;
typedef struct _LC_collate_t _LC_collate_t;
typedef struct _LC_ctype_t _LC_ctype_t;
typedef struct _LC_locale_t _LC_locale_t;
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/lc_core.h" 1 3
extern "C" {
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/locale.h" 1 3
struct lconv {
char *decimal_point;
char *thousands_sep;
char *grouping;
char *int_curr_symbol;
char *currency_symbol;
char *mon_decimal_point;
char *mon_thousands_sep;
char *mon_grouping;
char *positive_sign;
char *negative_sign;
char int_frac_digits;
char frac_digits;
char p_cs_precedes;
char p_sep_by_space;
char n_cs_precedes;
char n_sep_by_space;
char p_sign_posn;
char n_sign_posn;
char *left_parenthesis;
char *right_parenthesis;
};
extern "C" {
struct lconv *localeconv (void) ;
char *setlocale (int, const char *) ;
}
# 56 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/lc_core.h" 2 3
# 1 "/usr/include/nl_types.h" 1 3
extern "C" {
typedef int __nl_item;
typedef struct __catalog_descriptor *nl_catd;
typedef __nl_item nl_item;
extern nl_catd catopen (const char *, int ) ;
extern char *catgets (nl_catd , int , int , const char *) ;
extern int catclose (nl_catd ) ;
typedef struct __catalog_descriptor CATD;
extern nl_catd NLcatopen (char *, int) ;
extern char *NLgetamsg (char *, int, int, char *) ;
extern char *NLcatgets (nl_catd, int, int, const char *) ;
# 1 "/usr/include/mesg.h" 1 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdio.h" 1 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 1 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/va-alpha.h" 1 3
typedef struct {
char *__base;
int __offset;
} __gnuc_va_list;
# 130 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/va-alpha.h" 3
# 36 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 2 3
# 126 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 3
# 202 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 3
# 2 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdio.h" 2 3
# 1 "/usr/include/sys/seek.h" 1 3
# 120 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdio.h" 2 3
typedef struct {
int _cnt;
unsigned int _flag2;
unsigned char *_ptr;
unsigned char *_base;
int _bufsiz;
short _flag;
short _file;
char *__newbase;
void *_lock;
unsigned char *_bufendp;
} FILE;
extern FILE _iob[];
extern "C" {
extern size_t fread (void *, size_t, size_t, FILE *) ;
extern size_t fwrite (const void *, size_t, size_t, FILE *) ;
}
extern "C" {
extern int _flsbuf (int, FILE *) ;
extern int _filbuf (FILE *) ;
extern int ferror (FILE *) ;
extern int feof (FILE *) ;
extern void clearerr (FILE *) ;
extern int putchar (int) ;
extern int getchar (void) ;
extern int putc (int, FILE *) ;
extern int getc (FILE *) ;
extern int remove (const char *) ;
extern int rename (const char *, const char *) ;
extern FILE *tmpfile (void) ;
extern char *tmpnam (char *) ;
extern int fclose (FILE *) ;
extern int fflush (FILE *) ;
extern FILE *fopen (const char *, const char *) ;
extern FILE *freopen (const char *, const char *, FILE *) ;
extern void setbuf (FILE *, char *) ;
extern int setvbuf (FILE *, char *, int, size_t) ;
extern int fprintf (FILE *, const char *, ...) ;
extern int fscanf (FILE *, const char *, ...) ;
extern int printf (const char *, ...) ;
extern int scanf (const char *, ...) ;
extern int sprintf (char *, const char *, ...) ;
extern int sscanf (const char *, const char *, ...) ;
# 1 "/usr/include/va_list.h" 1 3
typedef struct {
char **_a0;
int _offset;
} va_list;
# 84 "/usr/include/va_list.h" 3
# 192 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdio.h" 2 3
extern int vfprintf (FILE *, const char *, __gnuc_va_list) ;
extern int vprintf (const char *, __gnuc_va_list) ;
extern int vsprintf (char *, const char *, __gnuc_va_list) ;
# 204 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdio.h" 3
extern int fgetc (FILE *) ;
extern char *fgets (char *, int, FILE *) ;
extern int fputc (int, FILE *) ;
extern int fputs (const char *, FILE *) ;
extern char *gets (char *) ;
extern int puts (const char *) ;
extern int ungetc (int, FILE *) ;
extern int fgetpos (FILE *, fpos_t *) ;
extern int fseek (FILE *, long, int) ;
extern int fsetpos (FILE *, const fpos_t *) ;
extern long ftell (FILE *) ;
extern void rewind (FILE *) ;
extern void perror (const char *) ;
}
# 285 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdio.h" 3
# 338 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdio.h" 3
extern "C" {
extern int fileno (FILE *) ;
extern FILE *fdopen (int, const char *) ;
extern char *cuserid (char *) ;
}
# 1 "/usr/include/getopt.h" 1 3
extern "C"
{
extern int getopt (int, char * const [], const char *) ;
}
extern char *optarg;
extern int optind;
extern int optopt;
extern int opterr;
# 391 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdio.h" 2 3
extern "C" {
extern char *ctermid (char *) ;
extern int getw (FILE *) ;
extern int pclose (FILE *) ;
extern int putw (int, FILE*) ;
extern FILE *popen (const char *, const char *) ;
extern char *tempnam (const char*, const char*) ;
}
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/limits.h" 1 3
# 1 "/usr/include/machine/machlimits.h" 1 3
# 80 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/limits.h" 2 3
# 1 "/usr/include/sys/syslimits.h" 1 3
# 141 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/limits.h" 2 3
# 1 "/usr/include/machine/machtime.h" 1 3
# 238 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/limits.h" 2 3
# 1 "/usr/include/sys/rt_limits.h" 1 3
# 255 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/limits.h" 2 3
# 410 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdio.h" 2 3
extern "C" {
extern void setbuffer (FILE *, char*, int) ;
extern void setlinebuf (FILE *) ;
}
# 489 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdio.h" 3
# 55 "/usr/include/mesg.h" 2 3
# 1 "/usr/include/nl_types.h" 1 3
# 88 "/usr/include/nl_types.h" 3
# 56 "/usr/include/mesg.h" 2 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/limits.h" 1 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/syslimits.h" 1 3
# 271 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/syslimits.h" 3
# 11 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/limits.h" 2 3
# 109 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/limits.h" 3
# 57 "/usr/include/mesg.h" 2 3
struct _message {
unsigned short _set,
_msg;
char *_text;
unsigned _old;
};
struct _header {
int _magic;
unsigned short _n_sets,
_setmax;
char _filler[20];
};
struct _msgptr {
unsigned short _msgno,
_msglen;
unsigned int _offset;
};
struct _catset {
unsigned short _setno,
_n_msgs;
struct _msgptr *_mp;
int _msgs_expanded;
};
struct __catalog_descriptor {
char *_mem;
char *_name;
int _fd;
struct _header *_hd;
int _catlen;
struct _catset *_set;
int _setmax;
int _count;
int _magic;
char *_lc_message;
char *_nlspath;
int _n_sets;
int _sets_expanded;
};
extern "C" {
extern struct _catset *__cat_get_catset(nl_catd, int);
extern struct _msgptr *__cat_get_msgptr(struct _catset *, int);
}
# 82 "/usr/include/nl_types.h" 2 3
}
# 61 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/lc_core.h" 2 3
# 1 "/usr/include/va_list.h" 1 3
# 84 "/usr/include/va_list.h" 3
# 62 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/lc_core.h" 2 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/reg_types.h" 1 3
extern "C" {
typedef struct {
size_t re_nsub;
void *re_comp;
int re_cflags;
size_t re_erroff;
size_t re_len;
wchar_t re_ucoll[2];
uchar_t **re_lsub;
uchar_t **re_esub;
void *re_filler[8];
uchar_t re_map[256];
} __regex_t;
typedef off_t __regoff_t;
typedef struct {
__regoff_t rm_so;
__regoff_t rm_eo;
} __regmatch_t;
}
# 64 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/sys/lc_core.h" 2 3
typedef enum __lc_type_id_t {
_LC_CAR=1,
_LC_LOCALE=2,
_LC_CHARMAP=3,
_LC_CTYPE=4,
_LC_COLLATE=5,
_LC_NUMERIC=6,
_LC_MONETARY=7,
_LC_TIME=8,
_LC_RESP=9 } __lc_type_id_t;
typedef struct {
__lc_type_id_t
type_id;
unsigned short
magic;
unsigned short
format;
unsigned long
version;
unsigned long size;
} _LC_object_t;
struct _LC_charmap_t;
struct _LC_ctype_t;
struct _LC_collate_t;
struct _LC_time_t;
struct _LC_monetary_t;
struct _LC_numeric_t;
struct _LC_resp_t;
struct _LC_locale_t;
typedef struct {
_LC_object_t hdr;
char *(*nl_langinfo) (__nl_item, struct _LC_charmap_t *) ;
int (*mbtowc) (wchar_t *, const char *, size_t, struct _LC_charmap_t *) ;
size_t (*mbstowcs) (wchar_t *, const char *, size_t, struct _LC_charmap_t *) ;
int (*wctomb) (char *, wchar_t, struct _LC_charmap_t *) ;
size_t (*wcstombs) (char *, const wchar_t *, size_t, struct _LC_charmap_t *) ;
int (*mblen) (const char *, size_t, struct _LC_charmap_t *) ;
int (*wcswidth) (const wchar_t *, size_t, struct _LC_charmap_t *) ;
int (*wcwidth) (const wchar_t, struct _LC_charmap_t *) ;
int (*__mbtopc) (wchar_t *, char *, size_t, int *, struct _LC_charmap_t *) ;
int (*__mbstopcs) (wchar_t *, size_t, char *, size_t, int, char **, int *, struct _LC_charmap_t *) ;
int (*__pctomb) (char *, wchar_t *, size_t, int *, struct _LC_charmap_t *) ;
int (*__pcstombs) (char *, size_t, wchar_t *, size_t, char **, int *, struct _LC_charmap_t *) ;
struct _LC_charmap_t *(*init) (struct _LC_locale_t *) ;
void *data;
} _LC_core_charmap_t;
typedef struct {
_LC_object_t hdr;
wint_t (*towupper) (wint_t, struct _LC_ctype_t *) ;
wint_t (*towlower) (wint_t, struct _LC_ctype_t *) ;
wctype_t (*wctype) (char *, struct _LC_ctype_t *) ;
int (*iswctype) (wint_t, wctype_t, struct _LC_ctype_t *) ;
struct _LC_ctype_t *(*init) (struct _LC_locale_t *) ;
void *data;
} _LC_core_ctype_t;
typedef struct {
_LC_object_t hdr;
int (*strcoll) (const char *, const char *, struct _LC_collate_t *) ;
size_t (*strxfrm) (char *, const char *, size_t, struct _LC_collate_t *) ;
int (*wcscoll) (const wchar_t *, const wchar_t *, struct _LC_collate_t *) ;
size_t (*wcsxfrm) (wchar_t *, const wchar_t *, size_t, struct _LC_collate_t *) ;
int (*fnmatch) (const char *, const char *, const char *, int, struct _LC_collate_t *) ;
int (*regcomp) (__regex_t *, const char *, int, struct _LC_collate_t *) ;
size_t (*regerror) (int, const __regex_t *, char *, size_t, struct _LC_collate_t *) ;
int (*regexec) (const __regex_t *, const char *, size_t, __regmatch_t *, int, struct _LC_collate_t *) ;
void (*regfree) (__regex_t *, struct _LC_collate_t *) ;
struct _LC_collate_t *(*init) (struct _LC_locale_t *) ;
void *data;
} _LC_core_collate_t;
struct tm;
typedef struct {
_LC_object_t hdr;
char *(*nl_langinfo) (__nl_item, struct _LC_time_t *) ;
size_t (*strftime) (char *, size_t, const char *, const struct tm *, struct _LC_time_t *) ;
char *(*strptime) (const char *, const char *, struct tm *, struct _LC_time_t *) ;
size_t (*wcsftime) (wchar_t *, size_t, const char *, const struct tm *, struct _LC_time_t *) ;
struct _LC_time_t *(*init) (struct _LC_locale_t *) ;
void *data;
} _LC_core_time_t;
typedef struct {
_LC_object_t hdr;
char *(*nl_langinfo) (__nl_item, struct _LC_monetary_t *) ;
ssize_t (*strfmon) (char *, size_t, const char *, va_list, struct _LC_monetary_t *) ;
struct _LC_monetary_t *(*init) (struct _LC_locale_t *) ;
void *data;
} _LC_core_monetary_t;
typedef struct {
_LC_object_t hdr;
char *(*nl_langinfo) (__nl_item, struct _LC_numeric_t *) ;
struct _LC_numeric_t *(*init) (struct _LC_locale_t *) ;
void *data;
} _LC_core_numeric_t;
typedef struct {
_LC_object_t hdr;
char *(*nl_langinfo) (__nl_item, struct _LC_resp_t *) ;
int (*rpmatch) (const char *, struct _LC_resp_t *) ;
struct _LC_resp_t *(*init) (struct _LC_locale_t *) ;
void *data;
} _LC_core_resp_t;
typedef struct {
_LC_object_t hdr;
char *(*nl_langinfo) (__nl_item, struct _LC_locale_t *) ;
struct lconv * (*localeconv) (struct _LC_locale_t *) ;
struct _LC_locale_t *(*init) (struct _LC_locale_t *) ;
void *data;
} _LC_core_locale_t;
}
# 79 "/usr/include/sys/localedef.h" 2 3
struct _LC_charmap_t {
_LC_core_charmap_t core;
char *cm_csname;
unsigned long cm_mb_cur_max;
unsigned long cm_mb_cur_min;
unsigned char
cm_max_disp_width;
};
struct _LC_monetary_t {
_LC_core_monetary_t core;
char *int_curr_symbol;
char *currency_symbol;
char *mon_decimal_point;
char *mon_thousands_sep;
char *mon_grouping;
char *positive_sign;
char *negative_sign;
signed char int_frac_digits;
signed char frac_digits;
signed char p_cs_precedes;
signed char p_sep_by_space;
signed char n_cs_precedes;
signed char n_sep_by_space;
signed char p_sign_posn;
signed char n_sign_posn;
char *debit_sign;
char *credit_sign;
char *left_parenthesis;
char *right_parenthesis;
};
struct _LC_numeric_t {
_LC_core_numeric_t core;
char *decimal_point;
char *thousands_sep;
unsigned
char *grouping;
};
struct _LC_resp_t {
_LC_core_resp_t core;
char *yesexpr;
char *noexpr;
char *yesstr;
char *nostr;
};
struct _LC_time_t {
_LC_core_time_t core;
char *d_fmt;
char *t_fmt;
char *d_t_fmt;
char *t_fmt_ampm;
char *abday[7];
char *day[7];
char *abmon[12];
char *mon[12];
char *am_pm[2];
char **era;
char *era_year;
char *era_d_fmt;
char *alt_digits;
char *m_d_recent;
char *m_d_old;
char *era_d_t_fmt;
char *era_t_fmt;
};
typedef union {
unsigned int n[(sizeof(unsigned int *)/sizeof(unsigned int)) ];
const unsigned int
*p;
} _LC_weight_t;
typedef struct {
const char *ce_sym;
_LC_weight_t ce_wgt;
} _LC_collel_t;
typedef struct {
_LC_weight_t ct_wgt;
const _LC_collel_t *ct_collel;
} _LC_coltbl_v1_t;
typedef char _LC_strpool_t, *_LC_strpool_ptr_t;
typedef struct {
int strpool_idx;
unsigned int ce_wgt[1];
} _LC_collel_tbl_v2_t;
typedef _LC_collel_tbl_v2_t _LC_collel_tbl_t;
typedef struct {
unsigned int min;
unsigned int max;
unsigned int *tbl;
} _LC_collel_qidx_v2_t;
typedef _LC_collel_qidx_v2_t _LC_collel_qidx_t;
typedef struct {
unsigned int ce_tbl_bsize;
unsigned int ce_tbl_cnt;
unsigned int ce_strpool_cnt;
unsigned int version_mask;
_LC_strpool_t *ce_strpool;
_LC_collel_tbl_t *ce_tbl;
_LC_collel_qidx_t *ce_qidx;
unsigned int *ct_wgt[1];
} _LC_coltbl_v2_t;
typedef struct {
int (*getcolval) (_LC_collate_t *hdl, unsigned int *colval, unsigned int realwc, const char *str, int order) ;
} _LC_coll_methods_t;
typedef union {
_LC_coltbl_v1_t ct_v1;
_LC_coltbl_v2_t ct_v2;
} _LC_coltbl_t;
typedef struct {
_LC_weight_t ss_act;
const char *ss_src;
const char *ss_tgt;
} _LC_subs_t;
struct _LC_collate_t {
_LC_core_collate_t core;
unsigned
char co_nord;
unsigned
char version;
unsigned
char ce_defined;
_LC_weight_t co_sort;
unsigned int co_wc_min;
unsigned int co_wc_max;
unsigned int co_hbound;
unsigned int co_col_min;
unsigned int co_col_max;
const _LC_coltbl_t *co_coltbl;
unsigned
char co_nsubs;
const _LC_subs_t *co_subs;
const _LC_coll_methods_t *methods;
};
typedef struct {
char *name;
unsigned
int mask;
} _LC_classnm_t;
struct _LC_ctype_t {
_LC_core_ctype_t core;
unsigned int min_wc;
unsigned int max_wc;
unsigned int max_upper;
unsigned int max_lower;
const unsigned int *_upper;
const unsigned int *_lower;
const unsigned
int *_mask;
const unsigned
int *qmask;
const unsigned
char *qidx;
unsigned int qidx_hbound;
unsigned
char nclasses;
const _LC_classnm_t *classnms;
unsigned int num_rows;
unsigned int num_qmasks;
};
struct lconv;
struct _LC_locale_t {
_LC_core_locale_t core;
char *nl_info[55 ];
struct lconv *nl_lconv;
_LC_charmap_t *lc_charmap;
_LC_collate_t *lc_collate;
_LC_ctype_t *lc_ctype;
_LC_monetary_t *lc_monetary;
_LC_numeric_t *lc_numeric;
_LC_resp_t *lc_resp;
_LC_time_t *lc_time;
char *nl_info2[61 - 55 ];
};
extern _LC_charmap_t *__lc_charmap;
extern _LC_collate_t *__lc_collate;
extern _LC_ctype_t *__lc_ctype;
extern _LC_monetary_t *__lc_monetary;
extern _LC_numeric_t *__lc_numeric;
extern _LC_resp_t *__lc_resp;
extern _LC_time_t *__lc_time;
extern _LC_locale_t *__lc_locale;
}
# 111 "/usr/include/ctype.h" 2 3
}
# 6 "/usr/local/egcs/include/g++/cctype" 2 3
# 105 "/usr/local/egcs/include/g++/std/straits.h" 2 3
# 1 "/usr/local/egcs/include/g++/cstring" 1 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/string.h" 1 3
extern "C" {
extern void *memchr (const void *, int , size_t ) ;
extern void *memcpy (void *, const void *, size_t ) ;
extern void *memset (void *, int , size_t ) ;
extern size_t strcspn (const char *, const char *) ;
extern size_t strlen (const char *) ;
extern size_t strspn (const char *, const char *) ;
extern void *memmove (void *, const void *, size_t ) ;
extern char *strcpy (char *, const char *) ;
extern char *strncpy (char *, const char *, size_t ) ;
extern char *strcat (char *, const char *) ;
extern char *strncat (char *, const char *, size_t ) ;
extern int memcmp (const void *, const void *,size_t ) ;
extern int strcmp (const char *, const char *) ;
extern int strcoll (const char *, const char *) ;
extern int strncmp (const char *,const char *,size_t ) ;
extern size_t strxfrm (char *, const char *, size_t ) ;
extern char *strchr (const char *, int ) ;
extern char *strpbrk (const char *, const char *) ;
extern char *strrchr (const char *, int ) ;
extern char *strstr (const char *, const char *) ;
extern char *strtok (char *, const char *) ;
extern char *strerror (int) ;
extern void *memccpy (void *, const void *, int , size_t ) ;
extern void swab (const void *, void *, ssize_t) ;
extern char *strdup (const char *) ;
# 1 "/usr/include/strings.h" 1 3
extern "C" {
extern int bcmp (const char *, const char *, int) ;
extern void bcopy (const char *, char *, int) ;
extern void bzero (char *, int) ;
# 96 "/usr/include/strings.h" 3
extern int ffs (int) ;
extern char *index (const char*, int) ;
extern char *rindex (const char*, int) ;
extern int strcasecmp (const char *, const char *) ;
extern int strncasecmp (const char *, const char *, size_t ) ;
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/string.h" 1 3
# 188 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/string.h" 3
# 107 "/usr/include/strings.h" 2 3
}
# 154 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/string.h" 2 3
extern char * basename (char *) ;
extern char * dirname (char *) ;
# 181 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/string.h" 3
}
# 7 "/usr/local/egcs/include/g++/cstring" 2 3
# 94 "/usr/local/egcs/include/g++/cstring" 3
# 106 "/usr/local/egcs/include/g++/std/straits.h" 2 3
struct string_char_traits <char> {
typedef char char_type;
static void assign (char_type& c1, const char_type& c2)
{ c1 = c2; }
static bool eq (const char_type & c1, const char_type& c2)
{ return (c1 == c2); }
static bool ne (const char_type& c1, const char_type& c2)
{ return (c1 != c2); }
static bool lt (const char_type& c1, const char_type& c2)
{ return (c1 < c2); }
static char_type eos () { return 0; }
static bool is_del(char_type a) { return (((*( __lc_ctype ->core. iswctype )) == 0L) ? (int) (__lc_ctype->_mask[ a ] & ( 0x200 )) : (*( __lc_ctype ->core. iswctype )) ( a , 0x200 ,__lc_ctype)) ; }
static int compare (const char_type* s1, const char_type* s2, size_t n)
{ return memcmp (s1, s2, n); }
static size_t length (const char_type* s)
{ return strlen (s); }
static char_type* copy (char_type* s1, const char_type* s2, size_t n)
{ return (char_type*) memcpy (s1, s2, n); }
static char_type* move (char_type* s1, const char_type* s2, size_t n)
{ return (char_type*) memmove (s1, s2, n); }
static char_type* set (char_type* s1, const char_type& c, size_t n)
{ return (char_type*) memset (s1, c, n); }
};
# 159 "/usr/local/egcs/include/g++/std/straits.h" 3
}
# 36 "/usr/local/egcs/include/g++/std/bastring.h" 2 3
# 1 "/usr/local/egcs/include/g++/alloc.h" 1 3
# 1 "/usr/local/egcs/include/g++/stl_config.h" 1 3
# 103 "/usr/local/egcs/include/g++/stl_config.h" 3
# 1 "/usr/local/egcs/alphaev56-dec-osf4.0d/include/_G_config.h" 1 3
typedef int _G_int8_t __attribute__((__mode__(__QI__)));
typedef unsigned int _G_uint8_t __attribute__((__mode__(__QI__)));
typedef int _G_int16_t __attribute__((__mode__(__HI__)));
typedef unsigned int _G_uint16_t __attribute__((__mode__(__HI__)));
typedef int _G_int32_t __attribute__((__mode__(__SI__)));
typedef unsigned int _G_uint32_t __attribute__((__mode__(__SI__)));
typedef int _G_int64_t __attribute__((__mode__(__DI__)));
typedef unsigned int _G_uint64_t __attribute__((__mode__(__DI__)));
__extension__ typedef long long _G_llong;
__extension__ typedef unsigned long long _G_ullong;
typedef int _G_clock_t;
typedef int _G_dev_t;
typedef long _G_fpos_t;
typedef unsigned int _G_gid_t;
typedef unsigned int _G_ino_t;
typedef unsigned int _G_mode_t;
typedef unsigned short _G_nlink_t;
typedef long _G_off_t;
typedef int _G_pid_t;
typedef long int _G_ptrdiff_t;
typedef unsigned long _G_sigset_t;
typedef long unsigned int _G_size_t;
typedef int _G_time_t;
typedef unsigned int _G_uid_t;
typedef unsigned int _G_wchar_t;
typedef long _G_ssize_t;
typedef unsigned int _G_wint_t;
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 1 3
# 19 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 3
# 61 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 3
# 126 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 3
# 188 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 3
# 269 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 3
# 317 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 3
# 88 "/usr/local/egcs/alphaev56-dec-osf4.0d/include/_G_config.h" 2 3
# 106 "/usr/local/egcs/include/g++/stl_config.h" 2 3
# 160 "/usr/local/egcs/include/g++/stl_config.h" 3
# 174 "/usr/local/egcs/include/g++/stl_config.h" 3
# 213 "/usr/local/egcs/include/g++/stl_config.h" 3
# 18 "/usr/local/egcs/include/g++/alloc.h" 2 3
# 1 "/usr/local/egcs/include/g++/stl_alloc.h" 1 3
# 1 "/usr/local/egcs/include/g++/iostream.h" 1 3
#pragma interface
# 1 "/usr/local/egcs/include/g++/streambuf.h" 1 3
#pragma interface
extern "C" {
# 1 "/usr/local/egcs/include/g++/libio.h" 1 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 1 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/va-alpha.h" 1 3
# 26 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/va-alpha.h" 3
# 130 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/va-alpha.h" 3
# 36 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 2 3
# 126 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 3
# 202 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 3
# 50 "/usr/local/egcs/include/g++/libio.h" 2 3
# 104 "/usr/local/egcs/include/g++/libio.h" 3
struct _IO_jump_t; struct _IO_FILE;
# 174 "/usr/local/egcs/include/g++/libio.h" 3
typedef void _IO_lock_t;
struct _IO_marker {
struct _IO_marker *_next;
struct _IO_FILE *_sbuf;
int _pos;
# 207 "/usr/local/egcs/include/g++/libio.h" 3
};
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 _blksize;
_G_off_t _offset;
unsigned short _cur_column;
char _unused;
char _shortbuf[1];
};
struct _IO_FILE_plus;
extern struct _IO_FILE_plus _IO_stdin_, _IO_stdout_, _IO_stderr_;
typedef struct
{
_G_ssize_t (*read) (struct _IO_FILE *, void *, _G_ssize_t ) ;
_G_ssize_t (*write) (struct _IO_FILE *, const void *, _G_ssize_t ) ;
_G_fpos_t (*seek) (struct _IO_FILE *, _G_off_t , int) ;
int (*close) (struct _IO_FILE *) ;
} _IO_cookie_io_functions_t;
struct _IO_cookie_file
{
struct _IO_FILE file;
const void *vtable;
void *cookie;
_IO_cookie_io_functions_t io_functions;
};
extern "C" {
extern int __underflow (_IO_FILE *) ;
extern int __uflow (_IO_FILE *) ;
extern int __overflow (_IO_FILE *, int) ;
extern int _IO_getc (_IO_FILE *__fp) ;
extern int _IO_putc (int __c, _IO_FILE *__fp) ;
extern int _IO_feof (_IO_FILE *__fp) ;
extern int _IO_ferror (_IO_FILE *__fp) ;
extern int _IO_peekc_locked (_IO_FILE *__fp) ;
extern void _IO_flockfile (_IO_FILE *) ;
extern void _IO_funlockfile (_IO_FILE *) ;
extern int _IO_ftrylockfile (_IO_FILE *) ;
extern int _IO_vfscanf (_IO_FILE *, const char *, __gnuc_va_list , int *) ;
extern int _IO_vfprintf (_IO_FILE *, const char *, __gnuc_va_list ) ;
extern _G_ssize_t _IO_padn (_IO_FILE *, int, _G_ssize_t ) ;
extern _G_size_t _IO_sgetn (_IO_FILE *, void *, _G_size_t ) ;
extern _G_fpos_t _IO_seekoff (_IO_FILE *, _G_off_t , int, int) ;
extern _G_fpos_t _IO_seekpos (_IO_FILE *, _G_fpos_t , int) ;
extern void _IO_free_backup_area (_IO_FILE *) ;
}
# 36 "/usr/local/egcs/include/g++/streambuf.h" 2 3
}
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 1 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/va-alpha.h" 1 3
# 26 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/va-alpha.h" 3
# 47 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/va-alpha.h" 3
enum {
__no_type_class = -1,
__void_type_class,
__integer_type_class,
__char_type_class,
__enumeral_type_class,
__boolean_type_class,
__pointer_type_class,
__reference_type_class,
__offset_type_class,
__real_type_class,
__complex_type_class,
__function_type_class,
__method_type_class,
__record_type_class,
__union_type_class,
__array_type_class,
__string_type_class,
__set_type_class,
__file_type_class,
__lang_type_class
};
# 36 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 2 3
# 126 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 3
# 168 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 3
# 198 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdarg.h" 3
# 40 "/usr/local/egcs/include/g++/streambuf.h" 2 3
extern "C++" {
class istream;
class ostream; class streambuf;
typedef _G_off_t streamoff;
typedef _G_fpos_t streampos;
typedef _G_ssize_t streamsize;
typedef unsigned long __fmtflags;
typedef unsigned char __iostate;
struct _ios_fields
{
streambuf *_strbuf;
ostream* _tie;
int _width;
__fmtflags _flags;
short _fill;
__iostate _state;
__iostate _exceptions;
int _precision;
void *_arrays;
};
# 124 "/usr/local/egcs/include/g++/streambuf.h" 3
class ios : public _ios_fields {
ios& operator=(ios&);
ios (const ios&);
public:
typedef __fmtflags fmtflags;
typedef int iostate;
typedef int openmode;
typedef int streamsize;
enum io_state {
goodbit = 0 ,
eofbit = 1 ,
failbit = 2 ,
badbit = 4 };
enum open_mode {
in = 1 ,
out = 2 ,
ate = 4 ,
app = 8 ,
trunc = 16 ,
nocreate = 32 ,
noreplace = 64 ,
bin = 128 ,
binary = 128 };
enum seek_dir { beg, cur, end};
typedef enum seek_dir seekdir;
enum { skipws= 01 ,
left= 02 , right= 04 , internal= 010 ,
dec= 020 , oct= 040 , hex= 0100 ,
showbase= 0200 , showpoint= 0400 ,
uppercase= 01000 , showpos= 02000 ,
scientific= 04000 , fixed= 010000 ,
unitbuf= 020000 , stdio= 040000
};
enum {
basefield=dec+oct+hex,
floatfield = scientific+fixed,
adjustfield = left+right+internal
};
# 177 "/usr/local/egcs/include/g++/streambuf.h" 3
ostream* tie() const { return _tie; }
ostream* tie(ostream* val) { ostream* save=_tie; _tie=val; return save; }
short fill() const { return _fill; }
short fill(short newf)
{short oldf = _fill; _fill = newf; return oldf;}
fmtflags flags() const { return _flags; }
fmtflags flags(fmtflags new_val) {
fmtflags old_val = _flags; _flags = new_val; return old_val; }
int precision() const { return _precision; }
int precision(int newp) {
unsigned short oldp = _precision; _precision = (unsigned short)newp;
return oldp; }
fmtflags setf(fmtflags val) {
fmtflags oldbits = _flags;
_flags |= val; return oldbits; }
fmtflags setf(fmtflags val, fmtflags mask) {
fmtflags oldbits = _flags;
_flags = (_flags & ~mask) | (val & mask); return oldbits; }
fmtflags unsetf(fmtflags mask) {
fmtflags oldbits = _flags;
_flags &= ~mask; return oldbits; }
int width() const { return _width; }
int width(int val) { int save = _width; _width = val; return save; }
void _throw_failure() const { }
void clear(iostate state = 0) {
_state = _strbuf ? state : state|badbit;
if (_state & _exceptions) _throw_failure(); }
void set(iostate flag) { _state |= flag;
if (_state & _exceptions) _throw_failure(); }
void setstate(iostate flag) { _state |= flag;
if (_state & _exceptions) _throw_failure(); }
int good() const { return _state == 0; }
int eof() const { return _state & ios::eofbit; }
int fail() const { return _state & (ios::badbit|ios::failbit); }
int bad() const { return _state & ios::badbit; }
iostate rdstate() const { return _state; }
operator void*() const { return fail() ? (void*)0 : (void*)(-1); }
int operator!() const { return fail(); }
iostate exceptions() const { return _exceptions; }
void exceptions(iostate enable) {
_exceptions = enable;
if (_state & _exceptions) _throw_failure(); }
streambuf* rdbuf() const { return _strbuf; }
streambuf* rdbuf(streambuf *_s) {
streambuf *_old = _strbuf; _strbuf = _s; clear (); return _old; }
static int sync_with_stdio(int on);
static void sync_with_stdio() { sync_with_stdio(1); }
static fmtflags bitalloc();
static int xalloc();
void*& pword(int);
void* pword(int) const;
long& iword(int);
long iword(int) const;
class Init {
public:
Init () { }
};
protected:
inline ios(streambuf* sb = 0, ostream* tie_to = 0);
inline virtual ~ios();
inline void init(streambuf* sb, ostream* tie = 0);
};
typedef ios::seek_dir _seek_dir;
class streammarker : private _IO_marker {
friend class streambuf;
void set_offset(int offset) { _pos = offset; }
public:
streammarker(streambuf *sb);
~streammarker();
int saving() { return 1; }
int delta(streammarker&);
int delta();
};
struct streambuf : public _IO_FILE {
friend class ios;
friend class istream;
friend class ostream;
friend class streammarker;
const void *&_vtable() { return *(const void**)((_IO_FILE*)this + 1); }
protected:
static streambuf* _list_all;
_IO_FILE*& xchain() { return _chain; }
void _un_link();
void _link_in();
char* gptr() const
{ return _flags & 0x100 ? _IO_save_base : _IO_read_ptr; }
char* pptr() const { return _IO_write_ptr; }
char* egptr() const
{ return _flags & 0x100 ? _IO_save_end : _IO_read_end; }
char* epptr() const { return _IO_write_end; }
char* pbase() const { return _IO_write_base; }
char* eback() const
{ return _flags & 0x100 ? _IO_save_base : _IO_read_base;}
char* base() const { return _IO_buf_base; }
char* ebuf() const { return _IO_buf_end; }
int blen() const { return _IO_buf_end - _IO_buf_base; }
void xput_char(char c) { *_IO_write_ptr++ = c; }
int xflags() { return _flags ; }
int xflags(int f) {int fl = _flags ; _flags = f; return fl;}
void xsetflags(int f) { _flags |= f; }
void xsetflags(int f, int mask)
{ _flags = (_flags & ~mask) | (f & mask); }
void gbump(int n)
{ _flags & 0x100 ? (_IO_save_base+=n):(_IO_read_ptr+=n);}
void pbump(int n) { _IO_write_ptr += n; }
void setb(char* b, char* eb, int a=0);
void setp(char* p, char* ep)
{ _IO_write_base=_IO_write_ptr=p; _IO_write_end=ep; }
void setg(char* eb, char* g, char *eg) {
if (_flags & 0x100 ) _IO_free_backup_area(this);
_IO_read_base = eb; _IO_read_ptr = g; _IO_read_end = eg; }
char *shortbuf() { return _shortbuf; }
int in_backup() { return _flags & 0x100 ; }
char *Gbase() { return in_backup() ? _IO_save_base : _IO_read_base; }
char *eGptr() { return in_backup() ? _IO_save_end : _IO_read_end; }
char *Bbase() { return in_backup() ? _IO_read_base : _IO_save_base; }
char *Bptr() { return _IO_backup_base; }
char *eBptr() { return in_backup() ? _IO_read_end : _IO_save_end; }
char *Nbase() { return _IO_save_base; }
char *eNptr() { return _IO_save_end; }
int have_backup() { return _IO_save_base != __null ; }
int have_markers() { return _markers != __null ; }
void free_backup_area();
void unsave_markers();
int put_mode() { return _flags & 0x800 ; }
int switch_to_get_mode();
streambuf(int flags=0);
public:
static int flush_all();
static void flush_all_linebuffered();
virtual ~streambuf();
virtual int overflow(int c = (-1) );
virtual int underflow();
virtual int uflow();
virtual int pbackfail(int c);
virtual streamsize xsputn(const char* s, streamsize n);
virtual streamsize xsgetn(char* s, streamsize n);
virtual streampos seekoff(streamoff, _seek_dir, int mode=ios::in|ios::out);
virtual streampos seekpos(streampos pos, int mode = ios::in|ios::out);
streampos pubseekoff(streamoff o, _seek_dir d, int mode=ios::in|ios::out)
{ return _IO_seekoff (this, o, d, mode); }
streampos pubseekpos(streampos pos, int mode = ios::in|ios::out)
{ return _IO_seekpos (this, pos, mode); }
streampos sseekoff(streamoff, _seek_dir, int mode=ios::in|ios::out);
streampos sseekpos(streampos pos, int mode = ios::in|ios::out);
virtual streambuf* setbuf(char* p, int len);
virtual int sync();
virtual int doallocate();
int seekmark(streammarker& mark, int delta = 0);
int sputbackc(char c);
int sungetc();
int unbuffered() { return _flags & 2 ? 1 : 0; }
int linebuffered() { return _flags & 0x200 ? 1 : 0; }
void unbuffered(int i)
{ if (i) _flags |= 2 ; else _flags &= ~2 ; }
void linebuffered(int i)
{ if (i) _flags |= 0x200 ; else _flags &= ~0x200 ; }
int allocate() {
if (base() || unbuffered()) return 0;
else return doallocate(); }
void allocbuf() { if (base() == __null ) doallocbuf(); }
void doallocbuf();
int in_avail() { return _IO_read_end - _IO_read_ptr; }
int out_waiting() { return _IO_write_ptr - _IO_write_base; }
streamsize sputn(const char* s, streamsize n) { return xsputn(s, n); }
streamsize padn(char pad, streamsize n) { return _IO_padn(this, pad, n); }
streamsize sgetn(char* s, streamsize n) { return _IO_sgetn(this, s, n); }
int ignore(int);
int get_column();
int set_column(int);
long sgetline(char* buf, _G_size_t n, char delim, int putback_delim);
int sputc(int c) { return _IO_putc(c, this); }
int sbumpc() { return _IO_getc(this); }
int sgetc() { return (( this )->_IO_read_ptr >= ( this )->_IO_read_end && __underflow ( this ) == (-1) ? (-1) : *(unsigned char *) ( this )->_IO_read_ptr) ; }
int snextc() {
if (_IO_read_ptr >= _IO_read_end && __underflow(this) == (-1) )
return (-1) ;
else return _IO_read_ptr++, sgetc(); }
void stossc() { if (_IO_read_ptr < _IO_read_end) _IO_read_ptr++; }
int vscan(char const *fmt0, __gnuc_va_list ap, ios* stream = __null );
int scan(char const *fmt0 ...);
int vform(char const *fmt0, __gnuc_va_list ap);
int form(char const *fmt0 ...);
virtual streamsize sys_read(char* buf, streamsize size);
virtual streamsize sys_write(const char*, streamsize);
virtual streampos sys_seek(streamoff, _seek_dir);
virtual int sys_close();
virtual int sys_stat(void*);
};
class filebuf : public streambuf {
protected:
void init();
public:
static const int openprot;
filebuf();
filebuf(int fd);
filebuf(int fd, char* p, int len);
~filebuf();
filebuf* attach(int fd);
filebuf* open(const char *filename, const char *mode);
filebuf* open(const char *filename, ios::openmode mode, int prot = 0664);
virtual int underflow();
virtual int overflow(int c = (-1) );
int is_open() const { return _fileno >= 0; }
int fd() const { return is_open() ? _fileno : (-1) ; }
filebuf* close();
virtual int doallocate();
virtual streampos seekoff(streamoff, _seek_dir, int mode=ios::in|ios::out);
virtual streambuf* setbuf(char* p, int len);
streamsize xsputn(const char* s, streamsize n);
streamsize xsgetn(char* s, streamsize n);
virtual int sync();
protected:
int is_reading() { return eback() != egptr(); }
char* cur_ptr() { return is_reading() ? gptr() : pptr(); }
char* file_ptr() { return eGptr(); }
virtual streamsize sys_read(char* buf, streamsize size);
virtual streampos sys_seek(streamoff, _seek_dir);
virtual streamsize sys_write(const char*, streamsize);
virtual int sys_stat(void*);
virtual int sys_close();
};
inline void ios::init(streambuf* sb, ostream* tie_to) {
_state = sb ? ios::goodbit : ios::badbit; _exceptions=0;
_strbuf=sb; _tie = tie_to; _width=0; _fill=' ';
_flags=ios::skipws|ios::dec;
_precision=6; _arrays = 0; }
inline ios::ios(streambuf* sb, ostream* tie_to) { init(sb, tie_to); }
inline ios::~ios() {
if (_arrays) delete [] _arrays;
}
}
# 31 "/usr/local/egcs/include/g++/iostream.h" 2 3
extern "C++" {
class istream; class ostream;
typedef ios& (*__manip)(ios&);
typedef istream& (*__imanip)(istream&);
typedef ostream& (*__omanip)(ostream&);
extern istream& ws(istream& ins);
extern ostream& flush(ostream& outs);
extern ostream& endl(ostream& outs);
extern ostream& ends(ostream& outs);
class ostream : virtual public ios
{
void do_osfx();
public:
ostream() { }
ostream(streambuf* sb, ostream* tied= __null );
int opfx() {
if (!good()) return 0;
else { if (_tie) _tie->flush(); ; return 1;} }
void osfx() { ;
if (flags() & (ios::unitbuf|ios::stdio))
do_osfx(); }
ostream& flush();
ostream& put(char c) { _strbuf->sputc(c); return *this; }
ostream& write(const char *s, streamsize n);
ostream& write(const unsigned char *s, streamsize n)
{ return write((const char*)s, n);}
ostream& write(const signed char *s, streamsize n)
{ return write((const char*)s, n);}
ostream& write(const void *s, streamsize n)
{ return write((const char*)s, n);}
ostream& seekp(streampos);
ostream& seekp(streamoff, _seek_dir);
streampos tellp();
ostream& form(const char *format ...);
ostream& vform(const char *format, __gnuc_va_list args);
ostream& operator<<(char c);
ostream& operator<<(unsigned char c) { return (*this) << (char)c; }
ostream& operator<<(signed char c) { return (*this) << (char)c; }
ostream& operator<<(const char *s);
ostream& operator<<(const unsigned char *s)
{ return (*this) << (const char*)s; }
ostream& operator<<(const signed char *s)
{ return (*this) << (const char*)s; }
ostream& operator<<(const void *p);
ostream& operator<<(int n);
ostream& operator<<(unsigned int n);
ostream& operator<<(long n);
ostream& operator<<(unsigned long n);
__extension__ ostream& operator<<(long long n);
__extension__ ostream& operator<<(unsigned long long n);
ostream& operator<<(short n) {return operator<<((int)n);}
ostream& operator<<(unsigned short n) {return operator<<((unsigned int)n);}
ostream& operator<<(bool b) { return operator<<((int)b); }
ostream& operator<<(double n);
ostream& operator<<(float n) { return operator<<((double)n); }
ostream& operator<<(long double n) { return operator<<((double)n); }
ostream& operator<<(__omanip func) { return (*func)(*this); }
ostream& operator<<(__manip func) {(*func)(*this); return *this;}
ostream& operator<<(streambuf*);
};
class istream : virtual public ios
{
protected:
_G_size_t _gcount;
int _skip_ws();
public:
istream(): _gcount (0) { }
istream(streambuf* sb, ostream*tied= __null );
istream& get(char* ptr, int len, char delim = '\n');
istream& get(unsigned char* ptr, int len, char delim = '\n')
{ return get((char*)ptr, len, delim); }
istream& get(char& c);
istream& get(unsigned char& c) { return get((char&)c); }
istream& getline(char* ptr, int len, char delim = '\n');
istream& getline(unsigned char* ptr, int len, char delim = '\n')
{ return getline((char*)ptr, len, delim); }
istream& get(signed char& c) { return get((char&)c); }
istream& get(signed char* ptr, int len, char delim = '\n')
{ return get((char*)ptr, len, delim); }
istream& getline(signed char* ptr, int len, char delim = '\n')
{ return getline((char*)ptr, len, delim); }
istream& read(char *ptr, streamsize n);
istream& read(unsigned char *ptr, streamsize n)
{ return read((char*)ptr, n); }
istream& read(signed char *ptr, streamsize n)
{ return read((char*)ptr, n); }
istream& read(void *ptr, streamsize n)
{ return read((char*)ptr, n); }
istream& get(streambuf& sb, char delim = '\n');
istream& gets(char **s, char delim = '\n');
int ipfx(int need = 0) {
if (!good()) { set(ios::failbit); return 0; }
else {
;
if (_tie && (need == 0 || rdbuf()->in_avail() < need)) _tie->flush();
if (!need && (flags() & ios::skipws)) return _skip_ws();
else return 1;
}
}
int ipfx0() {
if (!good()) { set(ios::failbit); return 0; }
else {
;
if (_tie) _tie->flush();
if (flags() & ios::skipws) return _skip_ws();
else return 1;
}
}
int ipfx1() {
if (!good()) { set(ios::failbit); return 0; }
else {
;
if (_tie && rdbuf()->in_avail() == 0) _tie->flush();
return 1;
}
}
void isfx() { ; }
int get() { if (!ipfx1()) return (-1) ;
else { int ch = _strbuf->sbumpc();
if (ch == (-1) ) set(ios::eofbit);
return ch;
} }
int peek();
_G_size_t gcount() { return _gcount; }
istream& ignore(int n=1, int delim = (-1) );
int sync ();
istream& seekg(streampos);
istream& seekg(streamoff, _seek_dir);
streampos tellg();
istream& putback(char ch) {
if (good() && _strbuf->sputbackc(ch) == (-1) ) clear(ios::badbit);
return *this;}
istream& unget() {
if (good() && _strbuf->sungetc() == (-1) ) clear(ios::badbit);
return *this;}
istream& scan(const char *format ...);
istream& vscan(const char *format, __gnuc_va_list args);
istream& operator>>(char*);
istream& operator>>(unsigned char* p) { return operator>>((char*)p); }
istream& operator>>(signed char*p) { return operator>>((char*)p); }
istream& operator>>(char& c);
istream& operator>>(unsigned char& c) {return operator>>((char&)c);}
istream& operator>>(signed char& c) {return operator>>((char&)c);}
istream& operator>>(int&);
istream& operator>>(long&);
__extension__ istream& operator>>(long long&);
__extension__ istream& operator>>(unsigned long long&);
istream& operator>>(short&);
istream& operator>>(unsigned int&);
istream& operator>>(unsigned long&);
istream& operator>>(unsigned short&);
istream& operator>>(bool&);
istream& operator>>(float&);
istream& operator>>(double&);
istream& operator>>(long double&);
istream& operator>>( __manip func) {(*func)(*this); return *this;}
istream& operator>>(__imanip func) { return (*func)(*this); }
istream& operator>>(streambuf*);
};
class iostream : public istream, public ostream
{
public:
iostream() { }
iostream(streambuf* sb, ostream*tied= __null );
};
class _IO_istream_withassign : public istream {
public:
_IO_istream_withassign& operator=(istream&);
_IO_istream_withassign& operator=(_IO_istream_withassign& rhs)
{ return operator= (static_cast<istream&> (rhs)); }
};
class _IO_ostream_withassign : public ostream {
public:
_IO_ostream_withassign& operator=(ostream&);
_IO_ostream_withassign& operator=(_IO_ostream_withassign& rhs)
{ return operator= (static_cast<ostream&> (rhs)); }
};
extern _IO_istream_withassign cin;
extern _IO_ostream_withassign cout, cerr;
extern _IO_ostream_withassign clog
__asm__ ("__IO_clog")
;
extern istream& lock(istream& ins);
extern istream& unlock(istream& ins);
extern ostream& lock(ostream& outs);
extern ostream& unlock(ostream& outs);
struct Iostream_init { } ;
inline ios& dec(ios& i)
{ i.setf(ios::dec, ios::dec|ios::hex|ios::oct); return i; }
inline ios& hex(ios& i)
{ i.setf(ios::hex, ios::dec|ios::hex|ios::oct); return i; }
inline ios& oct(ios& i)
{ i.setf(ios::oct, ios::dec|ios::hex|ios::oct); return i; }
}
# 45 "/usr/local/egcs/include/g++/stl_alloc.h" 2 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 1 3
# 342 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 3
# 56 "/usr/local/egcs/include/g++/stl_alloc.h" 2 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdlib.h" 1 3
extern "C" {
# 85 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdlib.h" 3
# 121 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdlib.h" 3
typedef struct div_t {
int quot;
int rem; } div_t;
typedef struct ldiv_t {
long int quot;
long int rem; } ldiv_t;
extern int __getmbcurmax (void) ;
extern int mblen (const char *, size_t) ;
extern size_t mbstowcs (wchar_t *, const char *, size_t) ;
extern int mbtowc (wchar_t *, const char *, size_t) ;
extern size_t wcstombs (char *, const wchar_t *, size_t) ;
extern int wctomb (char *, wchar_t) ;
extern int rpmatch (const char *) ;
extern void *valloc (size_t ) ;
extern double atof (const char *) ;
extern int atoi (const char *) ;
extern long int atol (const char *) ;
extern double strtod (const char *, char **) ;
extern long int strtol (const char *, char **, int ) ;
extern unsigned long int strtoul (const char *, char **, int ) ;
extern int rand (void) ;
extern void srand (unsigned int ) ;
extern void *calloc (size_t , size_t ) ;
extern void free (void *) ;
extern void *malloc (size_t ) ;
extern void *realloc (void *, size_t ) ;
# 190 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdlib.h" 3
extern long a64l (const char *) ;
extern char * l64a (long) ;
extern int ttyslot (void) ;
extern char *ptsname (int) ;
extern void abort (void) ;
extern int atexit (void (*)(void)) ;
extern void exit (int ) ;
extern char *getenv (const char *) ;
extern int system (const char *) ;
extern void *bsearch (const void *, const void *, size_t , size_t , int(*)(const void *, const void *)) ;
extern void qsort (void *, size_t , size_t ,int(*)(const void *, const void *)) ;
extern int abs (int ) ;
extern struct div_t div (int , int ) ;
extern long int labs (long int ) ;
extern struct ldiv_t ldiv (long int , long int ) ;
extern int _Prand_r (unsigned int *) ;
# 275 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdlib.h" 3
extern double drand48 (void) ;
extern double erand48 (unsigned short []) ;
extern long jrand48 (unsigned short []) ;
extern void lcong48 (unsigned short []) ;
extern long lrand48 (void) ;
extern long mrand48 (void) ;
extern long nrand48 (unsigned short []) ;
extern unsigned short *seed48 (unsigned short []) ;
extern void srand48 (long) ;
extern int putenv (const char *) ;
extern void setkey (const char *) ;
# 299 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stdlib.h" 3
extern char *initstate (unsigned int, char *, int) ;
extern char *setstate (char *) ;
extern int grantpt (int) ;
extern int getsubopt (char **, char *const *, char **) ;
extern int random (void) ;
extern int srandom (unsigned int) ;
extern char *realpath (const char *, char *) ;
extern int unlockpt (int) ;
extern int clearenv () ;
extern char *getpass (const char *) ;
extern char *mktemp (char *) ;
extern int mkstemp (char *) ;
char *ecvt (double, int, int *, int *) ;
char *fcvt (double, int, int *, int *) ;
char *gcvt (double, int, char *) ;
}
# 57 "/usr/local/egcs/include/g++/stl_alloc.h" 2 3
# 1 "/usr/local/egcs/alphaev56-dec-osf4.0d/include/assert.h" 1 3
# 19 "/usr/local/egcs/alphaev56-dec-osf4.0d/include/assert.h" 3
extern "C" {
extern void __eprintf (const char *, const char *, unsigned, const char *)
__attribute__ ((noreturn));
}
# 52 "/usr/local/egcs/alphaev56-dec-osf4.0d/include/assert.h" 3
# 59 "/usr/local/egcs/include/g++/stl_alloc.h" 2 3
# 80 "/usr/local/egcs/include/g++/stl_alloc.h" 3
# 90 "/usr/local/egcs/include/g++/stl_alloc.h" 3
# 108 "/usr/local/egcs/include/g++/stl_alloc.h" 3
template <int inst>
class __malloc_alloc_template {
private:
static void *oom_malloc(size_t);
static void *oom_realloc(void *, size_t);
static void (* __malloc_alloc_oom_handler)();
public:
static void * allocate(size_t n)
{
void *result = malloc(n);
if (0 == result) result = oom_malloc(n);
return result;
}
static void deallocate(void *p, size_t )
{
free(p);
}
static void * reallocate(void *p, size_t , size_t new_sz)
{
void * result = realloc(p, new_sz);
if (0 == result) result = oom_realloc(p, new_sz);
return result;
}
static void (* set_malloc_handler(void (*f)()))()
{
void (* old)() = __malloc_alloc_oom_handler;
__malloc_alloc_oom_handler = f;
return(old);
}
};
template <int inst>
void (* __malloc_alloc_template<inst>::__malloc_alloc_oom_handler)() = 0;
template <int inst>
void * __malloc_alloc_template<inst>::oom_malloc(size_t n)
{
void (* my_malloc_handler)();
void *result;
for (;;) {
my_malloc_handler = __malloc_alloc_oom_handler;
if (0 == my_malloc_handler) { cerr << "out of memory" << endl; exit(1) ; }
(*my_malloc_handler)();
result = malloc(n);
if (result) return(result);
}
}
template <int inst>
void * __malloc_alloc_template<inst>::oom_realloc(void *p, size_t n)
{
void (* my_malloc_handler)();
void *result;
for (;;) {
my_malloc_handler = __malloc_alloc_oom_handler;
if (0 == my_malloc_handler) { cerr << "out of memory" << endl; exit(1) ; }
(*my_malloc_handler)();
result = realloc(p, n);
if (result) return(result);
}
}
typedef __malloc_alloc_template<0> malloc_alloc;
template<class T, class Alloc>
class simple_alloc {
public:
static T *allocate(size_t n)
{ return 0 == n? 0 : (T*) Alloc::allocate(n * sizeof (T)); }
static T *allocate(void)
{ return (T*) Alloc::allocate(sizeof (T)); }
static void deallocate(T *p, size_t n)
{ if (0 != n) Alloc::deallocate(p, n * sizeof (T)); }
static void deallocate(T *p)
{ Alloc::deallocate(p, sizeof (T)); }
};
template <class Alloc>
class debug_alloc {
private:
enum {extra = 8};
public:
static void * allocate(size_t n)
{
char *result = (char *)Alloc::allocate(n + extra);
*(size_t *)result = n;
return result + extra;
}
static void deallocate(void *p, size_t n)
{
char * real_p = (char *)p - extra;
((void) (( *(size_t *)real_p == n ) ? 0 : (__eprintf ("%s:%u: failed assertion `%s'\n", "/usr/local/egcs/include/g++/stl_alloc.h" , 256 , "*(size_t *)real_p == n" ), 0) )) ;
Alloc::deallocate(real_p, n + extra);
}
static void * reallocate(void *p, size_t old_sz, size_t new_sz)
{
char * real_p = (char *)p - extra;
((void) (( *(size_t *)real_p == old_sz ) ? 0 : (__eprintf ("%s:%u: failed assertion `%s'\n", "/usr/local/egcs/include/g++/stl_alloc.h" , 263 , "*(size_t *)real_p == old_sz" ), 0) )) ;
char * result = (char *)
Alloc::reallocate(real_p, old_sz + extra, new_sz + extra);
*(size_t *)result = new_sz;
return result + extra;
}
};
template <bool threads, int inst>
class __default_alloc_template {
private:
enum {__ALIGN = 8};
enum {__MAX_BYTES = 128};
enum {__NFREELISTS = __MAX_BYTES/__ALIGN};
static size_t ROUND_UP(size_t bytes) {
return (((bytes) + __ALIGN-1) & ~(__ALIGN - 1));
}
private :
union obj {
union obj * free_list_link;
char client_data[1];
};
private:
static obj * free_list[__NFREELISTS];
static size_t FREELIST_INDEX(size_t bytes) {
return (((bytes) + __ALIGN-1)/__ALIGN - 1);
}
static void *refill(size_t n);
static char *chunk_alloc(size_t size, int &nobjs);
static char *start_free;
static char *end_free;
static size_t heap_size;
# 378 "/usr/local/egcs/include/g++/stl_alloc.h" 3
class lock {
public:
lock() { ; }
~lock() { ; }
};
friend class lock;
public:
static void * allocate(size_t n)
{
obj * * my_free_list;
obj * result;
if (n > (size_t) __MAX_BYTES) {
return(malloc_alloc::allocate(n));
}
my_free_list = free_list + FREELIST_INDEX(n);
result = *my_free_list;
if (result == 0) {
void *r = refill(ROUND_UP(n));
return r;
}
*my_free_list = result -> free_list_link;
return (result);
};
static void deallocate(void *p, size_t n)
{
obj *q = (obj *)p;
obj * * my_free_list;
if (n > (size_t) __MAX_BYTES) {
malloc_alloc::deallocate(p, n);
return;
}
my_free_list = free_list + FREELIST_INDEX(n);
q -> free_list_link = *my_free_list;
*my_free_list = q;
}
static void * reallocate(void *p, size_t old_sz, size_t new_sz);
} ;
typedef __default_alloc_template< false , 0> alloc;
typedef __default_alloc_template<false, 0> single_client_alloc;
template <bool threads, int inst>
char*
__default_alloc_template<threads, inst>::chunk_alloc(size_t size, int& nobjs)
{
char * result;
size_t total_bytes = size * nobjs;
size_t bytes_left = end_free - start_free;
if (bytes_left >= total_bytes) {
result = start_free;
start_free += total_bytes;
return(result);
} else if (bytes_left >= size) {
nobjs = bytes_left/size;
total_bytes = size * nobjs;
result = start_free;
start_free += total_bytes;
return(result);
} else {
size_t bytes_to_get = 2 * total_bytes + ROUND_UP(heap_size >> 4);
if (bytes_left > 0) {
obj * * my_free_list =
free_list + FREELIST_INDEX(bytes_left);
((obj *)start_free) -> free_list_link = *my_free_list;
*my_free_list = (obj *)start_free;
}
start_free = (char *)malloc(bytes_to_get);
if (0 == start_free) {
int i;
obj * * my_free_list, *p;
for (i = size; i <= __MAX_BYTES; i += __ALIGN) {
my_free_list = free_list + FREELIST_INDEX(i);
p = *my_free_list;
if (0 != p) {
*my_free_list = p -> free_list_link;
start_free = (char *)p;
end_free = start_free + i;
return(chunk_alloc(size, nobjs));
}
}
end_free = 0;
start_free = (char *)malloc_alloc::allocate(bytes_to_get);
}
heap_size += bytes_to_get;
end_free = start_free + bytes_to_get;
return(chunk_alloc(size, nobjs));
}
}
template <bool threads, int inst>
void* __default_alloc_template<threads, inst>::refill(size_t n)
{
int nobjs = 20;
char * chunk = chunk_alloc(n, nobjs);
obj * * my_free_list;
obj * result;
obj * current_obj, * next_obj;
int i;
if (1 == nobjs) return(chunk);
my_free_list = free_list + FREELIST_INDEX(n);
result = (obj *)chunk;
*my_free_list = next_obj = (obj *)(chunk + n);
for (i = 1; ; i++) {
current_obj = next_obj;
next_obj = (obj *)((char *)next_obj + n);
if (nobjs - 1 == i) {
current_obj -> free_list_link = 0;
break;
} else {
current_obj -> free_list_link = next_obj;
}
}
return(result);
}
template <bool threads, int inst>
void*
__default_alloc_template<threads, inst>::reallocate(void *p,
size_t old_sz,
size_t new_sz)
{
void * result;
size_t copy_sz;
if (old_sz > (size_t) __MAX_BYTES && new_sz > (size_t) __MAX_BYTES) {
return(realloc(p, new_sz));
}
if (ROUND_UP(old_sz) == ROUND_UP(new_sz)) return(p);
result = allocate(new_sz);
copy_sz = new_sz > old_sz? old_sz : new_sz;
memcpy(result, p, copy_sz);
deallocate(p, old_sz);
return(result);
}
# 653 "/usr/local/egcs/include/g++/stl_alloc.h" 3
template <bool threads, int inst>
char *__default_alloc_template<threads, inst>::start_free = 0;
template <bool threads, int inst>
char *__default_alloc_template<threads, inst>::end_free = 0;
template <bool threads, int inst>
size_t __default_alloc_template<threads, inst>::heap_size = 0;
template <bool threads, int inst>
__default_alloc_template<threads, inst>::obj *
__default_alloc_template<threads, inst> ::free_list[
__default_alloc_template<threads, inst>::__NFREELISTS
] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
# 21 "/usr/local/egcs/include/g++/alloc.h" 2 3
# 38 "/usr/local/egcs/include/g++/alloc.h" 3
# 39 "/usr/local/egcs/include/g++/std/bastring.h" 2 3
extern "C++" {
class istream; class ostream;
# 1 "/usr/local/egcs/include/g++/iterator" 1 3
# 1 "/usr/local/egcs/include/g++/stl_relops.h" 1 3
template <class T>
inline bool operator!=(const T& x, const T& y) {
return !(x == y);
}
template <class T>
inline bool operator>(const T& x, const T& y) {
return y < x;
}
template <class T>
inline bool operator<=(const T& x, const T& y) {
return !(y < x);
}
template <class T>
inline bool operator>=(const T& x, const T& y) {
return !(x < y);
}
# 31 "/usr/local/egcs/include/g++/iterator" 2 3
# 1 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 1 3
# 342 "/usr/local/egcs/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.60/include/stddef.h" 3
# 32 "/usr/local/egcs/include/g++/iterator" 2 3
# 1 "/usr/local/egcs/include/g++/stl_iterator.h" 1 3
struct input_iterator_tag {};
struct output_iterator_tag {};
struct forward_iterator_tag : public input_iterator_tag {};
struct bidirectional_iterator_tag : public forward_iterator_tag {};
struct random_access_iterator_tag : public bidirectional_iterator_tag {};
template <class T, class Distance> struct input_iterator {
typedef input_iterator_tag iterator_category;
typedef T value_type;
typedef Distance difference_type;
typedef T* pointer;
typedef T& reference;
};
struct output_iterator {
typedef output_iterator_tag iterator_category;
typedef void value_type;
typedef void difference_type;
typedef void pointer;
typedef void reference;
};
template <class T, class Distance> struct forward_iterator {
typedef forward_iterator_tag iterator_category;
typedef T value_type;
typedef Distance difference_type;
typedef T* pointer;
typedef T& reference;
};
template <class T, class Distance> struct bidirectional_iterator {
typedef bidirectional_iterator_tag iterator_category;
typedef T value_type;
typedef Distance difference_type;
typedef T* pointer;
typedef T& reference;
};
template <class T, class Distance> struct random_access_iterator {
typedef random_access_iterator_tag iterator_category;
typedef T value_type;
typedef Distance difference_type;
typedef T* pointer;
typedef T& reference;
};
# 93 "/usr/local/egcs/include/g++/stl_iterator.h" 3
template <class Iterator>
struct iterator_traits {
typedef typename Iterator::iterator_category iterator_category;
typedef typename Iterator::value_type value_type;
typedef typename Iterator::difference_type difference_type;
typedef typename Iterator::pointer pointer;
typedef typename Iterator::reference reference;
};
template <class T>
struct iterator_traits<T*> {
typedef random_access_iterator_tag iterator_category;
typedef T value_type;
typedef ptrdiff_t difference_type;
typedef T* pointer;
typedef T& reference;
};
template <class T>
struct iterator_traits<const T*> {
typedef random_access_iterator_tag iterator_category;
typedef T value_type;
typedef ptrdiff_t difference_type;
typedef const T* pointer;
typedef const T& reference;
};
template <class Iterator>
inline typename iterator_traits<Iterator>::iterator_category
iterator_category(const Iterator&) {
typedef typename iterator_traits<Iterator>::iterator_category category;
return category();
}
template <class Iterator>
inline typename iterator_traits<Iterator>::difference_type*
distance_type(const Iterator&) {
return static_cast<typename iterator_traits<Iterator>::difference_type*>(0);
}
template <class Iterator>
inline typename iterator_traits<Iterator>::value_type*
value_type(const Iterator&) {
return static_cast<typename iterator_traits<Iterator>::value_type*>(0);
}
# 226 "/usr/local/egcs/include/g++/stl_iterator.h" 3
template <class InputIterator, class Distance>
inline void __distance(InputIterator first, InputIterator last, Distance& n,
input_iterator_tag) {
while (first != last) { ++first; ++n; }
}
template <class RandomAccessIterator, class Distance>
inline void __distance(RandomAccessIterator first, RandomAccessIterator last,
Distance& n, random_access_iterator_tag) {
n += last - first;
}
template <class InputIterator, class Distance>
inline void distance(InputIterator first, InputIterator last, Distance& n) {
__distance(first, last, n, iterator_category(first));
}
template <class InputIterator>
inline iterator_traits<InputIterator>::difference_type
__distance(InputIterator first, InputIterator last, input_iterator_tag) {
iterator_traits<InputIterator>::difference_type n = 0;
while (first != last) {
++first; ++n;
}
return n;
}
template <class RandomAccessIterator>
inline iterator_traits<RandomAccessIterator>::difference_type
__distance(RandomAccessIterator first, RandomAccessIterator last,
random_access_iterator_tag) {
return last - first;
}
template <class InputIterator>
inline iterator_traits<InputIterator>::difference_type
distance(InputIterator first, InputIterator last) {
typedef typename iterator_traits<InputIterator>::iterator_category category;
return __distance(first, last, category());
}
template <class InputIterator, class Distance>
inline void __advance(InputIterator& i, Distance n, input_iterator_tag) {
while (n--) ++i;
}
template <class BidirectionalIterator, class Distance>
inline void __advance(BidirectionalIterator& i, Distance n,
bidirectional_iterator_tag) {
if (n >= 0)
while (n--) ++i;
else
while (n++) --i;
}
template <class RandomAccessIterator, class Distance>
inline void __advance(RandomAccessIterator& i, Distance n,
random_access_iterator_tag) {
i += n;
}
template <class InputIterator, class Distance>
inline void advance(InputIterator& i, Distance n) {
__advance(i, n, iterator_category(i));
}
template <class Container>
class back_insert_iterator {
protected:
Container* container;
public:
typedef output_iterator_tag iterator_category;
typedef void value_type;
typedef void difference_type;
typedef void pointer;
typedef void reference;
explicit back_insert_iterator(Container& x) : container(&x) {}
back_insert_iterator<Container>&
operator=(const typename Container::value_type& value) {
container->push_back(value);
return *this;
}
back_insert_iterator<Container>& operator*() { return *this; }
back_insert_iterator<Container>& operator++() { return *this; }
back_insert_iterator<Container>& operator++(int) { return *this; }
};
# 337 "/usr/local/egcs/include/g++/stl_iterator.h" 3
template <class Container>
inline back_insert_iterator<Container> back_inserter(Container& x) {
return back_insert_iterator<Container>(x);
}
template <class Container>
class front_insert_iterator {
protected:
Container* container;
public:
typedef output_iterator_tag iterator_category;
typedef void value_type;
typedef void difference_type;
typedef void pointer;
typedef void reference;
explicit front_insert_iterator(Container& x) : container(&x) {}
front_insert_iterator<Container>&
operator=(const typename Container::value_type& value) {
container->push_front(value);
return *this;
}
front_insert_iterator<Container>& operator*() { return *this; }
front_insert_iterator<Container>& operator++() { return *this; }
front_insert_iterator<Container>& operator++(int) { return *this; }
};
# 375 "/usr/local/egcs/include/g++/stl_iterator.h" 3
template <class Container>
inline front_insert_iterator<Container> front_inserter(Container& x) {
return front_insert_iterator<Container>(x);
}
template <class Container>
class insert_iterator {
protected:
Container* container;
typename Container::iterator iter;
public:
typedef output_iterator_tag iterator_category;
typedef void value_type;
typedef void difference_type;
typedef void pointer;
typedef void reference;
insert_iterator(Container& x, typename Container::iterator i)
: container(&x), iter(i) {}
insert_iterator<Container>&
operator=(const typename Container::value_type& value) {
iter = container->insert(iter, value);
++iter;
return *this;
}
insert_iterator<Container>& operator*() { return *this; }
insert_iterator<Container>& operator++() { return *this; }
insert_iterator<Container>& operator++(int) { return *this; }
};
# 416 "/usr/local/egcs/include/g++/stl_iterator.h" 3
template <class Container, class Iterator>
inline insert_iterator<Container> inserter(Container& x, Iterator i) {
typedef typename Container::iterator iter;
return insert_iterator<Container>(x, iter(i));
}
template <class BidirectionalIterator, class T, class Reference = T&,
class Distance = ptrdiff_t>
class reverse_bidirectional_iterator {
typedef reverse_bidirectional_iterator<BidirectionalIterator, T, Reference,
Distance> self;
protected:
BidirectionalIterator current;
public:
typedef bidirectional_iterator_tag iterator_category;
typedef T value_type;
typedef Distance difference_type;
typedef T* pointer;
typedef Reference reference;
reverse_bidirectional_iterator() {}
explicit reverse_bidirectional_iterator(BidirectionalIterator x)
: current(x) {}
BidirectionalIterator base() const { return current; }
Reference operator*() const {
BidirectionalIterator tmp = current;
return *--tmp;
}
pointer operator->() const { return &(operator*()); }
self& operator++() {
--current;
return *this;
}
self operator++(int) {
self tmp = *this;
--current;
return tmp;
}
self& operator--() {
++current;
return *this;
}
self operator--(int) {
self tmp = *this;
++current;
return tmp;
}
};
# 501 "/usr/local/egcs/include/g++/stl_iterator.h" 3
template <class BidirectionalIterator, class T, class Reference,
class Distance>
inline bool operator==(
const reverse_bidirectional_iterator<BidirectionalIterator, T, Reference,
Distance>& x,
const reverse_bidirectional_iterator<BidirectionalIterator, T, Reference,
Distance>& y) {
return x.base() == y.base();
}
template <class Iterator>
class reverse_iterator
{
protected:
Iterator current;
public:
typedef typename iterator_traits<Iterator>::iterator_category
iterator_category;
typedef typename iterator_traits<Iterator>::value_type
value_type;
typedef typename iterator_traits<Iterator>::difference_type
difference_type;
typedef typename iterator_traits<Iterator>::pointer
pointer;
typedef typename iterator_traits<Iterator>::reference
reference;
typedef Iterator iterator_type;
typedef reverse_iterator<Iterator> self;
public:
reverse_iterator() {}
explicit reverse_iterator(iterator_type x) : current(x) {}
reverse_iterator(const self& x) : current(x.current) {}
template <class Iter>
reverse_iterator(const reverse_iterator<Iter>& x) : current(x.current) {}
iterator_type base() const { return current; }
reference operator*() const {
Iterator tmp = current;
return *--tmp;
}
pointer operator->() const { return &(operator*()); }
self& operator++() {
--current;
return *this;
}
self operator++(int) {
self tmp = *this;
--current;
return tmp;
}
self& operator--() {
++current;
return *this;
}
self operator--(int) {
self tmp = *this;
++current;
return tmp;
}
self operator+(difference_type n) const {
return self(current - n);
}
self& operator+=(difference_type n) {
current -= n;
return *this;
}
self operator-(difference_type n) const {
return self(current + n);
}
self& operator-=(difference_type n) {
current += n;
return *this;
}
reference operator[](difference_type n) const { return *(*this + n); }
};
template <class Iterator>
inline bool operator==(const reverse_iterator<Iterator>& x,
const reverse_iterator<Iterator>& y) {
return x.base() == y.base();
}
template <class Iterator>
inline bool operator<(const reverse_iterator<Iterator>& x,
const reverse_iterator<Iterator>& y) {
return y.base() < x.base();
}
template <class Iterator>
inline typename reverse_iterator<Iterator>::difference_type
operator-(const reverse_iterator<Iterator>& x,
const reverse_iterator<Iterator>& y) {
return y.base() - x.base();
}
template <class Iterator>
inline reverse_iterator<Iterator>
operator+(reverse_iterator<Iterator>::difference_type n,
const reverse_iterator<Iterator>& x) {
return reverse_iterator<Iterator>(x.base() - n);
}
# 738 "/usr/local/egcs/include/g++/stl_iterator.h" 3
template <class T, class Distance = ptrdiff_t>
class istream_iterator {
friend bool
operator== <> (const istream_iterator<T, Distance>& x,
const istream_iterator<T, Distance>& y);
protected:
istream* stream;
T value;
bool end_marker;
void read() {
end_marker = (*stream) ? true : false;
if (end_marker) *stream >> value;
end_marker = (*stream) ? true : false;
}
public:
typedef input_iterator_tag iterator_category;
typedef T value_type;
typedef Distance difference_type;
typedef const T* pointer;
typedef const T& reference;
istream_iterator() : stream(&cin), end_marker(false) {}
istream_iterator(istream& s) : stream(&s) { read(); }
reference operator*() const { return value; }
pointer operator->() const { return &(operator*()); }
istream_iterator<T, Distance>& operator++() {
read();
return *this;
}
istream_iterator<T, Distance> operator++(int) {
istream_iterator<T, Distance> tmp = *this;
read();
return tmp;
}
};
# 794 "/usr/local/egcs/include/g++/stl_iterator.h" 3
template <class T, class Distance>
inline bool operator==(const istream_iterator<T, Distance>& x,
const istream_iterator<T, Distance>& y) {
return x.stream == y.stream && x.end_marker == y.end_marker ||
x.end_marker == false && y.end_marker == false;
}
template <class T>
class ostream_iterator {
protected:
ostream* stream;
const char* string;
public:
typedef output_iterator_tag iterator_category;
typedef void value_type;
typedef void difference_type;
typedef void pointer;
typedef void reference;
ostream_iterator(ostream& s) : stream(&s), string(0) {}
ostream_iterator(ostream& s, const char* c) : stream(&s), string(c) {}
ostream_iterator<T>& operator=(const T& value) {
*stream << value;
if (string) *stream << string;
return *this;
}
ostream_iterator<T>& operator*() { return *this; }
ostream_iterator<T>& operator++() { return *this; }
ostream_iterator<T>& operator++(int) { return *this; }
};
# 835 "/usr/local/egcs/include/g++/stl_iterator.h" 3
# 34 "/usr/local/egcs/include/g++/iterator" 2 3
# 44 "/usr/local/egcs/include/g++/std/bastring.h" 2 3
extern void __out_of_range (const char *);
extern void __length_error (const char *);
template <class charT, class traits = string_char_traits<charT>,
class Allocator = alloc >
class basic_string
{
private:
struct Rep {
size_t len, res, ref;
bool selfish;
charT* data () { return reinterpret_cast<charT *>(this + 1); }
charT& operator[] (size_t s) { return data () [s]; }
charT* grab () { if (selfish) return clone (); ++ref; return data (); }
void release () { if (--ref == 0) delete this; }
inline static void * operator new (size_t, size_t);
inline static void operator delete (void *);
inline static Rep* create (size_t);
charT* clone ();
inline void copy (size_t, const charT *, size_t);
inline void move (size_t, const charT *, size_t);
inline void set (size_t, const charT, size_t);
inline static bool excess_slop (size_t, size_t);
inline static size_t frob_size (size_t);
private:
Rep &operator= (const Rep &);
};
public:
typedef traits traits_type;
typedef typename traits::char_type value_type;
typedef Allocator allocator_type;
typedef size_t size_type;
typedef ptrdiff_t difference_type;
typedef charT& reference;
typedef const charT& const_reference;
typedef charT* pointer;
typedef const charT* const_pointer;
typedef pointer iterator;
typedef const_pointer const_iterator;
typedef ::reverse_iterator<iterator> reverse_iterator;
typedef ::reverse_iterator<const_iterator> const_reverse_iterator;
static const size_type npos = static_cast<size_type>(-1);
private:
Rep *rep () const { return reinterpret_cast<Rep *>(dat) - 1; }
void repup (Rep *p) { rep ()->release (); dat = p->data (); }
public:
const charT* data () const
{ return rep ()->data(); }
size_type length () const
{ return rep ()->len; }
size_type size () const
{ return rep ()->len; }
size_type capacity () const
{ return rep ()->res; }
size_type max_size () const
{ return (npos - 1)/sizeof (charT); }
bool empty () const
{ return size () == 0; }
basic_string& operator= (const basic_string& str)
{
if (&str != this) { rep ()->release (); dat = str.rep ()->grab (); }
return *this;
}
explicit basic_string (): dat (nilRep.grab ()) { }
basic_string (const basic_string& str): dat (str.rep ()->grab ()) { }
basic_string (const basic_string& str, size_type pos, size_type n = npos)
: dat (nilRep.grab ()) { assign (str, pos, n); }
basic_string (const charT* s, size_type n)
: dat (nilRep.grab ()) { assign (s, n); }
basic_string (const charT* s)
: dat (nilRep.grab ()) { assign (s); }
basic_string (size_type n, charT c)
: dat (nilRep.grab ()) { assign (n, c); }
template<class InputIterator>
basic_string(InputIterator begin, InputIterator end)
: dat (nilRep.grab ()) { assign (begin, end); }
~basic_string ()
{ rep ()->release (); }
void swap (basic_string &s) { charT *d = dat; dat = s.dat; s.dat = d; }
basic_string& append (const basic_string& str, size_type pos = 0,
size_type n = npos)
{ return replace (length (), 0, str, pos, n); }
basic_string& append (const charT* s, size_type n)
{ return replace (length (), 0, s, n); }
basic_string& append (const charT* s)
{ return append (s, traits::length (s)); }
basic_string& append (size_type n, charT c)
{ return replace (length (), 0, n, c); }
template<class InputIterator>
basic_string& append(InputIterator first, InputIterator last)
{ return replace (iend (), iend (), first, last); }
basic_string& assign (const basic_string& str, size_type pos = 0,
size_type n = npos)
{ return replace (0, npos, str, pos, n); }
basic_string& assign (const charT* s, size_type n)
{ return replace (0, npos, s, n); }
basic_string& assign (const charT* s)
{ return assign (s, traits::length (s)); }
basic_string& assign (size_type n, charT c)
{ return replace (0, npos, n, c); }
template<class InputIterator>
basic_string& assign(InputIterator first, InputIterator last)
{ return replace (ibegin (), iend (), first, last); }
basic_string& operator= (const charT* s)
{ return assign (s); }
basic_string& operator= (charT c)
{ return assign (1, c); }
basic_string& operator+= (const basic_string& rhs)
{ return append (rhs); }
basic_string& operator+= (const charT* s)
{ return append (s); }
basic_string& operator+= (charT c)
{ return append (1, c); }
basic_string& insert (size_type pos1, const basic_string& str,
size_type pos2 = 0, size_type n = npos)
{ return replace (pos1, 0, str, pos2, n); }
basic_string& insert (size_type pos, const charT* s, size_type n)
{ return replace (pos, 0, s, n); }
basic_string& insert (size_type pos, const charT* s)
{ return insert (pos, s, traits::length (s)); }
basic_string& insert (size_type pos, size_type n, charT c)
{ return replace (pos, 0, n, c); }
iterator insert(iterator p, charT c)
{ size_type __o = p - ibegin ();
insert (p - ibegin (), 1, c); selfish ();
return ibegin () + __o; }
iterator insert(iterator p, size_type n, charT c)
{ size_type __o = p - ibegin ();
insert (p - ibegin (), n, c); selfish ();
return ibegin () + __o; }
template<class InputIterator>
void insert(iterator p, InputIterator first, InputIterator last)
{ replace (p, p, first, last); }
basic_string& erase (size_type pos = 0, size_type n = npos)
{ return replace (pos, n, (size_type)0, (charT)0); }
iterator erase(iterator p)
{ size_type __o = p - begin();
replace (__o, 1, (size_type)0, (charT)0); selfish ();
return ibegin() + __o; }
iterator erase(iterator f, iterator l)
{ size_type __o = f - ibegin();
replace (__o, l-f, (size_type)0, (charT)0);selfish ();
return ibegin() + __o; }
basic_string& replace (size_type pos1, size_type n1, const basic_string& str,
size_type pos2 = 0, size_type n2 = npos);
basic_string& replace (size_type pos, size_type n1, const charT* s,
size_type n2);
basic_string& replace (size_type pos, size_type n1, const charT* s)
{ return replace (pos, n1, s, traits::length (s)); }
basic_string& replace (size_type pos, size_type n1, size_type n2, charT c);
basic_string& replace (size_type pos, size_type n, charT c)
{ return replace (pos, n, 1, c); }
basic_string& replace (iterator i1, iterator i2, const basic_string& str)
{ return replace (i1 - ibegin (), i2 - i1, str); }
basic_string& replace (iterator i1, iterator i2, const charT* s, size_type n)
{ return replace (i1 - ibegin (), i2 - i1, s, n); }
basic_string& replace (iterator i1, iterator i2, const charT* s)
{ return replace (i1 - ibegin (), i2 - i1, s); }
basic_string& replace (iterator i1, iterator i2, size_type n, charT c)
{ return replace (i1 - ibegin (), i2 - i1, n, c); }
template<class InputIterator>
basic_string& replace(iterator i1, iterator i2,
InputIterator j1, InputIterator j2);
private:
static charT eos () { return traits::eos (); }
void unique () { if (rep ()->ref > 1) alloc (length (), true); }
void selfish () { unique (); rep ()->selfish = true; }
public:
charT operator[] (size_type pos) const
{
if (pos == length ())
return eos ();
return data ()[pos];
}
reference operator[] (size_type pos)
{ selfish (); return (*rep ())[pos]; }
reference at (size_type pos)
{
do { if ( pos >= length () ) __out_of_range ("pos >= length ()"); } while (0) ;
return (*this)[pos];
}
const_reference at (size_type pos) const
{
do { if ( pos >= length () ) __out_of_range ("pos >= length ()"); } while (0) ;
return data ()[pos];
}
private:
void terminate () const
{ traits::assign ((*rep ())[length ()], eos ()); }
public:
const charT* c_str () const
{ if (length () == 0) return ""; terminate (); return data (); }
void resize (size_type n, charT c);
void resize (size_type n)
{ resize (n, eos ()); }
void reserve (size_type) { }
size_type copy (charT* s, size_type n, size_type pos = 0) const;
size_type find (const basic_string& str, size_type pos = 0) const
{ return find (str.data(), pos, str.length()); }
size_type find (const charT* s, size_type pos, size_type n) const;
size_type find (const charT* s, size_type pos = 0) const
{ return find (s, pos, traits::length (s)); }
size_type find (charT c, size_type pos = 0) const;
size_type rfind (const basic_string& str, size_type pos = npos) const
{ return rfind (str.data(), pos, str.length()); }
size_type rfind (const charT* s, size_type pos, size_type n) const;
size_type rfind (const charT* s, size_type pos = npos) const
{ return rfind (s, pos, traits::length (s)); }
size_type rfind (charT c, size_type pos = npos) const;
size_type find_first_of (const basic_string& str, size_type pos = 0) const
{ return find_first_of (str.data(), pos, str.length()); }
size_type find_first_of (const charT* s, size_type pos, size_type n) const;
size_type find_first_of (const charT* s, size_type pos = 0) const
{ return find_first_of (s, pos, traits::length (s)); }
size_type find_first_of (charT c, size_type pos = 0) const
{ return find (c, pos); }
size_type find_last_of (const basic_string& str, size_type pos = npos) const
{ return find_last_of (str.data(), pos, str.length()); }
size_type find_last_of (const charT* s, size_type pos, size_type n) const;
size_type find_last_of (const charT* s, size_type pos = npos) const
{ return find_last_of (s, pos, traits::length (s)); }
size_type find_last_of (charT c, size_type pos = npos) const
{ return rfind (c, pos); }
size_type find_first_not_of (const basic_string& str, size_type pos = 0) const
{ return find_first_not_of (str.data(), pos, str.length()); }
size_type find_first_not_of (const charT* s, size_type pos, size_type n) const;
size_type find_first_not_of (const charT* s, size_type pos = 0) const
{ return find_first_not_of (s, pos, traits::length (s)); }
size_type find_first_not_of (charT c, size_type pos = 0) const;
size_type find_last_not_of (const basic_string& str, size_type pos = npos) const
{ return find_last_not_of (str.data(), pos, str.length()); }
size_type find_last_not_of (const charT* s, size_type pos, size_type n) const;
size_type find_last_not_of (const charT* s, size_type pos = npos) const
{ return find_last_not_of (s, pos, traits::length (s)); }
size_type find_last_not_of (charT c, size_type pos = npos) const;
basic_string substr (size_type pos = 0, size_type n = npos) const
{ return basic_string (*this, pos, n); }
int compare (const basic_string& str, size_type pos = 0, size_type n = npos) const;
int compare (const charT* s, size_type pos, size_type n) const;
int compare (const charT* s, size_type pos = 0) const
{ return compare (s, pos, traits::length (s)); }
iterator begin () { selfish (); return &(*this)[0]; }
iterator end () { selfish (); return &(*this)[length ()]; }
private:
iterator ibegin () const { return &(*rep ())[0]; }
iterator iend () const { return &(*rep ())[length ()]; }
public:
const_iterator begin () const { return ibegin (); }
const_iterator end () const { return iend (); }
reverse_iterator rbegin() { return reverse_iterator (end ()); }
const_reverse_iterator rbegin() const
{ return const_reverse_iterator (end ()); }
reverse_iterator rend() { return reverse_iterator (begin ()); }
const_reverse_iterator rend() const
{ return const_reverse_iterator (begin ()); }
private:
void alloc (size_type size, bool save);
static size_type _find (const charT* ptr, charT c, size_type xpos, size_type len);
inline bool check_realloc (size_type s) const;
static Rep nilRep;
charT *dat;
};
template <class charT, class traits, class Allocator> template <class InputIterator>
basic_string <charT, traits, Allocator>& basic_string <charT, traits, Allocator>::
replace (iterator i1, iterator i2, InputIterator j1, InputIterator j2)
{
const size_type len = length ();
size_type pos = i1 - ibegin ();
size_type n1 = i2 - i1;
size_type n2 = j2 - j1;
do { if ( pos > len ) __out_of_range ("pos > len"); } while (0) ;
if (n1 > len - pos)
n1 = len - pos;
do { if ( len - n1 > max_size () - n2 ) __length_error ("len - n1 > max_size () - n2"); } while (0) ;
size_t newlen = len - n1 + n2;
if (check_realloc (newlen))
{
Rep *p = Rep::create (newlen);
p->copy (0, data (), pos);
p->copy (pos + n2, data () + pos + n1, len - (pos + n1));
for (; j1 != j2; ++j1, ++pos)
traits::assign ((*p)[pos], *j1);
repup (p);
}
else
{
rep ()->move (pos + n2, data () + pos + n1, len - (pos + n1));
for (; j1 != j2; ++j1, ++pos)
traits::assign ((*rep ())[pos], *j1);
}
rep ()->len = newlen;
return *this;
}
template <class charT, class traits, class Allocator>
inline basic_string <charT, traits, Allocator>
operator+ (const basic_string <charT, traits, Allocator>& lhs,
const basic_string <charT, traits, Allocator>& rhs)
{
basic_string <charT, traits, Allocator> str (lhs);
str.append (rhs);
return str;
}
template <class charT, class traits, class Allocator>
inline basic_string <charT, traits, Allocator>
operator+ (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
{
basic_string <charT, traits, Allocator> str (lhs);
str.append (rhs);
return str;
}
template <class charT, class traits, class Allocator>
inline basic_string <charT, traits, Allocator>
operator+ (charT lhs, const basic_string <charT, traits, Allocator>& rhs)
{
basic_string <charT, traits, Allocator> str (1, lhs);
str.append (rhs);
return str;
}
template <class charT, class traits, class Allocator>
inline basic_string <charT, traits, Allocator>
operator+ (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
{
basic_string <charT, traits, Allocator> str (lhs);
str.append (rhs);
return str;
}
template <class charT, class traits, class Allocator>
inline basic_string <charT, traits, Allocator>
operator+ (const basic_string <charT, traits, Allocator>& lhs, charT rhs)
{
basic_string <charT, traits, Allocator> str (lhs);
str.append (1, rhs);
return str;
}
template <class charT, class traits, class Allocator>
inline bool
operator== (const basic_string <charT, traits, Allocator>& lhs,
const basic_string <charT, traits, Allocator>& rhs)
{
return (lhs.compare (rhs) == 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator== (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
{
return (rhs.compare (lhs) == 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator== (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
{
return (lhs.compare (rhs) == 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator!= (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
{
return (rhs.compare (lhs) != 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator!= (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
{
return (lhs.compare (rhs) != 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator< (const basic_string <charT, traits, Allocator>& lhs,
const basic_string <charT, traits, Allocator>& rhs)
{
return (lhs.compare (rhs) < 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator< (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
{
return (rhs.compare (lhs) > 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator< (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
{
return (lhs.compare (rhs) < 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator> (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
{
return (rhs.compare (lhs) < 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator> (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
{
return (lhs.compare (rhs) > 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator<= (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
{
return (rhs.compare (lhs) >= 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator<= (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
{
return (lhs.compare (rhs) <= 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator>= (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
{
return (rhs.compare (lhs) <= 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator>= (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
{
return (lhs.compare (rhs) >= 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator!= (const basic_string <charT, traits, Allocator>& lhs,
const basic_string <charT, traits, Allocator>& rhs)
{
return (lhs.compare (rhs) != 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator> (const basic_string <charT, traits, Allocator>& lhs,
const basic_string <charT, traits, Allocator>& rhs)
{
return (lhs.compare (rhs) > 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator<= (const basic_string <charT, traits, Allocator>& lhs,
const basic_string <charT, traits, Allocator>& rhs)
{
return (lhs.compare (rhs) <= 0);
}
template <class charT, class traits, class Allocator>
inline bool
operator>= (const basic_string <charT, traits, Allocator>& lhs,
const basic_string <charT, traits, Allocator>& rhs)
{
return (lhs.compare (rhs) >= 0);
}
class istream; class ostream;
template <class charT, class traits, class Allocator> istream&
operator>> (istream&, basic_string <charT, traits, Allocator>&);
template <class charT, class traits, class Allocator> ostream&
operator<< (ostream&, const basic_string <charT, traits, Allocator>&);
template <class charT, class traits, class Allocator> istream&
getline (istream&, basic_string <charT, traits, Allocator>&, charT delim = '\n');
}
# 1 "/usr/local/egcs/include/g++/std/bastring.cc" 1 3
extern "C++" {
template <class charT, class traits, class Allocator>
inline void * basic_string <charT, traits, Allocator>::Rep::
operator new (size_t s, size_t extra)
{
return Allocator::allocate(s + extra * sizeof (charT));
}
template <class charT, class traits, class Allocator>
inline void basic_string <charT, traits, Allocator>::Rep::
operator delete (void * ptr)
{
Allocator::deallocate(ptr, sizeof(Rep) +
reinterpret_cast<Rep *>(ptr)->res *
sizeof (charT));
}
template <class charT, class traits, class Allocator>
inline size_t basic_string <charT, traits, Allocator>::Rep::
frob_size (size_t s)
{
size_t i = 16;
while (i < s) i *= 2;
return i;
}
template <class charT, class traits, class Allocator>
inline basic_string <charT, traits, Allocator>::Rep *
basic_string <charT, traits, Allocator>::Rep::
create (size_t extra)
{
extra = frob_size (extra + 1);
Rep *p = new (extra) Rep;
p->res = extra;
p->ref = 1;
p->selfish = false;
return p;
}
template <class charT, class traits, class Allocator>
charT * basic_string <charT, traits, Allocator>::Rep::
clone ()
{
Rep *p = Rep::create (len);
p->copy (0, data (), len);
p->len = len;
return p->data ();
}
template <class charT, class traits, class Allocator>
inline bool basic_string <charT, traits, Allocator>::Rep::
excess_slop (size_t s, size_t r)
{
return 2 * (s <= 16 ? 16 : s) < r;
}
template <class charT, class traits, class Allocator>
inline bool basic_string <charT, traits, Allocator>::
check_realloc (basic_string::size_type s) const
{
s += sizeof (charT);
rep ()->selfish = false;
return (rep ()->ref > 1
|| s > capacity ()
|| Rep::excess_slop (s, capacity ()));
}
template <class charT, class traits, class Allocator>
void basic_string <charT, traits, Allocator>::
alloc (basic_string::size_type size, bool save)
{
if (! check_realloc (size))
return;
Rep *p = Rep::create (size);
if (save)
{
p->copy (0, data (), length ());
p->len = length ();
}
else
p->len = 0;
repup (p);
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>&
basic_string <charT, traits, Allocator>::
replace (size_type pos1, size_type n1,
const basic_string& str, size_type pos2, size_type n2)
{
const size_t len2 = str.length ();
if (pos1 == 0 && n1 >= length () && pos2 == 0 && n2 >= len2)
return operator= (str);
do { if ( pos2 > len2 ) __out_of_range ("pos2 > len2"); } while (0) ;
if (n2 > len2 - pos2)
n2 = len2 - pos2;
return replace (pos1, n1, str.data () + pos2, n2);
}
template <class charT, class traits, class Allocator>
inline void basic_string <charT, traits, Allocator>::Rep::
copy (size_t pos, const charT *s, size_t n)
{
if (n)
traits::copy (data () + pos, s, n);
}
template <class charT, class traits, class Allocator>
inline void basic_string <charT, traits, Allocator>::Rep::
move (size_t pos, const charT *s, size_t n)
{
if (n)
traits::move (data () + pos, s, n);
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>&
basic_string <charT, traits, Allocator>::
replace (size_type pos, size_type n1, const charT* s, size_type n2)
{
const size_type len = length ();
do { if ( pos > len ) __out_of_range ("pos > len"); } while (0) ;
if (n1 > len - pos)
n1 = len - pos;
do { if ( len - n1 > max_size () - n2 ) __length_error ("len - n1 > max_size () - n2"); } while (0) ;
size_t newlen = len - n1 + n2;
if (check_realloc (newlen))
{
Rep *p = Rep::create (newlen);
p->copy (0, data (), pos);
p->copy (pos + n2, data () + pos + n1, len - (pos + n1));
p->copy (pos, s, n2);
repup (p);
}
else
{
rep ()->move (pos + n2, data () + pos + n1, len - (pos + n1));
rep ()->copy (pos, s, n2);
}
rep ()->len = newlen;
return *this;
}
template <class charT, class traits, class Allocator>
inline void basic_string <charT, traits, Allocator>::Rep::
set (size_t pos, const charT c, size_t n)
{
traits::set (data () + pos, c, n);
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>& basic_string <charT, traits, Allocator>::
replace (size_type pos, size_type n1, size_type n2, charT c)
{
const size_t len = length ();
do { if ( pos > len ) __out_of_range ("pos > len"); } while (0) ;
if (n1 > len - pos)
n1 = len - pos;
do { if ( len - n1 > max_size () - n2 ) __length_error ("len - n1 > max_size () - n2"); } while (0) ;
size_t newlen = len - n1 + n2;
if (check_realloc (newlen))
{
Rep *p = Rep::create (newlen);
p->copy (0, data (), pos);
p->copy (pos + n2, data () + pos + n1, len - (pos + n1));
p->set (pos, c, n2);
repup (p);
}
else
{
rep ()->move (pos + n2, data () + pos + n1, len - (pos + n1));
rep ()->set (pos, c, n2);
}
rep ()->len = newlen;
return *this;
}
template <class charT, class traits, class Allocator>
void basic_string <charT, traits, Allocator>::
resize (size_type n, charT c)
{
do { if ( n > max_size () ) __length_error ("n > max_size ()"); } while (0) ;
if (n > length ())
append (n - length (), c);
else
erase (n);
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
copy (charT* s, size_type n, size_type pos) const
{
do { if ( pos > length () ) __out_of_range ("pos > length ()"); } while (0) ;
if (n > length () - pos)
n = length () - pos;
traits::copy (s, data () + pos, n);
return n;
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
find (const charT* s, size_type pos, size_type n) const
{
size_t xpos = pos;
for (; xpos + n <= length (); ++xpos)
if (traits::eq (data () [xpos], *s)
&& traits::compare (data () + xpos, s, n) == 0)
return xpos;
return npos;
}
template <class charT, class traits, class Allocator>
inline basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
_find (const charT* ptr, charT c, size_type xpos, size_type len)
{
for (; xpos < len; ++xpos)
if (traits::eq (ptr [xpos], c))
return xpos;
return npos;
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
find (charT c, size_type pos) const
{
return _find (data (), c, pos, length ());
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
rfind (const charT* s, size_type pos, size_type n) const
{
if (n > length ())
return npos;
size_t xpos = length () - n;
if (xpos > pos)
xpos = pos;
for (++xpos; xpos-- > 0; )
if (traits::eq (data () [xpos], *s)
&& traits::compare (data () + xpos, s, n) == 0)
return xpos;
return npos;
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
rfind (charT c, size_type pos) const
{
if (1 > length ())
return npos;
size_t xpos = length () - 1;
if (xpos > pos)
xpos = pos;
for (++xpos; xpos-- > 0; )
if (traits::eq (data () [xpos], c))
return xpos;
return npos;
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
find_first_of (const charT* s, size_type pos, size_type n) const
{
size_t xpos = pos;
for (; xpos < length (); ++xpos)
if (_find (s, data () [xpos], 0, n) != npos)
return xpos;
return npos;
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
find_last_of (const charT* s, size_type pos, size_type n) const
{
if (length() == 0)
return npos;
size_t xpos = length () - 1;
if (xpos > pos)
xpos = pos;
for (++xpos; xpos-- > 0;)
if (_find (s, data () [xpos], 0, n) != npos)
return xpos;
return npos;
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
find_first_not_of (const charT* s, size_type pos, size_type n) const
{
size_t xpos = pos;
for (; xpos < length (); ++xpos)
if (_find (s, data () [xpos], 0, n) == npos)
return xpos;
return npos;
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
find_first_not_of (charT c, size_type pos) const
{
size_t xpos = pos;
for (; xpos < length (); ++xpos)
if (traits::ne (data () [xpos], c))
return xpos;
return npos;
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
find_last_not_of (const charT* s, size_type pos, size_type n) const
{
if (length() == 0)
return npos;
size_t xpos = length () - 1;
if (xpos > pos)
xpos = pos;
for (++xpos; xpos-- > 0;)
if (_find (s, data () [xpos], 0, n) == npos)
return xpos;
return npos;
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
find_last_not_of (charT c, size_type pos) const
{
if (length() == 0)
return npos;
size_t xpos = length () - 1;
if (xpos > pos)
xpos = pos;
for (++xpos; xpos-- > 0;)
if (traits::ne (data () [xpos], c))
return xpos;
return npos;
}
template <class charT, class traits, class Allocator>
int basic_string <charT, traits, Allocator>::
compare (const basic_string& str, size_type pos, size_type n) const
{
do { if ( pos > length () ) __out_of_range ("pos > length ()"); } while (0) ;
size_t rlen = length () - pos;
if (rlen > n)
rlen = n;
if (rlen > str.length ())
rlen = str.length ();
int r = traits::compare (data () + pos, str.data (), rlen);
if (r != 0)
return r;
if (rlen == n)
return 0;
return (length () - pos) - str.length ();
}
template <class charT, class traits, class Allocator>
int basic_string <charT, traits, Allocator>::
compare (const charT* s, size_type pos, size_type n) const
{
do { if ( pos > length () ) __out_of_range ("pos > length ()"); } while (0) ;
size_t rlen = length () - pos;
if (rlen > n)
rlen = n;
int r = traits::compare (data () + pos, s, rlen);
if (r != 0)
return r;
return (length () - pos) - n;
}
template <class charT, class traits, class Allocator>
istream &
operator>> (istream &is, basic_string <charT, traits, Allocator> &s)
{
int w = is.width (0);
if (is.ipfx0 ())
{
register streambuf *sb = is.rdbuf ();
s.resize (0);
while (1)
{
int ch = sb->sbumpc ();
if (ch == (-1) )
{
is.setstate (ios::eofbit);
break;
}
else if (traits::is_del (ch))
{
sb->sungetc ();
break;
}
s += ch;
if (--w == 1)
break;
}
}
is.isfx ();
if (s.length () == 0)
is.setstate (ios::failbit);
return is;
}
template <class charT, class traits, class Allocator>
ostream &
operator<< (ostream &o, const basic_string <charT, traits, Allocator>& s)
{
return o.write (s.data (), s.length ());
}
template <class charT, class traits, class Allocator>
istream&
getline (istream &is, basic_string <charT, traits, Allocator>& s, charT delim)
{
if (is.ipfx1 ())
{
_G_size_t count = 0;
streambuf *sb = is.rdbuf ();
s.resize (0);
while (1)
{
int ch = sb->sbumpc ();
if (ch == (-1) )
{
is.setstate (count == 0
? (ios::failbit|ios::eofbit)
: ios::eofbit);
break;
}
++count;
if (ch == delim)
break;
s += ch;
if (s.length () == s.npos - 1)
{
is.setstate (ios::failbit);
break;
}
}
}
is.isfx ();
return is;
}
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::Rep
basic_string<charT, traits, Allocator>::nilRep = { 0, 0, 1, false };
template <class charT, class traits, class Allocator>
const basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::npos;
}
# 618 "/usr/local/egcs/include/g++/std/bastring.h" 2 3
# 6 "/usr/local/egcs/include/g++/string" 2 3
extern "C++" {
typedef basic_string <char> string;
}
# 27 "parameter.h" 2
# 1 "/usr/local/egcs/include/g++/iostream" 1 3
# 28 "parameter.h" 2
namespace m3 {
class parameter {
std::string name;
std::string type;
double value;
double orig_value;
public:
parameter(double i_value = 0.0e0, std::string i_type = std::string("constant"));
~parameter() {}
operator double() const { return value; }
std::string get_type() const { return type; }
double get_value() const { return value; }
double get_original_value() const { return orig_value; }
double set_value(double i_value) { return value = i_value; }
friend std::ostream& operator<<(std::ostream& os, const parameter& p) {
return os << p.value << " type: " << p.type;
}
};
typedef std::deque<parameter*> parameter_container;
typedef parameter_container::iterator parameter_iter;
}
# 24 "parameter.cc" 2
using namespace std;
using namespace m3;
parameter::parameter(double i_value, string i_type)
{
orig_value = value = i_value;
if (i_type == string("constant") ||
i_type == string("optimize"))
{
type == i_type;
} else {
type == string("constant");
}
}
=== parameter.s ===
.verstamp 3 11
.set noreorder
.set volatile
.set noat
.arch ev56
.file 1 "parameter.cc"
#@stabs
#.stabs "/mike/software/m3/",100,0,0,$Ltext0
#.stabs "parameter.cc",100,0,0,$Ltext0
.text
$Ltext0:
#.stabs "int:t1=r1;-2147483648;2147483647;",128,0,0,0
#.stabs "char:t2=r2;0;127;",128,0,0,0
#.stabs "long int:t3=r1;001000000000000000000000;000777777777777777777777;",128,0,0,0
#.stabs "unsigned int:t4=r4;0;4294967295;",128,0,0,0
#.stabs "long unsigned int:t5=r1;000000000000000000000000;001777777777777777777777;",128,0,0,0
#.stabs "long long int:t6=r1;001000000000000000000000;000777777777777777777777;",128,0,0,0
#.stabs "long long unsigned int:t7=r1;000000000000000000000000;001777777777777777777777;",128,0,0,0
#.stabs "short int:t8=r8;-32768;32767;",128,0,0,0
#.stabs "short unsigned int:t9=r9;0;65535;",128,0,0,0
#.stabs "signed char:t10=r10;-128;127;",128,0,0,0
#.stabs "unsigned char:t11=r11;0;255;",128,0,0,0
#.stabs "float:t12=r1;4;0;",128,0,0,0
#.stabs "double:t13=r1;8;0;",128,0,0,0
#.stabs "long double:t14=r1;8;0;",128,0,0,0
#.stabs "complex int:t15=s8real:1,0,32;imag:1,32,32;;",128,0,0,0
#.stabs "complex float:t16=r16;4;0;",128,0,0,0
#.stabs "complex double:t17=r17;8;0;",128,0,0,0
#.stabs "complex long double:t18=r18;8;0;",128,0,0,0
#.stabs "bool:t19=@s64;-16;",128,0,0,0
#.stabs "void:t20=20",128,0,0,0
#.stabs "__wchar_t:t21=r21;0;4294967295;",128,0,0,0
#.stabs "__vtbl_ptr_type:t22=s16__delta:8,0,16;__index:8,16,16;__pfn:23=*20,64,64;__delta2:8,64,16;;",128,0,0,0
#.stabs "ptrdiff_t:t24=3",128,0,118,0
#.stabs "size_t:t25=5",128,0,170,0
#.stabs "wint_t:t26=4",128,0,280,0
#.stabs "wctype_t:t27=4",128,0,128,0
#.stabs "fpos_t:t28=3",128,0,133,0
#.stabs "time_t:t29=1",128,0,138,0
#.stabs "clock_t:t30=1",128,0,143,0
#.stabs "ssize_t:t31=3",128,0,163,0
#.stabs "uchar_t:t32=11",128,0,169,0
#.stabs "ushort_t:t33=9",128,0,170,0
#.stabs "uint_t:t34=4",128,0,171,0
#.stabs "ulong_t:t35=5",128,0,172,0
#.stabs "vuchar_t:t36=11",128,0,173,0
#.stabs "vushort_t:t37=9",128,0,174,0
#.stabs "vuint_t:t38=4",128,0,175,0
#.stabs "vulong_t:t39=5",128,0,176,0
#.stabs "physadr_t:t40=41=*42=s8r:43=ar1;0;0;3,0,64;__as::44=#42,45=&42,41,46=&42,20;:__as__3$_0RC3$_0;2A.;$_0::47=#42,41,41,46,20;:__3$_0RC3$_0;2A.48=#42,41,41,20;:__3$_0;2A.;;",128,0,181,0
#.stabs "label_t:Tt49=s80val:50=ar1;0;9;3,0,640;__as::51=##52=&49;:RC7label_t;2A.;label_t::53=##54=*49;:RC7label_t;2A.55=##54;:;2A.;;",128,0,188,0
#.stabs "level_t:t56=1",128,0,232,0
#.stabs "daddr_t:t57=1",128,0,233,0
#.stabs "caddr_t:t58=59=*2",128,0,234,0
#.stabs "qaddr_t:t60=61=*3",128,0,235,0
#.stabs "addr_t:t62=59",128,0,236,0
#.stabs "ino_t:t63=34",128,0,237,0
#.stabs "cnt_t:t64=8",128,0,238,0
#.stabs "dev_t:t65=1",128,0,239,0
#.stabs "chan_t:t66=1",128,0,240,0
#.stabs "off_t:t67=3",128,0,308,0
#.stabs "rlim_t:t68=5",128,0,311,0
#.stabs "paddr_t:t69=1",128,0,312,0
#.stabs "nlink_t:t70=33",128,0,313,0
#.stabs "key_t:t71=1",128,0,317,0
#.stabs "mode_t:t72=34",128,0,322,0
#.stabs "uid_t:t73=34",128,0,330,0
#.stabs "gid_t:t74=34",128,0,336,0
#.stabs "mid_t:t75=23",128,0,341,0
#.stabs "pid_t:t76=1",128,0,346,0
#.stabs "slab_t:t77=78=ar1;0;11;2",128,0,349,0
#.stabs "shmatt_t:t79=35",128,0,351,0
#.stabs "msgqnum_t:t80=35",128,0,352,0
#.stabs "msglen_t:t81=35",128,0,353,0
#.stabs "sigset_t:t82=5",128,0,363,0
#.stabs "__pthread_attr_t:Tt83=s176__valid:3,0,64;__name:59,64,64;__arg:5,128,64;__reserved:84=ar1;0;18;5,192,1216;__as::85=##86=&83;:RC16__pthread_attr_t;2A.;__pthread_attr_t::87=##88=*83;:RC16__pthread_attr_t;2A.89=##88;:;2A.;;",128,0,384,0
#.stabs "pthread_attr_t:t90=83",128,0,384,0
#.stabs "__pthread_mutexattr_t:Tt91=s128__valid:3,0,64;__reserved:92=ar1;0;14;5,64,960;__as::93=##94=&91;:RC21__pthread_mutexattr_t;2A.;__pthread_mutexattr_t::95=##96=*91;:RC21__pthread_mutexattr_t;2A.97=##96;:;2A.;;",128,0,389,0
#.stabs "pthread_mutexattr_t:t98=91",128,0,389,0
#.stabs "__pthread_condattr_t:Tt99=s112__valid:3,0,64;__reserved:100=ar1;0;12;5,64,832;__as::101=##102=&99;:RC20__pthread_condattr_t;2A.;__pthread_condattr_t::103=##104=*99;:RC20__pthread_condattr_t;2A.105=##104;:;2A.;;",128,0,394,0
#.stabs "pthread_condattr_t:t106=99",128,0,394,0
#.stabs "__pthread_t:Tt107=s136__reserved1:23,0,64;__reserved2:23,64,64;__size:9,128,16;__version:11,144,8;__reserved3:11,152,8;__external:11,160,8;__reserved4:108=ar1;0;1;11,168,16;__creator:11,184,8;__sequence:5,192,64;__reserved5:109=ar1;0;1;5,256,128;__per_kt_area:23,384,64;__stack_base:23,448,64;__stack_reserve:23,512,64;__stack_yellow:23,576,64;__stack_guard:23,640,64;__stack_size:5,704,64;__tsd_values:110=*23,768,64;__tsd_count:5,832,64;__reserved6:4,896,32;__reserved7:4,928,32;__thread_flags:4,960,32;__thd_errno:1,992,32;__stack_hiwater:23,1024,64;__as::111=##112=&107;:RC11__pthread_t;2A.;__pthread_t::113=##114=*107;:RC11__pthread_t;2A.115=##114;:;2A.;;",128,0,448,0
#.stabs "pthread_t:t116=114",128,0,448,0
#.stabs "pthreadTeb_t:t117=107",128,0,448,0
#.stabs "__pthread_mutex_t:Tt118=s48__lock:4,0,32;__valid:4,32,32;__name:59,64,64;__arg:4,128,32;__depth:4,160,32;__sequence:5,192,64;__owner:5,256,64;__block:23,320,64;__as::119=##120=&118;:RC17__pthread_mutex_t;2A.;__pthread_mutex_t::121=##122=*118;:RC17__pthread_mutex_t;2A.123=##122;:;2A.;;",128,0,459,0
#.stabs "pthread_mutex_t:t124=118",128,0,459,0
#.stabs "__pthread_cond_t:Tt125=s40__state:4,0,32;__valid:4,32,32;__name:59,64,64;__arg:4,128,32;__sequence:5,192,64;__block:23,256,64;__as::126=##127=&125;:RC16__pthread_cond_t;2A.;__pthread_cond_t::128=##129=*125;:RC16__pthread_cond_t;2A.130=##129;:;2A.;;",128,0,468,0
#.stabs "pthread_cond_t:t131=125",128,0,468,0
#.stabs "pthread_key_t:t132=4",128,0,470,0
#.stabs "__pthread_once_t:Tt133=s88__state:3,0,64;__reserved:50,64,640;__as::134=##135=&133;:RC16__pthread_once_t;2A.;__pthread_once_t::136=##137=*133;:RC16__pthread_once_t;2A.138=##137;:;2A.;;",128,0,475,0
#.stabs "pthread_once_t:t139=133",128,0,475,0
#.stabs "timer_t:t140=3",128,0,485,0
#.stabs "sig_t:t141=142=*143=f20",128,0,506,0
#.stabs "id_t:t144=76",128,0,519,0
#.stabs "useconds_t:t145=4",128,0,524,0
#.stabs "major_t:t146=34",128,0,533,0
#.stabs "minor_t:t147=34",128,0,534,0
#.stabs "devs_t:t148=34",128,0,535,0
#.stabs "unit_t:t149=34",128,0,536,0
#.stabs "vm_offset_t:t150=5",128,0,73,0
#.stabs "vm_size_t:t151=5",128,0,74,0
#.stabs "uchar:t152=32",128,0,561,0
#.stabs "ushort:t153=33",128,0,562,0
#.stabs "uint:t154=34",128,0,563,0
#.stabs "ulong:t155=35",128,0,564,0
#.stabs "physadr:t156=40",128,0,566,0
#.stabs "u_char:t157=32",128,0,570,0
#.stabs "u_short:t158=33",128,0,571,0
#.stabs "u_int:t159=34",128,0,572,0
#.stabs "u_long:t160=35",128,0,573,0
#.stabs "vu_char:t161=162=11",128,0,574,0
#.stabs "vu_short:t163=164=9",128,0,575,0
#.stabs "vu_int:t165=166=4",128,0,576,0
#.stabs "vu_long:t167=168=5",128,0,577,0
#.stabs "_quad:Tt169=s8val:170=ar1;0;1;1,0,64;__as::171=##172=&169;:RC5_quad;2A.;_quad::173=##174=*169;:RC5_quad;2A.175=##174;:;2A.;;",128,0,583,0
#.stabs "quad:t176=169",128,0,583,0
#.stabs "swblk_t:t177=3",128,0,586,0
#.stabs "fixpt_t:t178=160",128,0,587,0
#.stabs "fd_mask:t179=1",128,0,146,0
#.stabs "fd_set:Tt180=s512fds_bits:181=ar1;0;127;1,0,4096;__as::182=##183=&180;:RC6fd_set;2A.;fd_set::184=##185=*180;:RC6fd_set;2A.186=##185;:;2A.;;",128,0,172,0
#.stabs "sa_family_t:t187=11",128,0,594,0
#.stabs "in_addr_t:t188=4",128,0,597,0
#.stabs "in_port_t:t189=9",128,0,599,0
#.stabs "lconv:Tt190=s104decimal_point:59,0,64;thousands_sep:59,64,64;grouping:59,128,64;int_curr_symbol:59,192,64;currency_symbol:59,256,64;mon_decimal_point:59,320,64;mon_thousands_sep:59,384,64;mon_grouping:59,448,64;positive_sign:59,512,64;negative_sign:59,576,64;int_frac_digits:2,640,8;frac_digits:2,648,8;p_cs_precedes:2,656,8;p_sep_by_space:2,664,8;n_cs_precedes:2,672,8;n_sep_by_space:2,680,8;p_sign_posn:2,688,8;n_sign_posn:2,696,8;left_parenthesis:59,704,64;right_parenthesis:59,768,64;__as::191=##192=&190;:RC5lconv;2A.;lconv::193=##194=*190;:RC5lconv;2A.195=##194;:;2A.;;",128,0,86,0
#.stabs "__nl_item:t196=1",128,0,58,0
#.stabs "nl_catd:t197=198=*199=xs__catalog_descriptor:",128,0,61,0
#.stabs "nl_item:t200=196",128,0,65,0
#.stabs "CATD:t201=199",128,0,76,0
#.stabs "__gnuc_va_list:t202=s16__base:59,0,64;__offset:1,64,32;__as::203=#202,204=&202,205=*202,206=&207=s16__base:59,0,64;__offset:1,64,32;__as::203:__as__3$_1RC3$_1;2A.;$_1::208=#202,205,205,206,20;:__3$_1RC3$_1;2A.209=#202,205,205,20;:__3$_1;2A.;;,20;:__as__3$_1RC3$_1;2A.;$_1::208:__3$_1RC3$_1;2A.209:__3$_1;2A.;;",128,0,23,0
#.stabs "FILE:t210=s56_cnt:1,0,32;_flag2:4,32,32;_ptr:211=*11,64,64;_base:211,128,64;_bufsiz:1,192,32;_flag:8,224,16;_file:8,240,16;__newbase:59,256,64;_lock:23,320,64;_bufendp:211,384,64;__as::212=#210,213=&210,214=*210,215=&216=s56_cnt:1,0,32;_flag2:4,32,32;_ptr:211,64,64;_base:211,128,64;_bufsiz:1,192,32;_flag:8,224,16;_file:8,240,16;__newbase:59,256,64;_lock:23,320,64;_bufendp:211,384,64;__as::212:__as__3$_2RC3$_2;2A.;$_2::217=#210,214,214,215,20;:__3$_2RC3$_2;2A.218=#210,214,214,20;:__3$_2;2A.;;,20;:__as__3$_2RC3$_2;2A.;$_2::217:__3$_2RC3$_2;2A.218:__3$_2;2A.;;",128,0,137,0
#.stabs "va_list:t219=s16_a0:220=*59,0,64;_offset:1,64,32;__as::221=#219,222=&219,223=*219,224=&225=s16_a0:220,0,64;_offset:1,64,32;__as::221:__as__3$_3RC3$_3;2A.;$_3::226=#219,223,223,224,20;:__3$_3RC3$_3;2A.227=#219,223,223,20;:__3$_3;2A.;;,20;:__as__3$_3RC3$_3;2A.;$_3::226:__3$_3RC3$_3;2A.227:__3$_3;2A.;;",128,0,71,0
#.stabs "_message:Tt228=s24_set:9,0,16;_msg:9,16,16;_text:59,64,64;_old:4,128,32;__as::229=##230=&228;:RC8_message;2A.;_message::231=##232=*228;:RC8_message;2A.233=##232;:;2A.;;",128,0,69,0
#.stabs "_header:Tt234=s28_magic:1,0,32;_n_sets:9,32,16;_setmax:9,48,16;_filler:235=ar1;0;19;2,64,160;__as::236=##237=&234;:RC7_header;2A.;_header::238=##239=*234;:RC7_header;2A.240=##239;:;2A.;;",128,0,76,0
#.stabs "_msgptr:Tt241=s8_msgno:9,0,16;_msglen:9,16,16;_offset:4,32,32;__as::242=##243=&241;:RC7_msgptr;2A.;_msgptr::244=##245=*241;:RC7_msgptr;2A.246=##245;:;2A.;;",128,0,81,0
#.stabs "_catset:Tt247=s24_setno:9,0,16;_n_msgs:9,16,16;_mp:245,64,64;_msgs_expanded:1,128,32;__as::248=##249=&247;:RC7_catset;2A.;_catset::250=##251=*247;:RC7_catset;2A.252=##251;:;2A.;;",128,0,88,0
#.stabs "__catalog_descriptor:Tt199=s88_mem:59,0,64;_name:59,64,64;_fd:1,128,32;_hd:239,192,64;_catlen:1,256,32;_set:251,320,64;_setmax:1,384,32;_count:1,416,32;_magic:1,448,32;_lc_message:59,512,64;_nlspath:59,576,64;_n_sets:1,640,32;_sets_expanded:1,672,32;__as::253=##254=&199;:RC20__catalog_descriptor;2A.;__catalog_descriptor::255=##198;:RC20__catalog_descriptor;2A.256=##198;:;2A.;;",128,0,105,0
#.stabs "__regex_t:t257=s384re_nsub:25,0,64;re_comp:23,64,64;re_cflags:1,128,32;re_erroff:25,192,64;re_len:25,256,64;re_ucoll:258=ar1;0;1;21,320,64;re_lsub:259=*260=*32,384,64;re_esub:259,448,64;re_filler:261=ar1;0;7;23,512,512;re_map:262=ar1;0;255;11,1024,2048;__as::263=#257,264=&257,265=*257,266=&267=s384re_nsub:25,0,64;re_comp:23,64,64;re_cflags:1,128,32;re_erroff:25,192,64;re_len:25,256,64;re_ucoll:258,320,64;re_lsub:259,384,64;re_esub:259,448,64;re_filler:261,512,512;re_map:262,1024,2048;__as::263:__as__3$_4RC3$_4;2A.;$_4::268=#257,265,265,266,20;:__3$_4RC3$_4;2A.269=#257,265,265,20;:__3$_4;2A.;;,20;:__as__3$_4RC3$_4;2A.;$_4::268:__3$_4RC3$_4;2A.269:__3$_4;2A.;;",128,0,50,0
#.stabs "__regoff_t:t270=67",128,0,52,0
#.stabs "__regmatch_t:t271=s16rm_so:270,0,64;rm_eo:270,64,64;__as::272=#271,273=&271,274=*271,275=&276=s16rm_so:270,0,64;rm_eo:270,64,64;__as::272:__as__3$_5RC3$_5;2A.;$_5::277=#271,274,274,275,20;:__3$_5RC3$_5;2A.278=#271,274,274,20;:__3$_5;2A.;;,20;:__as__3$_5RC3$_5;2A.;$_5::277:__3$_5RC3$_5;2A.278:__3$_5;2A.;;",128,0,60,0
#.stabs "__lc_type_id_t:t279=e_LC_CAR:1,_LC_LOCALE:2,_LC_CHARMAP:3,_LC_CTYPE:4,_LC_COLLATE:5,_LC_NUMERIC:6,_LC_MONETARY:7,_LC_TIME:8,_LC_RESP:9,;",128,0,76,0
#.stabs "_LC_object_t:t280=s24type_id:279,0,32;magic:9,32,16;format:9,48,16;version:5,64,64;size:5,128,64;__as::281=#280,282=&280,283=*280,284=&285=s24type_id:279,0,32;magic:9,32,16;format:9,48,16;version:5,64,64;size:5,128,64;__as::281:__as__3$_6RC3$_6;2A.;$_6::286=#280,283,283,284,20;:__3$_6RC3$_6;2A.287=#280,283,283,20;:__3$_6;2A.;;,20;:__as__3$_6RC3$_6;2A.;$_6::286:__3$_6RC3$_6;2A.287:__3$_6;2A.;;",128,0,102,0
#.stabs "_LC_core_charmap_t:t288=s136hdr:280,0,192;nl_langinfo:289=*290=f59,192,64;mbtowc:291=*292=f1,256,64;mbstowcs:293=*294=f25,320,64;wctomb:295=*296=f1,384,64;wcstombs:297=*298=f25,448,64;mblen:299=*300=f1,512,64;wcswidth:301=*302=f1,576,64;wcwidth:303=*304=f1,640,64;__mbtopc:305=*306=f1,704,64;__mbstopcs:307=*308=f1,768,64;__pctomb:309=*310=f1,832,64;__pcstombs:311=*312=f1,896,64;init:313=*314=f315=*316=xs_LC_charmap_t:,960,64;data:23,1024,64;__as::317=#288,318=&288,319=*288,320=&321=s136hdr:280,0,192;nl_langinfo:289,192,64;mbtowc:291,256,64;mbstowcs:293,320,64;wctomb:295,384,64;wcstombs:297,448,64;mblen:299,512,64;wcswidth:301,576,64;wcwidth:303,640,64;__mbtopc:305,704,64;__mbstopcs:307,768,64;__pctomb:309,832,64;__pcstombs:311,896,64;init:313,960,64;data:23,1024,64;__as::317:__as__3$_7RC3$_7;2A.;$_7::322=#288,319,319,320,20;:__3$_7RC3$_7;2A.323=#288,319,319,20;:__3$_7;2A.;;,20;:__as__3$_7RC3$_7;2A.;$_7::322:__3$_7RC3$_7;2A.323:__3$_7;2A.;;",128,0,156,0
#.stabs "_LC_core_ctype_t:t324=s72hdr:280,0,192;towupper:325=*326=f26,192,64;towlower:325,256,64;wctype:327=*328=f27,320,64;iswctype:329=*330=f1,384,64;init:331=*332=f333=*334=xs_LC_ctype_t:,448,64;data:23,512,64;__as::335=#324,336=&324,337=*324,338=&339=s72hdr:280,0,192;towupper:325,192,64;towlower:325,256,64;wctype:327,320,64;iswctype:329,384,64;init:331,448,64;data:23,512,64;__as::335:__as__3$_8RC3$_8;2A.;$_8::340=#324,337,337,338,20;:__3$_8RC3$_8;2A.341=#324,337,337,20;:__3$_8;2A.;;,20;:__as__3$_8RC3$_8;2A.;$_8::340:__3$_8RC3$_8;2A.341:__3$_8;2A.;;",128,0,174,0
#.stabs "_LC_core_collate_t:t342=s112hdr:280,0,192;strcoll:343=*344=f1,192,64;strxfrm:345=*346=f25,256,64;wcscoll:347=*348=f1,320,64;wcsxfrm:349=*350=f25,384,64;fnmatch:351=*352=f1,448,64;regcomp:353=*354=f1,512,64;regerror:355=*356=f25,576,64;regexec:357=*358=f1,640,64;regfree:359=*360=f20,704,64;init:361=*362=f363=*364=xs_LC_collate_t:,768,64;data:23,832,64;__as::365=#342,366=&342,367=*342,368=&369=s112hdr:280,0,192;strcoll:343,192,64;strxfrm:345,256,64;wcscoll:347,320,64;wcsxfrm:349,384,64;fnmatch:351,448,64;regcomp:353,512,64;regerror:355,576,64;regexec:357,640,64;regfree:359,704,64;init:361,768,64;data:23,832,64;__as::365:__as__3$_9RC3$_9;2A.;$_9::370=#342,367,367,368,20;:__3$_9RC3$_9;2A.371=#342,367,367,20;:__3$_9;2A.;;,20;:__as__3$_9RC3$_9;2A.;$_9::370:__3$_9RC3$_9;2A.371:__3$_9;2A.;;",128,0,212,0
#.stabs "_LC_core_time_t:t372=s72hdr:280,0,192;nl_langinfo:373=*374=f59,192,64;strftime:375=*376=f25,256,64;strptime:377=*378=f59,320,64;wcsftime:379=*380=f25,384,64;init:381=*382=f383=*384=xs_LC_time_t:,448,64;data:23,512,64;__as::385=#372,386=&372,387=*372,388=&389=s72hdr:280,0,192;nl_langinfo:373,192,64;strftime:375,256,64;strptime:377,320,64;wcsftime:379,384,64;init:381,448,64;data:23,512,64;__as::385:__as__4$_10RC4$_10;2A.;$_10::390=#372,387,387,388,20;:__4$_10RC4$_10;2A.391=#372,387,387,20;:__4$_10;2A.;;,20;:__as__4$_10RC4$_10;2A.;$_10::390:__4$_10RC4$_10;2A.391:__4$_10;2A.;;",128,0,233,0
#.stabs "_LC_core_monetary_t:t392=s56hdr:280,0,192;nl_langinfo:393=*394=f59,192,64;strfmon:395=*396=f31,256,64;init:397=*398=f399=*400=xs_LC_monetary_t:,320,64;data:23,384,64;__as::401=#392,402=&392,403=*392,404=&405=s56hdr:280,0,192;nl_langinfo:393,192,64;strfmon:395,256,64;init:397,320,64;data:23,384,64;__as::401:__as__4$_11RC4$_11;2A.;$_11::406=#392,403,403,404,20;:__4$_11RC4$_11;2A.407=#392,403,403,20;:__4$_11;2A.;;,20;:__as__4$_11RC4$_11;2A.;$_11::406:__4$_11RC4$_11;2A.407:__4$_11;2A.;;",128,0,249,0
#.stabs "_LC_core_numeric_t:t408=s48hdr:280,0,192;nl_langinfo:409=*410=f59,192,64;init:411=*412=f413=*414=xs_LC_numeric_t:,256,64;data:23,320,64;__as::415=#408,416=&408,417=*408,418=&419=s48hdr:280,0,192;nl_langinfo:409,192,64;init:411,256,64;data:23,320,64;__as::415:__as__4$_12RC4$_12;2A.;$_12::420=#408,417,417,418,20;:__4$_12RC4$_12;2A.421=#408,417,417,20;:__4$_12;2A.;;,20;:__as__4$_12RC4$_12;2A.;$_12::420:__4$_12RC4$_12;2A.421:__4$_12;2A.;;",128,0,262,0
#.stabs "_LC_core_resp_t:t422=s56hdr:280,0,192;nl_langinfo:423=*424=f59,192,64;rpmatch:425=*426=f1,256,64;init:427=*428=f429=*430=xs_LC_resp_t:,320,64;data:23,384,64;__as::431=#422,432=&422,433=*422,434=&435=s56hdr:280,0,192;nl_langinfo:423,192,64;rpmatch:425,256,64;init:427,320,64;data:23,384,64;__as::431:__as__4$_13RC4$_13;2A.;$_13::436=#422,433,433,434,20;:__4$_13RC4$_13;2A.437=#422,433,433,20;:__4$_13;2A.;;,20;:__as__4$_13RC4$_13;2A.;$_13::436:__4$_13RC4$_13;2A.437:__4$_13;2A.;;",128,0,278,0
#.stabs "_LC_core_locale_t:t438=s56hdr:280,0,192;nl_langinfo:439=*440=f59,192,64;localeconv:441=*442=f194,256,64;init:443=*444=f445=*446=xs_LC_locale_t:,320,64;data:23,384,64;__as::447=#438,448=&438,449=*438,450=&451=s56hdr:280,0,192;nl_langinfo:439,192,64;localeconv:441,256,64;init:443,320,64;data:23,384,64;__as::447:__as__4$_14RC4$_14;2A.;$_14::452=#438,449,449,450,20;:__4$_14RC4$_14;2A.453=#438,449,449,20;:__4$_14;2A.;;,20;:__as__4$_14RC4$_14;2A.;$_14::452:__4$_14RC4$_14;2A.453:__4$_14;2A.;;",128,0,291,0
#.stabs "_LC_weight_t:t454=u8n:455=ar1;0;1;4,0,64;p:456=*4,0,64;__as::457=#454,458=&454,459=*454,460=&461=u8n:455,0,64;p:456,0,64;__as::457:__as__4$_15RC4$_15;2A.;$_15::462=#454,459,459,460,20;:__4$_15RC4$_15;2A.463=#454,459,459,20;:__4$_15;2A.;;,20;:__as__4$_15RC4$_15;2A.;$_15::462:__4$_15RC4$_15;2A.463:__4$_15;2A.;;",128,0,228,0
#.stabs "_LC_collel_t:t464=s16ce_sym:465=*2,0,64;ce_wgt:454,64,64;__as::466=#464,467=&464,468=*464,469=&470=s16ce_sym:465,0,64;ce_wgt:454,64,64;__as::466:__as__4$_16RC4$_16;2A.;$_16::471=#464,468,468,469,20;:__4$_16RC4$_16;2A.472=#464,468,468,20;:__4$_16;2A.;;,20;:__as__4$_16RC4$_16;2A.;$_16::471:__4$_16RC4$_16;2A.472:__4$_16;2A.;;",128,0,240,0
#.stabs "_LC_coltbl_v1_t:t473=s16ct_wgt:454,0,64;ct_collel:474=*464,64,64;__as::475=#473,476=&473,477=*473,478=&479=s16ct_wgt:454,0,64;ct_collel:474,64,64;__as::475:__as__4$_17RC4$_17;2A.;$_17::480=#473,477,477,478,20;:__4$_17RC4$_17;2A.481=#473,477,477,20;:__4$_17;2A.;;,20;:__as__4$_17RC4$_17;2A.;$_17::480:__4$_17RC4$_17;2A.481:__4$_17;2A.;;",128,0,253,0
#.stabs "_LC_strpool_t:t482=2",128,0,262,0
#.stabs "_LC_strpool_ptr_t:t483=59",128,0,262,0
#.stabs "_LC_collel_tbl_v2_t:t484=s8strpool_idx:1,0,32;ce_wgt:485=ar1;0;0;4,32,32;__as::486=#484,487=&484,488=*484,489=&490=s8strpool_idx:1,0,32;ce_wgt:485,32,32;__as::486:__as__4$_18RC4$_18;2A.;$_18::491=#484,488,488,489,20;:__4$_18RC4$_18;2A.492=#484,488,488,20;:__4$_18;2A.;;,20;:__as__4$_18RC4$_18;2A.;$_18::491:__4$_18RC4$_18;2A.492:__4$_18;2A.;;",128,0,276,0
#.stabs "_LC_collel_tbl_t:t493=484",128,0,282,0
#.stabs "_LC_collel_qidx_v2_t:t494=s16min:4,0,32;max:4,32,32;tbl:495=*4,64,64;__as::496=#494,497=&494,498=*494,499=&500=s16min:4,0,32;max:4,32,32;tbl:495,64,64;__as::496:__as__4$_19RC4$_19;2A.;$_19::501=#494,498,498,499,20;:__4$_19RC4$_19;2A.502=#494,498,498,20;:__4$_19;2A.;;,20;:__as__4$_19RC4$_19;2A.;$_19::501:__4$_19RC4$_19;2A.502:__4$_19;2A.;;",128,0,297,0
#.stabs "_LC_collel_qidx_t:t503=494",128,0,304,0
#.stabs "_LC_coltbl_v2_t:t504=s48ce_tbl_bsize:4,0,32;ce_tbl_cnt:4,32,32;ce_strpool_cnt:4,64,32;version_mask:4,96,32;ce_strpool:505=*482,128,64;ce_tbl:506=*493,192,64;ce_qidx:507=*503,256,64;ct_wgt:508=ar1;0;0;495,320,64;__as::509=#504,510=&504,511=*504,512=&513=s48ce_tbl_bsize:4,0,32;ce_tbl_cnt:4,32,32;ce_strpool_cnt:4,64,32;version_mask:4,96,32;ce_strpool:505,128,64;ce_tbl:506,192,64;ce_qidx:507,256,64;ct_wgt:508,320,64;__as::509:__as__4$_20RC4$_20;2A.;$_20::514=#504,511,511,512,20;:__4$_20RC4$_20;2A.515=#504,511,511,20;:__4$_20;2A.;;,20;:__as__4$_20RC4$_20;2A.;$_20::514:__4$_20RC4$_20;2A.515:__4$_20;2A.;;",128,0,320,0
#.stabs "_LC_coll_methods_t:t516=s8getcolval:517=*518=f1,0,64;__as::519=#516,520=&516,521=*516,522=&523=s8getcolval:517,0,64;__as::519:__as__4$_21RC4$_21;2A.;$_21::524=#516,521,521,522,20;:__4$_21RC4$_21;2A.525=#516,521,521,20;:__4$_21;2A.;;,20;:__as__4$_21RC4$_21;2A.;$_21::524:__4$_21RC4$_21;2A.525:__4$_21;2A.;;",128,0,328,0
#.stabs "_LC_coltbl_t:t526=u48ct_v1:473,0,128;ct_v2:504,0,384;__as::527=#526,528=&526,529=*526,530=&531=u48ct_v1:473,0,128;ct_v2:504,0,384;__as::527:__as__4$_22RC4$_22;2A.;$_22::532=#526,529,529,530,20;:__4$_22RC4$_22;2A.533=#526,529,529,20;:__4$_22;2A.;;,20;:__as__4$_22RC4$_22;2A.;$_22::532:__4$_22RC4$_22;2A.533:__4$_22;2A.;;",128,0,342,0
#.stabs "_LC_subs_t:t534=s24ss_act:454,0,64;ss_src:465,64,64;ss_tgt:465,128,64;__as::535=#534,536=&534,537=*534,538=&539=s24ss_act:454,0,64;ss_src:465,64,64;ss_tgt:465,128,64;__as::535:__as__4$_23RC4$_23;2A.;$_23::540=#534,537,537,538,20;:__4$_23RC4$_23;2A.541=#534,537,537,20;:__4$_23;2A.;;,20;:__as__4$_23RC4$_23;2A.;$_23::540:__4$_23RC4$_23;2A.541:__4$_23;2A.;;",128,0,356,0
#.stabs "_LC_classnm_t:t542=s16name:59,0,64;mask:4,64,32;__as::543=#542,544=&542,545=*542,546=&547=s16name:59,0,64;mask:4,64,32;__as::543:__as__4$_24RC4$_24;2A.;$_24::548=#542,545,545,546,20;:__4$_24RC4$_24;2A.549=#542,545,545,20;:__4$_24;2A.;;,20;:__as__4$_24RC4$_24;2A.;$_24::548:__4$_24RC4$_24;2A.549:__4$_24;2A.;;",128,0,425,0
#.stabs "_G_int8_t:t550=10",128,0,12,0
#.stabs "_G_uint8_t:t551=11",128,0,13,0
#.stabs "_G_int16_t:t552=8",128,0,14,0
#.stabs "_G_uint16_t:t553=9",128,0,15,0
#.stabs "_G_int32_t:t554=1",128,0,16,0
#.stabs "_G_uint32_t:t555=4",128,0,17,0
#.stabs "_G_int64_t:t556=3",128,0,18,0
#.stabs "_G_uint64_t:t557=5",128,0,19,0
#.stabs "_G_llong:t558=6",128,0,21,0
#.stabs "_G_ullong:t559=7",128,0,22,0
#.stabs "_G_clock_t:t560=1",128,0,31,0
#.stabs "_G_dev_t:t561=1",128,0,32,0
#.stabs "_G_fpos_t:t562=3",128,0,33,0
#.stabs "_G_gid_t:t563=4",128,0,34,0
#.stabs "_G_ino_t:t564=4",128,0,35,0
#.stabs "_G_mode_t:t565=4",128,0,36,0
#.stabs "_G_nlink_t:t566=9",128,0,37,0
#.stabs "_G_off_t:t567=3",128,0,38,0
#.stabs "_G_pid_t:t568=1",128,0,39,0
#.stabs "_G_ptrdiff_t:t569=3",128,0,43,0
#.stabs "_G_sigset_t:t570=5",128,0,44,0
#.stabs "_G_size_t:t571=5",128,0,48,0
#.stabs "_G_time_t:t572=1",128,0,49,0
#.stabs "_G_uid_t:t573=4",128,0,50,0
#.stabs "_G_wchar_t:t574=4",128,0,51,0
#.stabs "_G_ssize_t:t575=3",128,0,67,0
#.stabs "_G_wint_t:t576=4",128,0,68,0
#.stabs "_IO_lock_t:t577=20",128,0,183,0
#.stabs "_IO_marker:Tt578=s24_next:579=*578,0,64;_sbuf:580=*581=xs_IO_FILE:,64,64;_pos:1,128,32;__as::582=##583=&578;:RC10_IO_marker;2A.;_IO_marker::584=##579;:RC10_IO_marker;2A.585=##579;:;2A.;;",128,0,208,0
#.stabs "_IO_FILE:Tt581=s136_flags:1,0,32;_IO_read_ptr:59,64,64;_IO_read_end:59,128,64;_IO_read_base:59,192,64;_IO_write_base:59,256,64;_IO_write_ptr:59,320,64;_IO_write_end:59,384,64;_IO_buf_base:59,448,64;_IO_buf_end:59,512,64;_IO_save_base:59,576,64;_IO_backup_base:59,640,64;_IO_save_end:59,704,64;_markers:579,768,64;_chain:580,832,64;_fileno:1,896,32;_blksize:1,928,32;_offset:567,960,64;_cur_column:9,1024,16;_unused:2,1040,8;_shortbuf:586=ar1;0;0;2,1048,8;__as::587=##588=&581;:RC8_IO_FILE;2A.;_IO_FILE::589=##580;:RC8_IO_FILE;2A.590=##580;:;2A.;;",128,0,256,0
#.stabs "_IO_cookie_io_functions_t:t591=s32read:592=*593=f575,0,64;write:594=*595=f575,64,64;seek:596=*597=f562,128,64;close:598=*599=f1,192,64;__as::600=#591,601=&591,602=*591,603=&604=s32read:592,0,64;write:594,64,64;seek:596,128,64;close:598,192,64;__as::600:__as__4$_25RC4$_25;2A.;$_25::605=#591,602,602,603,20;:__4$_25RC4$_25;2A.606=#591,602,602,20;:__4$_25;2A.;;,20;:__as__4$_25RC4$_25;2A.;$_25::605:__4$_25RC4$_25;2A.606:__4$_25;2A.;;",128,0,282,0
#.stabs "_IO_cookie_file:Tt607=s184file:581,0,1088;vtable:608=*20,1088,64;cookie:23,1152,64;io_functions:591,1216,256;__as::609=##610=&607;:RC15_IO_cookie_file;2A.;_IO_cookie_file::611=##612=*607;:RC15_IO_cookie_file;2A.613=##612;:;2A.;;",128,0,291,0
#.stabs "streamoff:t614=567",128,0,77,0
#.stabs "streampos:t615=562",128,0,78,0
#.stabs "streamsize:t616=575",128,0,80,0
#.stabs "__fmtflags:t617=5",128,0,82,0
#.stabs "__iostate:t618=11",128,0,83,0
#.stabs "io_state:t619=egoodbit:0,eofbit:1,failbit:2,badbit:4,;",128,0,135,0
#.stabs "open_mode:t620=ein:1,out:2,ate:4,app:8,trunc:16,nocreate:32,noreplace:64,bin:128,binary:128,;",128,0,140,0
#.stabs "seek_dir:t621=ebeg:0,cur:1,end:2,;",128,0,149,0
#.stabs "_seek_dir:t622=621",128,0,265,0
#.stabs "__manip:t623=624=*625=f626=&627=xsios:",128,0,35,0
#.stabs "__imanip:t628=629=*630=f631=&632=xsistream:",128,0,36,0
#.stabs "__omanip:t633=634=*635=f636=&637=xsostream:",128,0,37,0
#.stabs "div_t:Tt638=s8quot:1,0,32;rem:1,32,32;__as::639=##640=&638;:RC5div_t;2A.;div_t::641=##642=*638;:RC5div_t;2A.643=##642;:;2A.;;",128,0,125,0
#.stabs "ldiv_t:Tt644=s16quot:3,0,64;rem:3,64,64;__as::645=##646=&644;:RC6ldiv_t;2A.;ldiv_t::647=##648=*644;:RC6ldiv_t;2A.649=##648;:;2A.;;",128,0,129,0
#.stabs "malloc_alloc:t650=651=xs__malloc_alloc_template<0>:",128,0,214,0
#.stabs "__malloc_alloc_template<0>:Tt651=s1__malloc_alloc_oom_handler:/0652=*653=f20:_t23__malloc_alloc_template1i0$__malloc_alloc_oom_handler;__as::654=##655=&651;:t23__malloc_alloc_template1i0RCt23__malloc_alloc_template1i0;2A.;__malloc_alloc_template::656=##657=*651;:__t23__malloc_alloc_template1i0RCt23__malloc_alloc_template1i0;2A.658=##657;:__t23__malloc_alloc_template1i0;2A.;oom_malloc::659=f23:t23__malloc_alloc_template1i0Ul;0A?;oom_realloc::660=f23:t23__malloc_alloc_template1i0PvUl;0A?;allocate::659:t23__malloc_alloc_template1i0Ul;2A?;deallocate::661=f20:t23__malloc_alloc_template1i0PvUl;2A?;reallocate::662=f23:t23__malloc_alloc_template1i0PvUlUl;2A?;set_malloc_handler::663=f652:t23__malloc_alloc_template1i0PFv_v;2A?;;",128,0,214,0
#.stabs "alloc:t664=665=xs__default_alloc_template<false,0>:",128,0,440,0
#.stabs "single_client_alloc:t666=665",128,0,441,0
#.stabs "input_iterator_tag:Tt667=s1__as::668=##669=&667;:RC18input_iterator_tag;2A.;input_iterator_tag::670=##671=*667;:RC18input_iterator_tag;2A.672=##671;:;2A.;;",128,0,36,0
#.stabs "output_iterator_tag:Tt673=s1__as::674=##675=&673;:RC19output_iterator_tag;2A.;output_iterator_tag::676=##677=*673;:RC19output_iterator_tag;2A.678=##677;:;2A.;;",128,0,37,0
#.stabs "forward_iterator_tag:Tt679=s1!1,020,667;__as::680=##681=&679;:RC20forward_iterator_tag;2A.;forward_iterator_tag::682=##683=*679;:RC20forward_iterator_tag;2A.684=##683;:;2A.;;",128,0,38,0
#.stabs "bidirectional_iterator_tag:Tt685=s1!1,020,679;__as::686=##687=&685;:RC26bidirectional_iterator_tag;2A.;bidirectional_iterator_tag::688=##689=*685;:RC26bidirectional_iterator_tag;2A.690=##689;:;2A.;;",128,0,39,0
#.stabs "random_access_iterator_tag:Tt691=s1!1,020,685;__as::692=##693=&691;:RC26random_access_iterator_tag;2A.;random_access_iterator_tag::694=##695=*691;:RC26random_access_iterator_tag;2A.696=##695;:;2A.;;",128,0,40,0
#.stabs "output_iterator:Tt697=s1__as::698=##699=&697;:RC15output_iterator;2A.;output_iterator::700=##701=*697;:RC15output_iterator;2A.702=##701;:;2A.;;",128,0,56,0
#.stabs "string:t703=704=xsbasic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >:",128,0,9,0
#.stabs "Rep:Tt705=s32len:25,0,64;res:25,64,64;ref:25,128,64;selfish:19,192,64;Rep::706=##707=*705;:__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3RepRCQ2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3Rep;2A.708=##707;:__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3Rep;2A.;data::709=##59;:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3Rep;2A.;__vc::710=##711=&2;:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3RepUl;2A.;grab::709:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3Rep;2A.;release::712=##20;:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3Rep;2A.;__nw::713=f23:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3RepUlUl;2A?;__dl::714=f20:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0!
i0_3RepPv;2A?;create::715=f707:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3RepUl;2A?;clone::709:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3Rep;2A.;copy::716=##20;:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3RepUlPCcUl;2A.;move::716:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3RepUlPCcUl;2A.;set::717=##20;:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3RepUlcUl;2A.;excess_slop::718=f19:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3RepUlUl;2A?;frob_size::719=f25:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3RepUl;2A?;__as::720=##721=&705;:Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3RepRCQ2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3Rep;0A.;;",128,0,34,0
#.stabs "basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >:Tt704=s8npos:/225:_t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0$npos;nilRep:/0705:_t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0$nilRep;dat:/059,0,64;rep::722=##707;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;0B.;repup::723=##20;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PQ2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_3Rep;0A.;data::724=##465;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2B.;length::725=##25;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2B.;size::725:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2B.;capacity::725:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2B.;max_size::725:t12basic_stri!
ng3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2B.;empty::726=##19;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2B.;__as::727=##728=&704;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2A.;basic_string::729=##730=*704;:__t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2A.731=##730;:__t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2A.732=##730;:__t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlUl;2A.733=##730;:__t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUl;2A.734=##730;:__t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i!
0PCc;2A.735=##730;:__t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ulc;2A.736=#704,20,730,1,20;:_$_t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2A.;swap::737=##20;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Rt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2A.;append::738=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlUl;2A.739=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUl;2A.740=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCc;2A.741=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ulc;2A.;assign::738:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__de!
fault_alloc_template2b0i0UlUl;2A.\\",128,0,0,0
#.stabs "739:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUl;2A.740:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCc;2A.741:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ulc;2A.;__as::740:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCc;2A.742=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0c;2A.;__apl::727:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2A.740:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCc;2A.742:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0c;2A.;insert::743=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlRCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlUl;2A.744=##!
728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlPCcUl;2A.745=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlPCc;2A.746=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlUlc;2A.747=##59;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Pcc;2A.748=##59;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PcUlc;2A.;erase::749=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlUl;2A.750=##59;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Pc;2A.751=##59;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PcT1;2A.;replace::752=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlUlRCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlUl;2A.753=##728;:t12basic_string3ZcZt18string_cha!
r_traits1ZcZt24__default_alloc_template2b0i0UlUlPCcUl;2A.754=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlUlPCc;2A.755=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlUlUlc;2A.746:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlUlc;2A.756=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PcT1RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2A.757=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PcT1PCcUl;2A.758=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PcT1PCc;2A.759=##728;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PcT1Ulc;2A.;eos::760=f2:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;0A?;unique::761=##20;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_templ!
ate2b0i0;0A.;\\",128,0,0,0
#.stabs "selfish::761:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;0A.;__vc::762=##2;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;2B.763=##711;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;2A.;at::763:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;2A.764=##765=&2;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;2B.;terminate::766=##20;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;0B.;c_str::724:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2B.;resize::767=##20;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ulc;2A.768=##20;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;2A.;reserve::768:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;2A.;copy::769=##25;:t12basic_!
string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PcUlUl;2B.;find::770=##25;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;2B.771=##25;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUlUl;2B.772=##25;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUl;2B.773=##25;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0cUl;2B.;rfind::774=##25;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;2B.771:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUlUl;2B.775=##25;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUl;2B.776=##25;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0cU!
l;2B.;find_first_of::770:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;2B.771:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUlUl;2B.772:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUl;2B.773:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0cUl;2B.;find_last_of::774:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;2B.771:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUlUl;2B.775:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUl;2B.776:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0cUl;2B.;find_first_not_of::770:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_templa!
te2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;2B.\\",128,0,0,0
#.stabs "771:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUlUl;2B.772:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUl;2B.773:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0cUl;2B.;find_last_not_of::774:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;2B.771:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUlUl;2B.775:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUl;2B.776:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0cUl;2B.;substr::777=##704;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0UlUl;2B.;compare::778=##1;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0RCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_!
template2b0i0UlUl;2B.779=##1;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUlUl;2B.780=##1;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCcUl;2B.;begin::781=##59;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2A.;end::781:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2A.;ibegin::782=##59;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;0B.;iend::782:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;0B.;begin::724:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2B.;end::724:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2B.;rbegin::783=##784=xsreverse_iterator<char *>:;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2A.785=##786=xsreverse_iterator<const char *>:;:t12basic_string3ZcZt18string_char_traits1ZcZt24!
__default_alloc_template2b0i0;2B.;rend::783:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2A.785:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2B.;alloc::787=##20;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ulb;0A.;_find::788=f25:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0PCccUlUl;0A?;check_realloc::789=##19;:t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Ul;0B.;;",128,0,9,0
#.stabs "parameter:Tt790=s32name:/0703,0,64;type:/0703,64,64;value:/013,128,64;orig_value:/013,192,64;__as::791=##792=&790;:Q22m39parameterRCQ22m39parameter;2A.;parameter::793=##794=*790;:__Q22m39parameterRCQ22m39parameter;2A.795=##794;:__Q22m39parameterdGt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0;2A.796=#790,20,794,1,20;:_$_Q22m39parameter;2A.;__opd::797=##13;:Q22m39parameter;2B.;get_type::798=##703;:Q22m39parameter;2B.;get_value::797:Q22m39parameter;2B.;get_original_value::797:Q22m39parameter;2B.;set_value::799=##13;:Q22m39parameterd;2A.;;",128,0,59,0
#.stabs "__default_alloc_template<false,0>:Tt665=s1free_list:/0800=ar1;0;15;801=*802=xuobj::_t24__default_alloc_template2b0i0$free_list;start_free:/059:_t24__default_alloc_template2b0i0$start_free;end_free:/059:_t24__default_alloc_template2b0i0$end_free;heap_size:/025:_t24__default_alloc_template2b0i0$heap_size;__as::803=##804=&665;:t24__default_alloc_template2b0i0RCt24__default_alloc_template2b0i0;2A.;__default_alloc_template::805=##806=*665;:__t24__default_alloc_template2b0i0RCt24__default_alloc_template2b0i0;2A.807=##806;:__t24__default_alloc_template2b0i0;2A.;ROUND_UP::719:t24__default_alloc_template2b0i0Ul;0A?;FREELIST_INDEX::719:t24__default_alloc_template2b0i0Ul;0A?;refill::659:t24__default_alloc_template2b0i0Ul;0A?;chunk_alloc::808=f59:t24__default_alloc_template2b0i0UlRi;0A?;allocate::659:t24__default_alloc_template2b0i0Ul;2A?;deallocate::661:t24__default_alloc_template2b0i0PvUl;2A?;reallocate::662:t24__default_alloc_template2b0i0PvUlUl;2A?;;",128,0,440,0
#.stabs "obj:Tt802=u8free_list_link:801,0,64;client_data:586,0,8;__as::809=##810=&802;:Q2t24__default_alloc_template2b0i0_3objRCQ2t24__default_alloc_template2b0i0_3obj;2A.;obj::811=##801;:__Q2t24__default_alloc_template2b0i0_3objRCQ2t24__default_alloc_template2b0i0_3obj;2A.812=##801;:__Q2t24__default_alloc_template2b0i0_3obj;2A.;;",128,0,42,0
.rdata
.quad 0
$LC0:
.ascii " type: \0"
=== parameter.h ===
//-*-c++-*-
/* m3 - the kinetic Mechanism, Modeling, and Minimization program
* Copyright (C) 1999 David J. Dooling and Linda J. Broadbelt
*
* This file is part of m3.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
// This file declares classes for (kinetic) parameters
#ifndef M3_PARAMETER
#define M3_PARAMETER
#include <string>
#include <iostream>
//#include <deque>
// set namespace to avoid possible clashes
namespace m3 {
class parameter {
std::string name; // m3's name for the parameter
std::string type; // parameter type: constant, optimize, etc.
double value; // actual current value of parameter
double orig_value; // original value of parameter
public:
// constructor - put i_value first, so user can specifiy it without specifying type
parameter(double i_value = 0.0e0, std::string i_type = std::string("constant"));
// do nothing constructor (std::string goes away by itself)
~parameter() {}
// automatic type conversion to a double
operator double() const { return value; }
// return the type of parameter
std::string get_type() const { return type; }
// return value of the parameter
double get_value() const { return value; }
// return original value of the parameter
double get_original_value() const { return orig_value; }
// change the value of the parameter
double set_value(double i_value) { return value = i_value; }
// output parameter
friend std::ostream& operator<<(std::ostream& os, const parameter& p) {
return os << p.value << " type: " << p.type;
}
};
// set up containers and iterators for parameter
typedef std::deque<parameter*> parameter_container;
typedef parameter_container::iterator parameter_iter;
} // end namespace m3
#endif // M3_PARAMETER
=== parameter.cc ===
//-*-c++-*-
/* m3 - the kinetic Mechanism, Modeling, and Minimization program
* Copyright (C) 1999 David J. Dooling and Linda J. Broadbelt
*
* This file is part of m3.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
// This file defines member functions for (kinetic) parameters
#include "parameter.h"
using namespace std;
using namespace m3;
// constructor
// default values: i_value = 0.0e0, i_type = "constant"
parameter::parameter(double i_value, string i_type)
{
orig_value = value = i_value;
if (i_type == string("constant") ||
i_type == string("optimize"))
{
type == i_type;
} else {
type == string("constant");
}
}
=== that's it! ===