📄 p784.c
字号:
// Build don't link:// Special g++ Options: -w// prms-id: 784//# 1 "GctSymbol.GctSymbol.CHMap.cc"// This may look like C code, but it is really -*- C++ -*-/*Copyright (C) 1988, 2000 Free Software Foundation written by Doug Lea (dl@rocky.oswego.edu)This file is part of the GNU C++ Library. This library is freesoftware; you can redistribute it and/or modify it under the terms ofthe GNU Library General Public License as published by the FreeSoftware Foundation; either version 2 of the License, or (at youroption) any later version. This library is distributed in the hopethat it will be useful, but WITHOUT ANY WARRANTY; without even theimplied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULARPURPOSE. See the GNU Library General Public License for more details.You should have received a copy of the GNU Library General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*///#pragma implementation//# 1 "GctSymbol.GctSymbol.CHMap.h" 1// This may look like C code, but it is really -*- C++ -*-/*Copyright (C) 1988 Free Software Foundation written by Doug Lea (dl@rocky.oswego.edu)This file is part of the GNU C++ Library. This library is freesoftware; you can redistribute it and/or modify it under the terms ofthe GNU Library General Public License as published by the FreeSoftware Foundation; either version 2 of the License, or (at youroption) any later version. This library is distributed in the hopethat it will be useful, but WITHOUT ANY WARRANTY; without even theimplied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULARPURPOSE. See the GNU Library General Public License for more details.You should have received a copy of the GNU Library General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*///#pragma interface//# 1 "GctSymbol.GctSymbol.Map.h" 1// This may look like C code, but it is really -*- C++ -*-/*Copyright (C) 1988 Free Software Foundation written by Doug Lea (dl@rocky.oswego.edu)This file is part of the GNU C++ Library. This library is freesoftware; you can redistribute it and/or modify it under the terms ofthe GNU Library General Public License as published by the FreeSoftware Foundation; either version 2 of the License, or (at youroption) any later version. This library is distributed in the hopethat it will be useful, but WITHOUT ANY WARRANTY; without even theimplied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULARPURPOSE. See the GNU Library General Public License for more details.You should have received a copy of the GNU Library General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*///#pragma interface//# 1 "/projects/gnu-cygnus/gnu-cygnus-8/common/g++-include/Pix.h" 1typedef void* Pix;//# 26 "GctSymbol.GctSymbol.Map.h" 2//# 1 "GctSymbol.defs.h" 1// This may look like C code, but it is really -*- C++ -*-/*Copyright (C) 1988 Free Software Foundation written by Doug Lea (dl@rocky.oswego.edu)This file is part of the GNU C++ Library. This library is freesoftware; you can redistribute it and/or modify it under the terms ofthe GNU Library General Public License as published by the FreeSoftware Foundation; either version 2 of the License, or (at youroption) any later version. This library is distributed in the hopethat it will be useful, but WITHOUT ANY WARRANTY; without even theimplied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULARPURPOSE. See the GNU Library General Public License for more details.You should have received a copy of the GNU Library General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*///# 1 "../../GctSymbol.h" 1// -*- C++ -*-//// GctSymbol class//// Expects to be included by Gct.h//// Wendell Baker, Berkeley CAD Group, 1992 (wbaker@ic.Berkeley.EDU)////#pragma interface//# 25 "../../GctSymbol.h" 2//# 1 "/projects/gnu-cygnus/gnu-cygnus-8/common/g++-include/String.h" 1// This may look like C code, but it is really -*- C++ -*-/*Copyright (C) 1988 Free Software Foundation written by Doug Lea (dl@rocky.oswego.edu)This file is part of the GNU C++ Library. This library is freesoftware; you can redistribute it and/or modify it under the terms ofthe GNU Library General Public License as published by the FreeSoftware Foundation; either version 2 of the License, or (at youroption) any later version. This library is distributed in the hopethat it will be useful, but WITHOUT ANY WARRANTY; without even theimplied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULARPURPOSE. See the GNU Library General Public License for more details.You should have received a copy of the GNU Library General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*///#pragma interface//# 1 "/projects/gnu-cygnus/gnu-cygnus-8/common/g++-include/stream.h" 1// Compatibility with old library.//# 1 "/projects/gnu-cygnus/gnu-cygnus-8/common/g++-include/iostream.h" 1// This is part of the iostream library, providing -*- C++ -*- input/output.// Copyright (C) 1991 Per Bothner.//// This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Library General Public// License as published by the Free Software Foundation; either// version 2 of the License, or (at your option) any later version.//// This library 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// Library General Public License for more details.//// You should have received a copy of the GNU Library General Public// License along with this library; if not, write to the Free// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.//#pragma interface//# 1 "/projects/gnu-cygnus/gnu-cygnus-8/common/g++-include/streambuf.h" 1// This is part of the iostream library, providing -*- C++ -*- input/output.// Copyright (C) 1991 Per Bothner.//// This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Library General Public// License as published by the Free Software Foundation; either// version 2 of the License, or (at your option) any later version.//// This library 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// Library General Public License for more details.//// You should have received a copy of the GNU Library General Public// License along with this library; if not, write to the Free// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.//#pragma interface/* KLUDGES!! *///# 1 "/projects/gnu-cygnus/gnu-cygnus-8/common/g++-include/stddef.h" 1extern "C" {//# 1 "/projects/gnu-cygnus/gnu-cygnus-8/mips/lib/gcc/decstatn/cygnus-1.96/include/stddef.h" 1/* This avoids lossage on Sunos but only if stdtypes.h comes first. There's no way to win with the other order! Sun lossage. *//* In case nobody has defined these types, but we aren't running under GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE__TYPE__, and __WCHAR_TYPE__ have reasonable values. This can happen if the parts of GCC is compiled by an older compiler, that actually include gstddef.h, such as collect2. *//* Signed type of difference of two pointers. */typedef long int ptrdiff_t;/* Unsigned type of `sizeof' something. */typedef unsigned int size_t;/* Data type for wide chars. *//* A null pointer constant. *//* Offset of member MEMBER in a struct of type TYPE. *///# 7 "/projects/gnu-cygnus/gnu-cygnus-8/common/g++-include/stddef.h" 2}//# 25 "/projects/gnu-cygnus/gnu-cygnus-8/common/g++-include/streambuf.h" 2class ostream; class streambuf;typedef long streamoff, streampos;struct _ios_fields { // The data members of an ios. streambuf *_strbuf; ostream* _tie; long _width; unsigned long _flags; char _fill; unsigned char _state; unsigned short _precision;};enum state_value { _good = 0, _eof = 1, _fail = 2, _bad = 4 };class ios : public _ios_fields { public: 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 }; enum seek_dir { beg, cur, end}; 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=0100000, unitbuf=020000, stdio=040000, dont_close=0x80000000 //Don't close streambuf when destroying stream }; ostream* tie() { return _tie; } ostream* tie(ostream* val) { ostream* save=_tie; _tie=val; return save; } // Methods to change the format state. char fill() { return _fill; } char fill(char newf) { char oldf = _fill; _fill = newf; return oldf; } unsigned long flags() { return _flags; } unsigned long flags(unsigned long new_val) { unsigned long old_val = _flags; _flags = new_val; return old_val; } unsigned short precision() { return _precision; } unsigned short precision(int newp) { unsigned short oldp = _precision; _precision = (unsigned short)newp; return oldp; } unsigned long setf(unsigned long val) { unsigned long oldbits = _flags; _flags |= val; return oldbits; } unsigned long setf(unsigned long val, unsigned long mask) { unsigned long oldbits = _flags; _flags = (_flags & ~mask) | (val & mask); return oldbits; } unsigned long unsetf(unsigned long mask) { unsigned long oldbits = _flags & mask; _flags &= ~mask; return oldbits; } long width() { return _width; } long width(long val) { long save = _width; _width = val; return save; } static const unsigned long basefield; static const unsigned long adjustfield; static const unsigned long floatfield; streambuf* rdbuf() { return _strbuf; } void clear(int state = 0) { _state = state; } int good() { return _state == 0; } int eof() { return _state & ios::eofbit; } int fail() { return _state & (ios::badbit|ios::failbit); } int bad() { return _state & ios::badbit; } int rdstate() { return _state; } void set(int flag) { _state |= flag; } operator void*() { return fail() ? (void*)0 : (void*)this; } int operator!() { return fail(); } void unset(state_value flag) { _state &= ~flag; } void close(); int is_open(); int readable(); int writable(); protected: ios(streambuf*sb) { _strbuf=sb; _state=0; _width=0; _fill=' '; _flags=ios::skipws; _precision=6; }};typedef ios::seek_dir _seek_dir;// Magic numbers and bits for the _flags field.// The magic numbers use the high-order bits of _flags;// the remaining bits are abailable for variable flags.// Note: The magic numbers must all be negative if stdio// emulation is desired.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -