Parent Directory | Revision Log
Links to HEAD: | (view) (download) (as text) (annotate) |
Sticky Revision: |
Fixed GCC warnings: -Wconversion -Wshadow -Wunused-parameter.
Split ctype overloads from ncbimisc.hpp into a new ncbictype.hpp so ncbistre.hpp can see them, avoiding compilation errors when building Python extensions under LLVM Clang. ncbimisc.hpp (which could use further splitting) currently needs to include ncbistre.hpp in order to declare operator<<(CNcbiOstream& out, const CStrictGi& gi), so ncbistre.hpp can't simply include ncbimisc.hpp. JIRA: CXX-5440.
Added safe ctype overloads for char argument. JIRA: CXX-5440
ncbimisc.hpp: Further conditionalize our compatibility definition of nullptr, to avoid warnings in configurations (notably Xcode builds) that use LLVM libc++ in traditional C++98/C++03 mode. JIRA: CXX-3820.
Comment out inactive ctype macros for testing. JIRA: CXX-5440
Do not use 'false' in preprocessor directives. JIRA: CXX-1088
Do not use 'auto' keyword. JIRA: CXX-1088
Removed unsafe NON_CONST_SET_ITERATE macro. Enforce constness of container in ITERATE and REVERSE_ITERATE macros. Optionally use C++11 auto declarators in *ITERATE macros. JIRA: CXX-1088
Added CNullable template. Converted number of retries to CNullable. Added g_HttpGet and g_HttpPost. JIRA CXX-4501
ncbimisc.hpp: #include <stdlib.h>, as apparently required when using Cray's compiler (perhaps because CDeleter<> uses free?).
Added NCBI namespace to implementation of *ITERATE macros. JIRA: CXX-1088
Added check for lvalue container argument in *ITERATE macros. JIRA: CXX-1088
added macros ITERATE_SIMPLE and ITERATE_0_IDX. JIRA CXX-4043
Added ITERATE_BOTH_BOOL_VALUES. JIRA MSS-168
Switched objects to TGi. JIRA CXX-3431
Added CStrictGi and supporting methods in serial library and NStr. JIRA CXX-3431
added macro OVERRIDE_OPERATOR_BOOL. JIRA CXX-3908
Introduce type TGi -- for sequence GI. JIRA:CXX-3431
Inset edit
EOwnership made shared between C and C++ parts
Spell 'signedness'
Inset (wrong cut-n-paste) edited
Added more restrictive bool operator. JIRA: CXX-2202
More changes to put C functionality into C++ JIRA CXX-2186
CDirEntry::DereferencePath() -- fixed a bug with producing wrong results for nested symlinks with '..'. JIRA:CXX-2218
Changed macro NCBI_EAT_SEMICOLON to extern declaration so that uniqueness is not required anymore. Added macros BEGIN_*_NAMESPACE that require semicolon and do not break indentation.
Note: Large commit. - Added auto-generated code (the autogenerator inside datatool is not committed yet) - Added NON_CONST_SET_ITERATE since NON_CONST_ITERATE doesn't actually allow non-const iteration for sets. - test_basic_cleanup now allows multiple input and output files - move declaration of CNewCleanup_imp into the new file newcleanup.hpp - Due to code auto-generation, a lot of hand-made traversal code was able to be removed. - Commit includes autogenerated_cleanup.txt, which is used by datatool to generate the autogenerated_cleanup.[ch]pp files - The description language is specified in a file which will be committed in the future into serial/datatool: traversal_spec_file_parser.cpp
Corrected usage of HAVE_NULLPTR. JIRA: CXX-2024
Added optional nullptr definition. JIRA: CXX-2024
Safety parentheses in ArraySize() macro def
Corrected a couple of typos in ncbimisc.hpp.
Modified NCBI_PACKED_ENUM definitions. JIRA: CXX-688
Added NCBI_PACKED_ENUM definitions. JIRA: CXX-688
CFastBuffer -- buffer with an embedded pre-reserved space.
Added NCBI_DEPRECATED_CLASS macro. Fixed warnings about deprecated classes in cgi_util.hpp.
Revert inclusion of the <memory> header. (There are also plans to eventually retire the Toolkit's implementation of auto_ptr<> as all contemporary complilers seem to have it implemented in the right manner.)
+<memory>
Fix @file tag
Spelling errors
Fixed ERASE_ITERATE definition. Added corresponding test.
Duplicated declaration of ESwitch in corelib/ncbimisc.hpp aside from connect/ncbi_types.h; protected both definitions by surrounding them with #ifndef NCBI_ESWITCH_DEFINED. (with regard to JIRA CXX-512)
#include <sys/types.h> if HAVE_SYS_TYPES_H
Fixed possible double delete in AutoPtr::reset(). Added optional ownership to AutoPtr::reset().
Allow optional ownership of object pointer in AutoPtr<>.
Fixed svn properties in trunk/c++.
CVS $Log$ keyword clean-up: everything except "internal".
Fixed again, still not suitable for vectors
Infinite loop for empty container bug fixed.
Added erase-enabling version of ITERATOR.
Also use the macro version of ArraySize on WorkShop and MIPSpro (in addition to old GCC), as the template can make them choke. :-/
Cosmetics: replaced tabulation with spaces
* pair_base_member::Swap: don't swap the first() elements if they take up no room, as it should be a no-op but VisualAge gets it wrong. * NCBI_DEPRECATED_CTOR: Use MSVC-style ordering for NCBI_COMPILER_VISUALAGE.
Unconditionally #undef the old non-conformant min() and max() macros
+ enum EInterruptOnSignal
Fixed definition of CAutoArray.
Introduce a special NCBI_DEPRECATED_CTOR macro to work around a fundamental incompatibility between GCC 3.2/3.3 and MS Visual Studio 2005.
Added auto_ptr_ref<> for safe rvalue to lvalue conversion.
Defined ArraySize macro for compilers not supporting ArraySize template.
Moved Beep to ncbi_os_mswin.hpp Added ArraySize template
return const reference in operator[] const (AutoArray)
+AutoArray<>
New template pair_base_member<> for empty base optimization. Changed AutoPtr to store Deleter object using pair_base_member. Implemented AutoPtr::Swap.
Spell substitutes
Define ctype substitues outside any namespace
When building with ICC, preemptively pull in <cctype> rather than <ctype.h>.
Engage <ctype.h> argument checks (DEBUG builds only)
<ctype.h> hacks: fix some typos, add inline keywords; still inactive
<ctype.h> hacks added; inactive for now
Added REVERSE_ITERATE and NON_CONST_REVERSE_ITERATE macros
Move EFollowLinks to ncbimisc.hpp.
Explicit ptrdiff_t->ssize_t casting in CRawPointer::Sub
New boolean operators support.
CBoolFor template: dummy method added to avoid warnings on Mac OS X
Added helper template and macro for easy implementation of boolean operator via pointer.
Removed definitions for lower-case iterate() and non_const_iterate()
+ ERound enum
Added ESign enum
Rollback previous commit
Added #include <ncbiconf.h>
+<sys/types.h> on Unix for ssize_t
Moved Add and Sub from serialutil to ncbimisc, made them methods of CRawPointer class.
The code extracted from NCBISTD.HPP. -- The latter is a "pure virtual" header now.
Fixed self references in template class AutoPtr.
Documentation changes.
lower case iterate returned back to the header
+ enum ENullable
iterate -> ITERATE cleanup
removed reference to ncbifloat.h
added reference to ncbifloat.h
+ kInvalidSeqPos
+EOwnership
exceptions replaced by CNcbiException-type ones
Introduce T(Signed)SeqPos.
CVS log moved to end of the file
AutoPtr:: -- do not make it owner if the source AutoPtr object was not an owner (for copy-constructor and operator=).
Typos corrected
Rollback to R1.50. It is premature to check for #HAVE_NCBI_C until we can configure it on MS-Windows...
Apply fix R1.50 only #if HAVE_NCBI_C
[MSWIN] Avoid the "Beep()" clash between MS-Win and C Toolkit headers
non_const_iterate() -- added parenthesis around the "Cont" arg
Moved some code from NCBIUTIL to NCBISTD. Fixed AutoPtr to always work with assoc.containers
Moved some typedefs/enums to serial/serialbase.hpp. Removed explicit keyword from AutoPtr costructor.
Added header corelib/ncbistr.hpp for all string utility functions. Optimized string utility functions. Added assignment operator to CRef<> and CConstRef<>. Add Upcase() and Locase() methods for automatic conversion.
Added operator bool to CArgValue. Added standard typedef element_type to CRef<> and CConstRef<>. Macro iterate() now calls method end() only once and uses temporary variable. Various NStr::Compare() methods made faster. Added class Upcase for printing strings to ostream with automatic conversion.
+ NStr::PrintableString()
kEmptyCStr, kEmptyStr (equiv. to NcbiEmptyCStr,NcbiEmptyString)
auto_ptr -- no "const" in constructor and assignment
Added predicate PCase for AStrEquiv PNocase, PCase goes through NStr::Compare now
StringToBool() -- short and case-insensitive versions of "true"/"false" ToUpper/ToLower(string&) -- fixed
Allowed case-insensitive comparison for StartsWith() and EndsWith()
NStr:: extended Compare(), and allow case-insensitive string comparison NStr:: added ToLower() and ToUpper()
NStr:: added conversions for "long"
Added EResetVariant enum for serialization package.
Kludging around the "NcbiEmptyString" to ensure its initialization when it is used by the constructor of a statically allocated object (I believe that it is actually just another Sun WorkShop compiler "feature")
#HAVE_NO_MINMAX_TEMPLATE
Reduced size of compiled object files: 1. avoid inline or implicit virtual methods (especially destructors). 2. avoid std::string's methods usage in inline methods. 3. avoid string literals ("xxx") in inline methods.
NcbiEmptyString made extern.
Added forward decaration of CEnumeratedTypeValues
NStr::Replace added
[!HAVE_STRDUP] Emulate "strdup()" -- it's missing on some platforms
[auto_ptr] -- simpler and more standard
[auto_ptr] Use "mutable" rather than "static_cast" on m_Owns; fixed a double "delete" bug in reset().
Added forward declaration of CTypeInfo class.
Tiny fix in EndsWith()
+ NStr::TruncateSpaces(const string& str, ETrunc where=eTrunc_Both)
[auto_ptr] -- closer to standard: added an ownership and initialization/assignment with "auto_ptr<>&", made "release()" be "const"
NStr:: +BoolToString, +StringToBool
[HAVE_NO_AUTO_PTR] Prohibit "operator=" in the home-made "auto_ptr::"
[MSVC++] Replace the <windef.h>'s min/max macros by the hand-made templates.
Introduced NcbiMin/NcbiMax to workaround some portability issues with the standard "min/max"
Dont use "snprintf()" as it is not quite portable yet
Fixed for the features: { NCBI_OBSOLETE_STR_COMPARE, HAVE_NO_AUTO_PTR, HAVE_NO_SNPRINTF }
minor changes in NStr::StringToXXX - base added
minor changes due to NStr namespace to contain string utility functions
Fixed CHTML_font size. Added CHTML_image input element.
New CVS and development tree structure for the NCBI C++ projects
VC++ fixes in ncbistd; minor fixes in Resource
CNCBINode fixed in Resource; case insensitive string comparison predicate added
Added conversion functions string <> int.
+ NcbiEmptyCStr and NcbiEmptyString (const)
Introduced BEGIN_, END_ and USING_ NCBI_SCOPE macros to put NCBI C++ API to namespace "ncbi::" and to use it by default, respectively Introduced THROWS_NONE and THROWS(x) macros for the exception specifications Other fixes and rearrangements throughout the most of "corelib" code
Fixed the "ncbidbg/diag" header circular dependencies
Fixes to (first-time) compile and test-run on MSVS++
+ #include <ncbistre.hpp> It was not really necessary to #include all this stuff to here, but this should force people to use CNcbiXXX stream wrappers
Moved all STL-related code to "ncbistl.hpp" Import NCBI typedefs and limits from "ncbitype.h"
Do not "using namespace std;" here. -- Instead, provide NCBI_USING_STL macro to be included(only when neceassary) in the user modules
Introduced #NCBI_SGI_STL_PORT and #NCBI_NO_NAMESPACES flags
Initial revision
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
NCBI Systems Team">NCBI Systems Team | ViewVC Help |
Powered by ViewVC 1.1.20 |