summaryrefslogtreecommitdiff
path: root/gruel/src/lib/pmt/pmt_serialize.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gruel/src/lib/pmt/pmt_serialize.cc')
-rw-r--r--gruel/src/lib/pmt/pmt_serialize.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/gruel/src/lib/pmt/pmt_serialize.cc b/gruel/src/lib/pmt/pmt_serialize.cc
index 184a31e6b..de9644c3c 100644
--- a/gruel/src/lib/pmt/pmt_serialize.cc
+++ b/gruel/src/lib/pmt/pmt_serialize.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2009 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio 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 Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -216,7 +216,7 @@ deserialize_untagged_f64(double *ip, std::streambuf &sb)
*ip = iu.id;
return t != std::streambuf::traits_type::eof();
}
-
+
/*
* Write portable byte-serial representation of \p obj to \p sb
@@ -227,7 +227,7 @@ bool
pmt_serialize(pmt_t obj, std::streambuf &sb)
{
bool ok = true;
-
+
tail_recursion:
if (pmt_is_bool(obj)){
@@ -236,7 +236,7 @@ pmt_serialize(pmt_t obj, std::streambuf &sb)
else
return serialize_untagged_u8(PST_FALSE, sb);
}
-
+
if (pmt_is_null(obj))
return serialize_untagged_u8(PST_NULL, sb);
@@ -294,10 +294,10 @@ pmt_serialize(pmt_t obj, std::streambuf &sb)
if (pmt_is_uniform_vector(obj))
throw pmt_notimplemented("pmt_serialize (uniform-vector)", obj);
-
+
if (pmt_is_dict(obj))
throw pmt_notimplemented("pmt_serialize (dict)", obj);
-
+
throw pmt_notimplemented("pmt_serialize (?)", obj);
}
@@ -325,7 +325,7 @@ pmt_deserialize(std::streambuf &sb)
switch (tag){
case PST_TRUE:
return PMT_T;
-
+
case PST_FALSE:
return PMT_F;
@@ -369,7 +369,7 @@ pmt_deserialize(std::streambuf &sb)
case PST_COMMENT:
throw pmt_notimplemented("pmt_deserialize: tag value = ",
pmt_from_long(tag));
-
+
default:
throw pmt_exception("pmt_deserialize: malformed input stream, tag value = ",
pmt_from_long(tag));