mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-09-28 03:20:44 +02:00
Ready for 11.4.1, see char changelog
This commit is contained in:
parent
1c7117d3f4
commit
d9097c7f68
10 changed files with 14 additions and 21 deletions
|
@ -1,2 +1,2 @@
|
|||
#define VERSION "11.4.0"
|
||||
#define VERSION "11.4.1"
|
||||
#define YEARS "1994-2020"
|
||||
|
|
|
@ -2,8 +2,12 @@ C++-annotations (11.4.1)
|
|||
|
||||
* Updated the descriptions of some functions in the filesystem namespace.
|
||||
|
||||
* Fixed some typos
|
||||
|
||||
* Following a fix suggested by Tony Mancill the US variants of the ps/pdf
|
||||
formats of the C++-annotations are now using the 'letter' paper format
|
||||
|
||||
-- Frank B. Brokken <f.b.brokken@rug.nl> Sun, 30 Aug 2020 13:36:27 +0200
|
||||
|
||||
C++-annotations (11.4.0)
|
||||
|
||||
|
|
|
@ -2,4 +2,3 @@
|
|||
#include "inilist.ih"
|
||||
|
||||
size_t IniList::s_count = 0;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ IniList::~IniList()
|
|||
if (d_id == d_owner)
|
||||
{
|
||||
s_memory[d_index] = false;
|
||||
cout << "destroying object " << d_id << " and memory[" <<
|
||||
cout << "destroying object " << d_id << " and memory[" <<
|
||||
d_index << "]\n";
|
||||
}
|
||||
else
|
||||
|
|
|
@ -24,5 +24,5 @@ class IniList
|
|||
void check(char const *label); // checks the availability of its
|
||||
// memory
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -3,4 +3,3 @@
|
|||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -11,5 +11,3 @@ IniList::IniList()
|
|||
|
||||
cout << "created object " << d_id << " using memory[" << d_index << "]\n";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ IniList::IniList(IniList const &other)
|
|||
d_owner(other.d_owner), // this object doesn't own the memory
|
||||
d_index(other.d_index) // and use other's memory index
|
||||
{
|
||||
cout << "CC: object " << d_id << " using memory[" << d_index <<
|
||||
cout << "CC: object " << d_id << " using memory[" << d_index <<
|
||||
"], owned by object " << d_owner << '\n';
|
||||
check("copy: ");
|
||||
}
|
||||
|
|
|
@ -34,10 +34,4 @@ int main(int argc, char **argv)
|
|||
"\n";
|
||||
|
||||
map.find(1)->second.check("element from map: ");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -1,19 +1,18 @@
|
|||
// define X to activate the xerr/xerr2 macros:
|
||||
// xerr(insertion)
|
||||
// xerr(insertion)
|
||||
// inserts the '<<' concatenated elements into std::cerr
|
||||
// preceded by the name of the source file, and ended by '\n'
|
||||
// xerr2(insertion, code)
|
||||
// xerr2(insertion, code)
|
||||
// performs the insertion if X is defined, and (unconditionally)
|
||||
// executes the statement(s) in `code'. `code' must be valid
|
||||
// C(++) code.
|
||||
//
|
||||
// C(++) code.
|
||||
//
|
||||
#ifdef XERR
|
||||
#include <iostream>
|
||||
#define xerr(insertion) std::cerr << __FILE__": " << insertion << '\n'
|
||||
#define xerr2(insertion, b) \
|
||||
{ std::cerr << __FILE__": " << insertion << '\n'; b; }
|
||||
#else
|
||||
#define xerr(insertion)
|
||||
#define xerr(insertion)
|
||||
#define xerr2(insertion, b) b
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue