⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sinst.cpp

📁 vxworks源码源码解读是学习vxworks的最佳途径
💻 CPP
字号:
/* This has been copied from the gnu source tree *//* Make all changes there, not here! */#ifdef __cplusplusextern "C" {#endif#ifndef _N_char __sinst_o = 0;#elsechar _N_ = 0;#endif#ifdef __cplusplus}#endif#include "vxWorks.h"// Instantiation file for the -*- C++ -*- string classes.// Copyright (C) 1994 Free Software Foundation// This file is part of the GNU ANSI C++ Library.  This library 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, 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 General Public License for more details.// You should have received a copy of the GNU General Public License// along with this library; see the file COPYING.  If not, write to the Free// Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.// As a special exception, if you link this library with files// compiled with a GNU compiler to produce an executable, this does not cause// the resulting executable to be covered by the GNU General Public License.// This exception does not however invalidate any other reasons why// the executable file might be covered by the GNU General Public License.// Written by Jason Merrill based upon the specification by Takanori Adachi// in ANSI X3J16/94-0013R2.#ifdef __GNUG__#ifdef TRAITS#ifdef C#pragma implementation "std/straits.h"#endif#endif#endif#include <std/bastring.cc>#ifdef Ctypedef char c;#endif#ifdef Wtypedef wchar_t c;#endif#ifdef TRAITStemplate class string_char_traits <c>;#endiftypedef basic_string <c> s;#ifdef MAINtemplate class basic_string <c>;#endif#ifdef ADDSStemplate s operator+ (const s&, const s&);#endif#ifdef ADDPStemplate s operator+ (const c*, const s&);#endif#ifdef ADDCStemplate s operator+ (c, const s&);#endif#ifdef ADDSPtemplate s operator+ (const s&, const c*);#endif#ifdef ADDSCtemplate s operator+ (const s&, c);#endif#ifdef EQSStemplate bool operator== (const s&, const s&);#endif#ifdef EQPStemplate bool operator== (const c*, const s&);#endif#ifdef EQSPtemplate bool operator== (const s&, const c*);#endif#ifdef NESStemplate bool operator!= (const s&, const s&);#endif#ifdef NEPStemplate bool operator!= (const c*, const s&);#endif#ifdef NESPtemplate bool operator!= (const s&, const c*);#endif#ifdef LTSStemplate bool operator< (const s&, const s&);#endif#ifdef LTPStemplate bool operator< (const c*, const s&);#endif#ifdef LTSPtemplate bool operator< (const s&, const c*);#endif#ifdef GTSStemplate bool operator> (const s&, const s&);#endif#ifdef GTPStemplate bool operator> (const c*, const s&);#endif#ifdef GTSPtemplate bool operator> (const s&, const c*);#endif#ifdef LESStemplate bool operator<= (const s&, const s&);#endif#ifdef LEPStemplate bool operator<= (const c*, const s&);#endif#ifdef LESPtemplate bool operator<= (const s&, const c*);#endif#ifdef GESStemplate bool operator>= (const s&, const s&);#endif#ifdef GEPStemplate bool operator>= (const c*, const s&);#endif#ifdef GESPtemplate bool operator>= (const s&, const c*);#endif#ifdef EXTRACTtemplate istream& operator>> (istream&, s&);#endif // EXTRACT#ifdef INSERTtemplate ostream& operator<< (ostream&, const s&);#endif // INSERT#ifdef GETLINEtemplate istream& getline (istream&, s&, c);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -