[svn] commit: r87 - in /experiments/jinmei-messageapi: dnsname.cc dnsname.hh rrset.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Oct 13 03:06:02 UTC 2009
Author: jinmei
Date: Tue Oct 13 03:06:02 2009
New Revision: 87
Log:
allowed omitting the argument to Name.to_text() (defaulting to false)
Modified:
experiments/jinmei-messageapi/dnsname.cc
experiments/jinmei-messageapi/dnsname.hh
experiments/jinmei-messageapi/rrset.cc
Modified: experiments/jinmei-messageapi/dnsname.cc
==============================================================================
--- experiments/jinmei-messageapi/dnsname.cc (original)
+++ experiments/jinmei-messageapi/dnsname.cc Tue Oct 13 03:06:02 2009
@@ -575,6 +575,6 @@
ostream &
operator<<(ostream &os, const Name &name)
{
- os << name.to_text(false);
+ os << name.to_text();
return (os);
}
Modified: experiments/jinmei-messageapi/dnsname.hh
==============================================================================
--- experiments/jinmei-messageapi/dnsname.hh (original)
+++ experiments/jinmei-messageapi/dnsname.hh Tue Oct 13 03:06:02 2009
@@ -66,7 +66,7 @@
//~Name();
// public methods
- std::string to_text(bool omit_final_dot) const;
+ std::string to_text(bool omit_final_dot = false) const;
void to_wire(IOBuffer& r, NameCompressor& c) const;
const ISC::Result* from_wire(NameDecompressor& c, IOBuffer& iobuf);
size_t get_length() const { return (_length); }
Modified: experiments/jinmei-messageapi/rrset.cc
==============================================================================
--- experiments/jinmei-messageapi/rrset.cc (original)
+++ experiments/jinmei-messageapi/rrset.cc Tue Oct 13 03:06:02 2009
@@ -181,7 +181,7 @@
string
NSRdata::to_text() const
{
- return (_nsname.to_text(false));
+ return (_nsname.to_text());
}
void
@@ -221,7 +221,7 @@
{
if (!s.empty())
s.push_back('\n');
- s += _name.to_text(false) + " ";
+ s += _name.to_text() + " ";
s += _ttl.to_text() + " " + _rdclass.to_text() + " " +
_rdtype.to_text() + " " + (**it).to_text();
}
@@ -268,7 +268,7 @@
{
// return in dig-style format. note that in the wire format class follows
// type.
- return (_name.to_text(false) + " " + _rdclass.to_text() + " " +
+ return (_name.to_text() + " " + _rdclass.to_text() + " " +
_rdtype.to_text());
}
More information about the bind10-changes
mailing list