]> Dogcows Code - chaz/yoink/blobdiff - src/deserializer.cc
big batch of progress
[chaz/yoink] / src / deserializer.cc
index 4c3f8f2caab6a69cc049dc5e79affd8341c04cf6..8ad30591a54cb7087f788acb92c0a845b0842439 100644 (file)
@@ -38,7 +38,7 @@
 namespace dc {
 
 
-class deserializer_impl
+class deserializer::deserializer_impl
 {
 public:
        deserializer_impl(const std::string& filePath, bool comments = false,
@@ -72,9 +72,9 @@ public:
        void throwError()
        {
                unsigned char* errorMsg = yajl_get_error(hand, 0, 0, 0);
-               deserializer::exception error((char*)errorMsg);
+               deserializer::exception problem((char*)errorMsg);
                yajl_free_error(hand, errorMsg);
-               throw error;
+               throw problem;
        }
 
 
@@ -114,6 +114,7 @@ public:
        static int parsedBeginMap(void* ctx)
        {
                ((deserializer_impl*)ctx)->parsed.push(new wrapped_dictionary);
+               return 1;
        }
 
        static int parsedMapKey(void* ctx, const unsigned char* value,
@@ -205,10 +206,13 @@ private:
 
 
 deserializer::deserializer(const std::string& filePath, bool comments,
-               bool check) : impl(new deserializer_impl(filePath, comments, check)) {}
+               bool check) :
+       // pass through
+       impl(new deserializer::deserializer_impl(filePath, comments, check)) {}
 
 deserializer::deserializer(std::istream& input, bool comments, bool check) :
-               impl(new deserializer_impl(input, comments, check)) {}
+       // pass through
+       impl(new deserializer::deserializer_impl(input, comments, check)) {}
 
 
 serializable_ptr deserializer::deserialize()
@@ -235,9 +239,12 @@ serializable* deserializer::pullNext()
 
 void deserializer::pop()
 {
+       // pass through
        impl->parsed.pop();
 }
 
 
 } // namespace dc
 
+/** vim: set ts=4 sw=4 tw=80: *************************************************/
+
This page took 0.018882 seconds and 4 git commands to generate.