projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
No dupe function (leaks)
[metaproxy-moved-to-github.git]
/
src
/
gduutil.cpp
diff --git
a/src/gduutil.cpp
b/src/gduutil.cpp
index
8fe1ac4
..
4728270
100644
(file)
--- a/
src/gduutil.cpp
+++ b/
src/gduutil.cpp
@@
-1,5
+1,5
@@
/* This file is part of Metaproxy.
/* This file is part of Metaproxy.
- Copyright (C) 2005-2012 Index Data
+ Copyright (C) 2005-2013 Index Data
Metaproxy 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
Metaproxy 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
@@
-80,8
+80,7
@@
std::ostream& std::operator<<(std::ostream& os, Z_Records & rs)
os << *(rs.u.nonSurrogateDiagnostic);
break;
case Z_Records_multipleNSD:
os << *(rs.u.nonSurrogateDiagnostic);
break;
case Z_Records_multipleNSD:
- os << "Z_Records_multipleNSD";
- //os << *(rs.u.multipleNonSurDiagnostics);
+ os << *(rs.u.multipleNonSurDiagnostics);
break;
default:
os << "Z_Records" ;
break;
default:
os << "Z_Records" ;
@@
-90,6
+89,20
@@
std::ostream& std::operator<<(std::ostream& os, Z_Records & rs)
return os;
}
return os;
}
+std::ostream& std::operator<<(std::ostream& os, Z_DiagRecs& dr)
+{
+ if (dr.num_diagRecs >= 1)
+ {
+ os << *dr.diagRecs[0];
+ }
+ else
+ {
+ os << "multipleNSD";
+ }
+ return os;
+}
+
+
std::ostream& std::operator<<(std::ostream& os, Z_DiagRec& dr)
{
switch (dr.which)
std::ostream& std::operator<<(std::ostream& os, Z_DiagRec& dr)
{
switch (dr.which)