summaryrefslogtreecommitdiff
path: root/upb/json/parser.h
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2015-06-03 14:35:27 -0700
committerJoshua Haberman <jhaberman@gmail.com>2015-06-03 14:35:27 -0700
commit97eeb570225bb2f1060f4eff18ba664e129767d2 (patch)
tree6a2d282c3c7910263241e03f41be23c6a6cda710 /upb/json/parser.h
parent6650b3c6527c17965adf7239850857a10d56ba62 (diff)
parent919fea438a5ac5366684cfa26d2bb3d17519cb60 (diff)
Merge pull request #27 from haberman/c89
Ported upb to C89, for greater portability.
Diffstat (limited to 'upb/json/parser.h')
-rw-r--r--upb/json/parser.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/upb/json/parser.h b/upb/json/parser.h
index b932adf..2facb45 100644
--- a/upb/json/parser.h
+++ b/upb/json/parser.h
@@ -18,23 +18,24 @@
namespace upb {
namespace json {
class Parser;
-} // namespace json
-} // namespace upb
+} /* namespace json */
+} /* namespace upb */
#endif
-UPB_DECLARE_TYPE(upb::json::Parser, upb_json_parser);
+UPB_DECLARE_TYPE(upb::json::Parser, upb_json_parser)
/* upb::json::Parser **********************************************************/
-// Preallocation hint: parser won't allocate more bytes than this when first
-// constructed. This hint may be an overestimate for some build configurations.
-// But if the parser library is upgraded without recompiling the application,
-// it may be an underestimate.
+/* Preallocation hint: parser won't allocate more bytes than this when first
+ * constructed. This hint may be an overestimate for some build configurations.
+ * But if the parser library is upgraded without recompiling the application,
+ * it may be an underestimate. */
#define UPB_JSON_PARSER_SIZE 3568
#ifdef __cplusplus
-// Parses an incoming BytesStream, pushing the results to the destination sink.
+/* Parses an incoming BytesStream, pushing the results to the destination
+ * sink. */
class upb::json::Parser {
public:
static Parser* Create(Environment* env, Sink* output);
@@ -42,7 +43,7 @@ class upb::json::Parser {
BytesSink* input();
private:
- UPB_DISALLOW_POD_OPS(Parser, upb::json::Parser);
+ UPB_DISALLOW_POD_OPS(Parser, upb::json::Parser)
};
#endif
@@ -64,10 +65,10 @@ inline Parser* Parser::Create(Environment* env, Sink* output) {
inline BytesSink* Parser::input() {
return upb_json_parser_input(this);
}
-} // namespace json
-} // namespace upb
+} /* namespace json */
+} /* namespace upb */
#endif
-#endif // UPB_JSON_PARSER_H_
+#endif /* UPB_JSON_PARSER_H_ */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback