Skip to content

Commit

Permalink
Update copyright to be Google Inc.
Browse files Browse the repository at this point in the history
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
haberman committed Mar 20, 2011
1 parent 8ef6873 commit b796c1b
Show file tree
Hide file tree
Showing 38 changed files with 95 additions and 66 deletions.
25 changes: 12 additions & 13 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

Copyright (c) 2009-2010, Joshua Haberman
Copyright (c) 2009-2010, Google Inc.
Copyright (c) 2009-2011, Google Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand All @@ -11,17 +10,17 @@ modification, are permitted provided that the following conditions are met:
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Joshua Haberman nor the names of any other
* Neither the name of Google Inc. nor the names of any other
contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY JOSHUA HABERMAN ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL JOSHUA HABERMAN BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IS PROVIDED BY GOOGLE INC. ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL GOOGLE INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
3 changes: 1 addition & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -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.

3 changes: 2 additions & 1 deletion lang_ext/lua/upb.c
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.
*/
Expand Down
4 changes: 2 additions & 2 deletions lang_ext/python/cext.c
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"
Expand Down
2 changes: 1 addition & 1 deletion lang_ext/python/cext.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_
Expand Down
3 changes: 2 additions & 1 deletion lang_ext/python/definition.c
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
Expand Down
3 changes: 2 additions & 1 deletion lang_ext/python/definition.h
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
Expand Down
3 changes: 2 additions & 1 deletion lang_ext/python/pb.c
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
Expand Down
4 changes: 2 additions & 2 deletions src/upb.c
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>
Expand Down
3 changes: 2 additions & 1 deletion src/upb.h
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.
*/
Expand Down
3 changes: 2 additions & 1 deletion src/upb_atomic.h
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.
Expand Down
3 changes: 2 additions & 1 deletion src/upb_decoder.c
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>
Expand Down
5 changes: 3 additions & 2 deletions src/upb_decoder.h
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.
Expand All @@ -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_
Expand Down
3 changes: 2 additions & 1 deletion src/upb_def.c
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>
Expand Down
3 changes: 2 additions & 1 deletion src/upb_def.h
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
Expand Down
3 changes: 2 additions & 1 deletion src/upb_encoder.c
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"
Expand Down
8 changes: 5 additions & 3 deletions src/upb_encoder.h
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_
Expand Down
3 changes: 2 additions & 1 deletion src/upb_glue.c
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"
Expand Down
5 changes: 3 additions & 2 deletions src/upb_glue.h
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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/upb_msg.c
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.
*/
Expand Down
3 changes: 2 additions & 1 deletion src/upb_msg.h
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
Expand Down
3 changes: 2 additions & 1 deletion src/upb_stdio.c
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"
Expand Down
5 changes: 3 additions & 2 deletions src/upb_stdio.h
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>
Expand Down
3 changes: 2 additions & 1 deletion src/upb_stream.c
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>
Expand Down
6 changes: 3 additions & 3 deletions src/upb_stream.h
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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/upb_string.c
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"
Expand Down
3 changes: 2 additions & 1 deletion src/upb_string.h
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.
Expand Down
3 changes: 2 additions & 1 deletion src/upb_strstream.c
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"
Expand Down
5 changes: 3 additions & 2 deletions src/upb_strstream.h
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
Expand Down
4 changes: 3 additions & 1 deletion src/upb_table.c
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"
Expand Down
3 changes: 2 additions & 1 deletion src/upb_table.h
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
Expand Down
3 changes: 2 additions & 1 deletion src/upb_textprinter.c
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"
Expand Down
Loading

0 comments on commit b796c1b

Please sign in to comment.