forked from protocolbuffers/upb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This doesn't reflect any material change in how I will be working on upb, and I have no problem making this change. It's still open source under the BSD license, and I'll still be working on it well beyond the hours that constitute a normal job.
- Loading branch information
Showing
38 changed files
with
95 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,5 @@ the major things that are broken or not yet implemented yet: | |
CONTACT | ||
======= | ||
|
||
Author: Joshua Haberman ([email protected], [email protected]) | ||
Author: Josh Haberman ([email protected], [email protected]) | ||
See LICENSE for copyright information. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* A Lua extension for upb. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
* | ||
* Copyright (c) 2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
*/ | ||
|
||
#include "cext.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
* | ||
* Author: Josh Haberman <[email protected]> | ||
*/ | ||
|
||
#ifndef UPB_PYTHON_CEXT_H_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* This file defines the Python module upb.definition. This module | ||
* defines the following Python classes, which wrap upb's internal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* See def.h for a general description. These definitions | ||
* must be shared so that specific Python message types (for the | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* This file implements an interface to Python that is compatible | ||
* (as much as possible) with proto1 (the first implementation of | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
* | ||
* Copyright (c) 2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
*/ | ||
|
||
#include <stdarg.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* This file contains shared definitions that are widely used across upb. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* Only a very small part of upb is thread-safe. Notably, individual | ||
* messages, arrays, and strings are *not* thread safe for mutating. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2008-2011 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2008-2011 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
*/ | ||
|
||
#include <inttypes.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009-2010 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* upb_decoder implements a high performance, streaming decoder for protobuf | ||
* data that works by implementing upb_src and getting its data from a | ||
* upb_bytesrc. | ||
|
@@ -9,8 +12,6 @@ | |
* if the bytesrc returns UPB_STATUS_TRYAGAIN it is not possible to resume the | ||
* decoder when data becomes available again. Support for this could be added, | ||
* but it would add complexity and perhaps cost efficiency also. | ||
* | ||
* Copyright (c) 2009-2010 Joshua Haberman. See LICENSE for details. | ||
*/ | ||
|
||
#ifndef UPB_DECODER_H_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2008-2009 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2008-2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
*/ | ||
|
||
#include <stdlib.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009-2011 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2009-2011 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* Provides a mechanism for loading proto definitions from descriptors, and | ||
* data structures to represent those definitions. These form the protobuf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
*/ | ||
|
||
#include "upb_encoder.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Implements a upb_sink that writes protobuf data to the binary wire format. | ||
* Copyright (c) 2009-2010 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* Implements a set of upb_handlers that write protobuf data to the binary wire | ||
* format. | ||
* | ||
* For messages that have any submessages, the encoder needs a buffer | ||
* containing the submessage sizes, so they can be properly written at the | ||
* front of each message. Note that groups do *not* have this requirement. | ||
* | ||
* Copyright (c) 2009-2010 Joshua Haberman. See LICENSE for details. | ||
*/ | ||
|
||
#ifndef UPB_ENCODER_H_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2010 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2010 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
*/ | ||
|
||
#include "upb_glue.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2011 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* upb's core components like upb_decoder and upb_msg are carefully designed to | ||
* avoid depending on each other for maximum orthogonality. In other words, | ||
* you can use a upb_decoder to decode into *any* kind of structure; upb_msg is | ||
|
@@ -18,8 +21,6 @@ | |
* time these functions are called. For this reason, if you are parsing lots | ||
* of data and efficiency is an issue, these may not be the best functions to | ||
* use (though they are useful for prototyping, before optimizing). | ||
* | ||
* Copyright (c) 2011 Joshua Haberman. See LICENSE for details. | ||
*/ | ||
|
||
#ifndef UPB_GLUE_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2010 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2010 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* Data structure for storing a message of protobuf data. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2010-2011 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2010-2011 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* Data structure for storing a message of protobuf data. Unlike Google's | ||
* protobuf, upb_msg and upb_array are reference counted instead of having | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2010 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2010 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
*/ | ||
|
||
#include "upb_stdio.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2010 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* This file provides upb_bytesrc and upb_bytesink implementations for | ||
* ANSI C stdio. | ||
* | ||
* Copyright (c) 2010 Joshua Haberman. See LICENSE for details. | ||
*/ | ||
|
||
#include <stdio.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2011 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2011 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
*/ | ||
|
||
#include <stdlib.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2010-2011 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* This file defines general-purpose streaming data interfaces: | ||
* | ||
* - upb_handlers: represents a set of callbacks, very much like in XML's SAX | ||
|
@@ -20,9 +23,6 @@ | |
* with input that came from protobuf binary format, protobuf text format, or | ||
* even an in-memory upb_msg -- the pretty printer will not know the | ||
* difference. | ||
* | ||
* Copyright (c) 2010-2011 Joshua Haberman. See LICENSE for details. | ||
* | ||
*/ | ||
|
||
#ifndef UPB_STREAM_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2010 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2010 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
*/ | ||
|
||
#include "upb_string.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2010 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2010 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* This file defines a simple string type which is length-delimited instead | ||
* of NULL-terminated, and which has useful sharing semantics. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2010 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2010 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
*/ | ||
|
||
#include "upb_strstream.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009-2010 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* This file contains upb_bytesrc and upb_bytesink implementations for | ||
* upb_string. | ||
* | ||
* Copyright (c) 2009-2010 Joshua Haberman. See LICENSE for details. | ||
*/ | ||
|
||
#ifndef UPB_STRSTREAM_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* There are a few printf's strewn throughout this file, uncommenting them | ||
* can be useful for debugging. | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
*/ | ||
|
||
#include "upb_table.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
* | ||
* This file defines very fast int->struct (inttable) and string->struct | ||
* (strtable) hash tables. The struct can be of any size, and it is stored | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* upb - a minimalist implementation of protocol buffers. | ||
* | ||
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details. | ||
* Copyright (c) 2009 Google Inc. See LICENSE for details. | ||
* Author: Josh Haberman <[email protected]> | ||
*/ | ||
|
||
#include "upb_textprinter.h" | ||
|
Oops, something went wrong.