TJSONProtocol no longer uses borrow, and miscellaneous fixes.
authorDavid Reiss <dreiss@apache.org>
Thu, 21 Feb 2008 22:37:45 +0000 (22:37 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 21 Feb 2008 22:37:45 +0000 (22:37 +0000)
commit1e62ab468cda132ae29b849d7c1ea4eac141140b
treef5bda6d453d2d0c45702199ed0f57a857434a887
parent215ba5c310dd82b56805982634b346e3f99c6a49
TJSONProtocol no longer uses borrow, and miscellaneous fixes.

Summary:
Added a LookaheadReader to the TJSONProtocol so it doesn't have to
rely on the transport to borrow.
Also added a check to a corner case and fixed up some comments and whitespace.

Reviewed By: mcslee

Test Plan: make check

Revert Plan: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665491 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/protocol/TJSONProtocol.cpp
lib/cpp/src/protocol/TJSONProtocol.h