[svn] commit: r2232 - in /branches/trac172/src/lib/cc: data.cc data.h
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Jun 23 08:19:11 UTC 2010
Author: jelte
Date: Wed Jun 23 08:19:11 2010
New Revision: 2232
Log:
removed some constants which weren't used anymore
updated documentation as mentioned in ticket #250
Modified:
branches/trac172/src/lib/cc/data.cc
branches/trac172/src/lib/cc/data.h
Modified: branches/trac172/src/lib/cc/data.cc
==============================================================================
--- branches/trac172/src/lib/cc/data.cc (original)
+++ branches/trac172/src/lib/cc/data.cc Wed Jun 23 08:19:11 2010
@@ -29,25 +29,6 @@
#include <cmath>
using namespace std;
-
-namespace {
-const unsigned char PROTOCOL_VERSION[4] = { 0x53, 0x6b, 0x61, 0x6e };
-
-const unsigned char ITEM_BLOB = 0x01;
-const unsigned char ITEM_HASH = 0x02;
-const unsigned char ITEM_LIST = 0x03;
-const unsigned char ITEM_NULL = 0x04;
-const unsigned char ITEM_BOOL = 0x05;
-const unsigned char ITEM_INT = 0x06;
-const unsigned char ITEM_REAL = 0x07;
-const unsigned char ITEM_UTF8 = 0x08;
-const unsigned char ITEM_MASK = 0x0f;
-
-const unsigned char ITEM_LENGTH_32 = 0x00;
-const unsigned char ITEM_LENGTH_16 = 0x10;
-const unsigned char ITEM_LENGTH_8 = 0x20;
-const unsigned char ITEM_LENGTH_MASK = 0x30;
-}
namespace isc {
namespace data {
Modified: branches/trac172/src/lib/cc/data.h
==============================================================================
--- branches/trac172/src/lib/cc/data.h (original)
+++ branches/trac172/src/lib/cc/data.h Wed Jun 23 08:19:11 2010
@@ -259,9 +259,9 @@
/// \brief These functions simply wrap the given data directly
/// in an Element object, and return a reference to it, in the form
/// of an \c ElementPtr.
- /// If there is a memory allocation problem, these functions will
- /// return a NULL ElementPtr, which can be checked with
- /// Element::is_null(ElementPtr ep).
+ /// These factory functions are exception-free (unless there is
+ /// no memory available, in which case bad_alloc is raised by the
+ /// underlying system).
/// (Note that that is different from an NullElement, which
/// represents an empty value, and is created with Element::create())
//@{
More information about the bind10-changes
mailing list